Tokens
Tokens
Tokenization eliminates the need for customers to re-enter their card details for subsequent payments, making it ideal for scenarios like subscriptions and other recurring payments. It is primarily used for Merchant Initiated Transactions (MIT).
Use Cases
Tokenization Process
Enabling Tokenization
To enable tokenization during order creation, set the enforceTokenization parameter to true in the Create New Order request.
Example Order with Tokenization:
Fetching Tokens After Payment
After a successful payment, if enforceTokenization was set to true, you can retrieve all tokens associated with that order using the Tokens API.
Storing Tokens
Securely store the retrieved tokenId in your system, linked to the customer who made the payment. This ensures you can easily use the token for future Merchant Initiated Transactions.
Security
Always store tokens securely and never expose them to unauthorized access. Tokens should be associated with customer records in your database.
Token Workflow
Using Tokens for MIT
Once you have stored a token, you can use it for Merchant Initiated Transactions:
For detailed MIT implementation, see the MIT Transactions guide.