Airwallex logo

Drop-in Integration

When capturing a Stored Credential for the first time

Dropin-capturing credential

  1. Create a Customer if it is a new customer and save the Customer ID returned
  2. (Option 1) Generate a client secret for the Customer and save the client_secret returned
  3. (Option 2) Create a Payment Intent for the order with the Customer ID, you will get client_secret returned. This step is only needed for shopper wishes to pay for the first order in the payment method binding process.
  4. Create a drop-in element and display it on your website

When initiating a subsequent transaction using a Stored Credential

A. For subsequent Subscription and Autodebit (MIT) transactions: Dropin-MIT

  1. Create a Payment Intent with corresponding Customer ID
  2. Confirm the Payment Intent with reference to Payment Consent ID of the stored Payment Consent

B. For subsequent Oneclick (CIT) transactions: Drop-in-CIT

  1. Create a Payment Intent with the corresponding Customer ID
  2. Query payment_consents and payment_methods (optional if no consent with card) with the corresponding Customer ID to render the list of customer’s payment consents they previously verified
  3. Create a drop-in element and display it on your website
  4. Confirm the Payment Intent with reference to Payment Consent ID of the stored Payment Consent