Creating a payment by token

Payment by token (or one-click payment) allows the buyer to pay without entering their card data. For this, the buyer must accepted the registration of his card by the payment gateway.

For more information about registering a card, please see Payment by token - Recurring payment guide available on our website.

 In the context of the application of the PSD2, the CVV entry as well as cardholder authentication are required during a payment by token, as long as the buyer is present. The vads_threeds_mpi field is taken into account to allow for potential authentication without buyer interaction.

  1. Use all the fields presented in the table below to create your form.
    Field name Description Format Value
    vads_page_action Action to perform enum PAYMENT
    vads_amount Payment amount (in the smallest currency unit) n..12 E.g.: 4525 for EUR 45.25
    vads_ctx_mode Operating mode. enum TEST or PRODUCTION
    vads_currency Code of the currency used for the payment. n3 E.g.: 978 for euro (EUR)
    vads_action_mode Acquisition mode for payment method data. enum INTERACTIVE
    vads_identifier (unique) token associated with a payment method. ans..50 E.g.: MyToken
    Note: two possible formats:
    • an32: if the identifier is generated by the payment gateway
    • ans..50: if the identifier is generated by the merchant.
    vads_payment_config Payment type enum SINGLE
    vads_site_id Shop ID n8 E.g.: 12345678
    vads_trans_date Date and time of the payment form in UTC format. n14 E.g.: 20190501130025
    vads_trans_id Unique ID of a transaction. n6 E.g.: 123456
    vads_version Version of the exchange protocol. string V2
  2. Add the fields recommended for increasing chances of frictionless during the payment.
  3. Add optional fields according to your requirements (see Using additional features chapter of the Implementation Guide Hosted Payment Page).
  4. Compute the value of the signature field using all the fields of your form that start with vads_ (see chapter Computing the signature of the Implementation Guide Hosted Payment Page available on our website).