Skip to main content
After you have successfully created tokens, you can use them in your subsequent payment requests to offer returning customers a faster checkout experience. You can also use tokens to charge your shoppers for subscription, or automatic top-up payments.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

How it works

You can use a previously created token for making different types of payments.
  • One-click (CardOnFile): A shopper-initiated payment where a returning shopper uses their stored payment details for a faster checkout.
  • Subscription (Subscription): A payment where you initiate a subscription payment to bill the shopper at regular intervals.
  • Unscheduled Card-on-File (UnscheduledCardOnFile): An automatic top-up payment or other contracts where you initiate payments at non-fixed intervals.

Shopper-initiated payments

  1. When the shopper proceeds to pay on your website or app, present their stored payment details as a payment option.
  2. If your shopper selects the option to pay with their stored details, make a /sessions, or /payments request including the token and the shopper reference.
  3. Get the outcome of the payment in an AUTHORISATION webhook.

Payments initiated by you

  1. When it is time to bill your shopper for their subscription, or other non-scheduled contract, make a /payments request including the token and the shopper reference.
  2. Get the outcome of the payment in the /payments response, or an AUTHORISATION webhook.

Make a one-click payment

A one-click payment is a transaction initiated by the shopper using their previously-stored payment details. For example: a shopper with an account with your website logs in to make a purchase, and selects a stored payment method. Select the endpoint you are using:
When your shopper proceeds to pay:
  1. From your server, make a POST /sessions request including: If you use 3D Secure for PSD2 SCA compliance, some issuing banks require SCA for ContAuth with CardOnFile transactions. See the PSD2 SCA compliance guide for more information.

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  2. If the shopper selects the option to pay with their stored payment details, the Drop-in or Component instance handles the payment flow.
  3. Get the outcome of the payment in an AUTHORISATION webhook.