Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

Independent card binding

The independent card binding SDK enables buyers to bind their bank cards at any stage of the payment process, and it provides the following functions:

  • Provide a card binding element collection page to help you go through the embedded page to collect card payment elements.
  • Provide an alert page during the card binding process.
  • Support merchants to render multi-language payment pages, currently supporting eight languages: English, Portuguese, Korean, Spanish, French, German, Italian, and Dutch.

User experience

The user experience is shown in the following figure:

image.png

Figure 1. User experience of independent card binding

Prerequisites

Before integrating the SDK, familiarize yourself with the Integration guide and API Overview. This will enable you to understand the steps for integrating server APIs and notes for calling the APIs. Also, ensure that you have completed the following tasks:

Integration steps

The integration flow of independent card binding SDK is shown as follows:

Group 12.png

Figure 2. Independent card binding interaction process

When implementing an independent card binding SDK integration, two parties are involved:

  • Server-side: Send a createVaultingSession API, and obtain the binding result.
  • Client-side: Use asset binding session data to render card binding element collection components and handle jump operations.

Follow these steps to complete the integration:

  1. Client-sideCreate an SDK instance:
    After your client creates the payment method page and implements the monitoring of the payment button click event, run the AMSCashierPayment() method to create the SDK instance.
  2. Server-sideCall the createVaultingSession API:
    After a buyer clicks the Add card button, your server sends createVaultingSession request to Antom server.

3. Client-sideRender card binding element collection components:

Use the response parameter vaultingSessionData of createVaultingSession request, and render card binding element collection components through mountComponent().

  1. The buyer fills in and submits the card binding information:
    After the buyer fills in the card information and submits it on the card binding element collection page, the SDK will jump the buyer to the merchant page.
  2. Server-sideObtain and display the card binding result:
    Your server obtains the binding result through notifyVaulting API and presents the bound desensitized card number to the buyer on the Binding Management page. For subsequent payments, you need to pass in the token that is obtained from the first payment via notifyVaulting API.

For more detailed integration information on Web/WAP, Android, or iOS clients, learn the following topics: