Prerequisites
To integrate Push Tokenisation, you must:- Have an active Razorpay Account
- Have a live payment integration such as Standard or Custom or S2S.
Standard Checkout
Integration Effort - None. Razorpay provides a fully managed checkout experience with end-to-end control. To enable this feature for Standard Checkout, contact Razorpay Support for assistance. For more information, refer Standard CheckoutCustom Checkout
Existing Custom Checkout users are automatically eligible for Push Tokenisation. If your business has already integrated with Custom Checkout, you can retrieve all tokens associated with a cardholder by using the Fetch Token API.Retrieve Token Via Fetch Token API
You should continue using the same API. However, ensure that the user’s phone number is provided in the same format as specified in the payload. You should pass this token to checkout to show customers the saved card details and help them complete the payment. Refer to the Fetch Token API document for more information.S2S (Server-to-Server) Integration
Integration Effort - None. Current S2S Integration Users can use Push Tokenisation without modifications. Integrate with Razorpay’s webhook to receive and process push tokens. Enable relevant events to efficiently consume and manage these tokens. For more information, refer to the S2S Integration - Tokenisation APIs documentation.Third Party Solutions
Integration Effort - Customised. Customised solutions are available based on specific requirements. Contact your Account Manager or raise a support request via Razorpay Support for assistance.Implementation Requirements
Push Tokenisation uses phone numbers as the unique customer identifier for fetch token operations, enabling seamless token sharing between banks and businesses. Email-only identification is not fully supported.Step 1 - Fetching Customer Tokens
To be able to create tokens using Push Tokenisation, you must create a customer using phone number as the primary identifier. For more details, refer Create a Customer API. The response will include all tokens the customer has authorised for your business account through their bank portal.Step 2 - Webhook Enablement
- Event Configuration: Confirm that the
token.service_provider.activatedevent is enabled in your webhook configuration. This event captures successfully tokenised details, including push tokens. - Payload Mapping: The event payload includes unique customer details. Ensure that you map these details with the unique customer identifier (in this case, phone number) when processing the data.
Setting Up Webhooks for the First Time
If you need to set up a webhook for the first time, follow these steps:-
Enable the following features:
- Ensure your Razorpay terminal is activated.
- Ensure tokenisation is activated for the relevant card networks.
-
Webhook Setup:
- Watch this tutorial video for detailed steps on setting up the webhook.
- Set Up Endpoint: Provide the URL of the endpoint where you want to receive webhook payloads. This should be the same endpoint used for storing token details during checkout.
- Whitelist Razorpay: Ensure your endpoint is configured to accept requests from Razorpay.
- The sample modified payload for push tokenisation with customer details
token.service_provider.activated
payload