Mandate registration is a process of creating a payment checkout form for customers to make Authorization Transaction and register their Card mandate. A token will be generated once a customer makes this transaction.
Using this authorization transaction, we can authenticate the customer's Card mandate and ensure that we can charge them recurring payments. The authorization transaction can be created using the following methods:
- .
- .
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 authorization transaction using standard checkout can be created only using Razorpay APIs.
-
This returns acustomer_id
. -
This returns anorder_id
. The order must be created for: -
Pass thecustomer_id
,order_id
and a few additional parameters in your checkout to create the authorization payment. The customer completes the authorization payment, which generates atoken
.
Registration Links are securely generated web addresses that allow your customers to complete the authorization transaction. Registration links can be sent via SMS or email.
Following is the authorisation transaction flow for Razorpay registration link method:
For customers to complete the authorization transaction via a registration link, you should Create a registration link and send it to your customer.
You can create a Registration Link using:
The customer completes the authorisation payment, which generates a token
.
No Need to Create a Customer and Order Separately
If you use a registration link to create the authorization transaction, Razorpay automatically creates a customer and the order for you.
A registration link moves through the following states during its life cycle:
Status | Description | Webhook |
---|---|---|
Issued | A registration Link is created and sent to the customer. | NA |
Paid | Payment is made for the issued registration Link. Once the registration Link is paid, search for Token corresponding to the payment. | |
Cancelled | The registration link has been canceled. In such cases, you need to create a registration link again. | NA |
Expired | The registration link has expired. You can set an expiry timestamp at the time of creation. |
Once the customer has made the Authorization Payment, it moves through the following states as per the
:Status | Description | Webhook |
---|---|---|
Created | Payment is created when a customer enters and submits the payment information. | NA |
Authorized | Payment is authorized when the customer’s payment details are successfully authenticated by the bank. | |
Captured | Indicates that the payment is verified by you. Once a payment is captured you can . | or |
Failed | Indicates that the payment has failed. If the payment has failed, you need to again. |