Store your card credentials with Cashfree in a secure manner.
With Token Vault, you can securely generate and store card tokens as part of the card-saving process. This enables them to retrieve and display saved card tokens to customers, allowing for convenient, quick transactions using stored cards. We generate network tokens which are interoperable, meaning that tokens saved with us can be used to process payments with any compatible payment provider.
To begin you need to send the customer information to cashfree as part of the create order api. You do this by sending customer_id parameter in the (create order api request)[/api/payments/latest/orders/create].
Here’s a sample request for creating an order using your desired backend language. Cashfree offers backend SDKs to simplify the integration process.
In this step, you need to display the checkout interface to the customer. The UI should include a checkbox, allowing the customer to consent to card storage for future use.
In the make payment api, you need to set save_instrument to true after obtaining the customer’s consent. Once consent is received, Cashfree will initiate a token generation request with the card networks. Cashfree will first process the payment, completing the 2FA (two-factor authentication) step before sending the token generation request. If 2FA is not successfully completed—meaning the payment fails—Cashfree will not send the token provisioning request to the card networks, and the card will not be tokenized.