Creating a token
In order 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.