Credit cards account for 41% of online transactions and are prevalent in ecommerce markets in Europe and the Americas. For instance in Mexico, card payments account for 45% of all transactions, totaling $10.2 billion in sales. Accepting credit cards will continue to be a widely used payment method even with digital wallets and bank transfers on the rise. Card payment methods have required fields for the customer to fill out. Streamlining your card acceptance methods with Rapyd’s Save Card Details API will help improve your success rates for card transactions and decrease cart abandonment. The steps below will use a local Visa debit card as an example (e.g mx_visa_card) and include some of the required fields for the payment method.
Go to your Client Portal account and grab your rapyd_access_key and rapyd_secret_key within the Developers tab.
Download our Postman Collection and input your rapyd_access_key and rapyd_secret_key in the Postman environment titles Rapyd Sandbox Environment as shown below.
Find the payment method you will accept in your desired country with List Payment Methods By Country API. Choose a payment method option for the customer to add on the hosted page. For example, using mx_visa_card will create the card fields as shown in the visual following these steps.
Use the Create Wallet API to step up a wallet contact to create a customer for your profile to save the card details. Your wallet ID given in the API response will begin with ewallet_.
Use the Create Customer API and the Rapyd wallet ID starting with ewallet_ from step 4 in the request body. Your customer ID in the response body will begin with cus_. This will be for creating a Save Card details page, however, you can create a request page without payment method type. If you add a payment method at customer creation, then the payment method will show up on the page with an option to add additional methods.
Use the Save Card Details page API call to create your hosted page to save your customer’s card details. The following example request body uses country, currency, and customer ID. The payment method type is an optional parameter.
You can check out the following examples or learn more on our documentation – Save Card Details with Rapyd Checkout.
Sources Cited:
Rapyd. “Accept International Credit Card Payments”. https://www.rapyd.net/blog/accept-international-credit-card-payments/
Rapyd. “Top Four Local Payment Methods in Mexico”.https://www.rapyd.net/blog/the-top-four-local-payment-methods-in-mexico/
Photo from Unsplash
This website uses cookies.
Read More