Creating a token
To create a customer token for tokenized payments, the customer must first use the Walley Checkout to select a payment method and give consent to charge for future payments.
Creating a customer tokenβ
To enable customer token creation, your Walley Checkout must be configured in tokenization mode. Please contact Walley Merchant Services to enable tokenization for you.
Tokenization modesβ
There are two supported modes for tokenization:
1. Subscription modeβ
- The checkout interface will change to show relevant information for a subscription instead of a regular payment.
- The cart is optional:
- If the cart is omitted or the total is zero, no order is created.
- If the cart total is greater than zero, an initial payment is processed as part of the subscription.
2. Token registration modeβ
- The checkout interface will change to show relevant information for a token registration instead of a regular payment.
- The cart must be omitted, as no payment is made during token registration.
Retrieving the customer tokenβ
After the customer completes the checkout, you can retrieve the customer token using the Get Checkout Information endpoint.
The response contains the field data.order.customerToken which you can use for future authorizations.