Integrate Recurring Payments Using UPI

Know how to integrate Recurring Payments using UPI as a payment method.


The Recurring Payment integration involves the following steps:

Mandate registration is a process of creating a payment checkout form for customers to make Authorisation Transaction and register their UPI. A token will be generated once a customer makes this transaction.

Using this authorisation transaction, we can authenticate the customer's UPI and ensure that we can charge them recurring payments. The authorisation transaction can be created using Razorpay Standard Checkout or Registration Link.

Handy Tips

The lending businesses can restrict their customers from pausing and cancelling the mandate by enabling OC125 functionality. Raise a request with our

to enable the same.

Following is the authorisation transaction flow for Razorpay Standard Checkout method.

To create checkout form for customers to complete authorisation transaction using the Razorpay Standard Checkout method:

Watch Out!

The authorisation transaction using standard checkout can be created only using Razorpay APIs.


  1. This returns a customer_id.

  2. This returns an order_id. The order must be created for:

  3. Pass the customer_id, order_id and a few additional parameters in your checkout to create the authorization payment. The customer completes the authorization payment, which generates a token.

Once the customer has made the Authorisation Payment, it moves through the following states as per the

:

This is a process of fetching the token that contains the registration details of the customer and checking its status.

A token represents a mandate registration and is generated after the authorisation transaction is successfully captured. A token contains customer's payment details stored by Razorpay and is used to create a recurring payment.

Handy Tips

For simplicity, tokens are considered to be mandates. Hence, the status of the token determines the status of the mandate registration.

You can search for the tokens using the following:

As the authorisation transaction moves through its different states, the token that is generated also undergoes state changes. Following is the life cycle of a token:

 Token life cycle

Know more about the turnaround time (TAT) for UPI from the

.

This is the process of charging customers the actual subsequent amount using the fetched token and customer details.

Watch Out!

  • It may take 24-36 hours for the subsequent payment to reflect on your Dashboard. This is because of the failure of pre-debit notification and/or any retries that we attempt for the payment.

  • Do not create subsequent payments on the last day of the cycle. This will cause the payment to fail.

  • Subsequent payments can be charged without the need of any intervention from the customer. However, subsequent payments need to be created manually by you.

Once a token goes to the confirmed state, you can start creating recurring payments for the customer as per your business requirements.

You can create subsequent payments using Dashboard or APIs.

To create subsequent payments using the Dashboard:


  1. After the authorisation transaction is complete, a token is generated. You can use the search feature on the Dashboard to find the required token and check its status.

  2. After you have found the required confirmed token, you can create a subsequent payment by charging the token according to your business needs.

Order is Created Automatically

While creating a subsequent charge using the Dashboard, Razorpay automatically creates an order for you when you charge a token. There is no need to create an order separately.


Was this page helpful?