Pay and Save Card (Tokenization)

Enable customers to save their payment methods securely for future use. This flow exchanges sensitive card or account details for a payment token, which can be reused for faster checkouts, recurring payments, or subscriptions without re-entering information

circle-info

Applicable only for Card and E-wallet

Redirection Mode

Initiation

Enable "Save Payment Information Detail" option for your customers, when the Charge is SUCCESS We will save your Customer's Payment Information Detail in Token format under your Customer Object

chevron-rightCreate Payment Session hashtag

A windowed time for the end customer to complete the payment, starting when the client initiates the payment request through your app. The payment session duration is customizable, with a default duration of 15 minutes.

API Reference: Create Payment Session

chevron-rightChoose a mode hashtag

To generate Redirect Payment Page, choose mode “REDIRECT”

chevron-rightEnable Save Payment Information Detailhashtag

To enable Customer to save their payment information detail, choose true

chevron-rightDefine Payment Method hashtag

Set autoConfirm to true and fill paymentMethod and paymentMethodOptions Object to finalize the payment method from the previous step.

Reference:

chevron-rightSend us your Success, Failure, and Expired Payment Session URLhashtag

Handle Success, Failure, and Expired cases on your Payment Session

Object reference: Redirect Object

chevron-rightFill Customer and Order informationhashtag

Include customer and order details by filling the customer and orderInformation objects. Personalize the payment experience, enhance fraud detection and reconciliation, and ensure smoother processing of refund requests.

Object Reference:

chevron-rightRedirect to Payment Pagehashtag

After creating the Payment Session, redirect your customer to the URL for the Payment page returned in the response.

chevron-rightSimulate Paymenthashtag
  1. Visit the Payment Page

  2. Tick "Save for future use" on the checklist box

chevron-rightManage your Customer IDhashtag

Once the Payment Session has been generated, save and manage your customerId to be used for future use.

circle-info

Stored Payment Method links to your customerId

Use Saved Payment

Reuse your customers' saved Payment Information details so that they can check out faster

chevron-rightCreate Payment Session hashtag

A windowed time for the end customer to complete the payment, starting when the client initiates the payment request through your app. The payment session duration is customizable, with a default duration of 15 minutes.

API Reference: Create Payment Session

chevron-rightChoose a modehashtag

To generate Redirect Payment Page, choose mode “REDIRECT”

chevron-rightShow saved Payment Informationhashtag

To show the saved Payment Information to your Customer, choose true

chevron-rightDefine Payment Methodhashtag

Set autoConfirm to true and fill paymentMethod and paymentMethodOptions Object to finalize the payment method from the previous step.

Reference:

chevron-rightSend us your Success, Failure, and Expired Payment Session URLhashtag

Handle Success, Failure, and Expired cases on your Payment Session

Object reference: Redirect Object

chevron-rightFill Customer ID and Order informationhashtag

Include customer and order details by filling the saved customerId and orderInformation objects. Personalize the payment experience, enhance fraud detection and reconciliation, and ensure smoother processing of refund requests.

Object Reference:

chevron-rightRedirect to Payment Pagehashtag

After creating the Payment Session, redirect your customer to the URL for the Payment page returned in the response.

chevron-rightSimulate Paymenthashtag
  1. Visit the Payment Page

  2. Choose your saved Payment Information detail, and input CVV/CVC to proceed with the Payment

API Mode

Initiation

Enable "Save Payment Information Detail" option for your customers, when the Charge is SUCCESS We will save your Customer's Payment Information Detail in Token format under your Customer Object

chevron-rightCreate Payment Sessionhashtag

A windowed time for the end customer to complete the payment, starting when the client initiates the payment request through your app. The payment session duration is customizable, with a default duration of 15 minutes.

API Reference: Create Payment Session

chevron-rightChoose a modehashtag

To manage your own Card Input Page choose mode “API”

chevron-rightEnable Save Payment Information Detailhashtag

To enable Customer to save their payment information detail, choose true

circle-info

Can be sent later in Confirm Payment Session

chevron-rightDefine Payment Methodhashtag

Set autoConfirm to false and fill paymentMethod.type = "CARD" to generate the Card RSA Encryption Key

Object Reference:

chevron-rightSend us your Success, Failure, and Expired Payment Session URLhashtag

Handle Success, Failure, and Expired cases on your Payment Session

Object reference: Redirect Object

chevron-rightFill Customer and Order informationhashtag

Include customer and order details by filling the customer and orderInformation objects. Personalize the payment experience, enhance fraud detection and reconciliation, and ensure smoother processing of refund requests.

Object Reference:

chevron-rightGet RSA Encryption Key detailshashtag

After creating the Payment Session, pass the RSA Encryption Key to the Merchant Front-end, which is returned in the response.

Object Reference: Payment Session Object

chevron-rightEncrypt Card Information in Merchant Front-endhashtag

Encrypt Card Information details using the RSA Encryption Key from the Merchant Back-end, then pass the Encrypted Card to the Merchant Back-end

Encryption Code Reference: Card Encryption

Card Simulation Reference: Payment Simulation

chevron-rightConfirm Payment Sessionhashtag

Finalize the Payment Method by filling paymentMethod.card.encryptedCard and paymentMethodOptions objects

API Reference: Confirm Payment Session

chevron-rightRedirect to 3DS Pagehashtag

After confirming the Payment Session, redirect your customer to the 3DS Page URL for authenticating the transaction returned in the response.

chevron-rightManage your Customer IDhashtag

Once the Payment Session has been generated, save and manage your customerId to be used for future use

circle-info

Stored Payment Method links to your customerId

Use Saved Payment

Reuse your customers' saved Payment Information details so that they can check out faster

chevron-rightGet Stored Payment Information Detailhashtag

Get the Stored Payment Information details to be shown in the Merchant Front-end whenever your Customer uses saved Payment

API Reference: Retrieve Customer

chevron-rightCreate Payment Sessionhashtag

A windowed time for the end customer to complete the payment, starting when the client initiates the payment request through your app. The payment session duration is customizable, with a default duration of 15 minutes.

API Reference: Create Payment Session

chevron-rightChoose a modehashtag

To manage your own Card Input Page choose mode “API”

chevron-rightDefine Payment Methodhashtag

Set autoConfirm to true, fill Saved Payment Information from Get Stored Payment Information Detail and CVC from Merchant Front-end in paymentMethod and paymentMethodOptions Object to finalize the payment method from the previous step.

Reference:

chevron-rightSend us your Success, Failure, and Expired Payment Session URLhashtag

Handle Success, Failure, and Expired cases on your Payment Session

Object reference: Redirect Object

chevron-rightFill Customer ID and Order informationhashtag

Include customer and order details by filling the saved customerId and orderInformation objects. Personalize the payment experience, enhance fraud detection and reconciliation, and ensure smoother processing of refund requests.

Object Reference:

chevron-rightRedirect to 3DS Pagehashtag

After creating the Payment Session, redirect your customer to the 3DS Page URL for authenticating the transaction returned in the response.

Last updated