The Razorpay API Gateway URL is https://api.razorpay.com/v1
. You need to include this before each API endpoint to make API calls.
Use the URL https://api.razorpay.com/v1/payments
to access payment resources.
Integrate Recurring Payments using Razorpay APIs.
Create and manage recurring payments using the Recurring Payments APIs.
You can create recurring payments using the following payment methods:
Feature Request
The Razorpay API Gateway URL is https://api.razorpay.com/v1
. You need to include this before each API endpoint to make API calls.
Use the URL https://api.razorpay.com/v1/payments
to access payment resources.
All Razorpay APIs are authenticated using Basic Auth
. Basic auth requires the following:
[YOUR_KEY_ID]
[YOUR_KEY_SECRET]
Basic auth expects an Authorization
header for each request in the Basic base64token
format. Here, base64token
is a base64 encoded string of YOUR_KEY_ID:YOUR_KEY_SECRET
.
Watch Out!
The Authorization
header value should strictly adhere to the format mentioned above. Invalid formats will result in authentication failures.
Few examples of invalid headers are: BASIC base64token
, basic base64token
, Basic "base64token"
and Basic $base64token
.
Follow these steps to generate API keys:
The Key Id
and Key Secret
appear on a pop-up page.
Watch this video to see how to generate API keys in the test mode.
Watch this video to see how to generate API keys in the live mode.
Watch Out!
The integration flow varies depending on how you choose to create the authorization transaction.
You can integrate Recurring Payments using Razorpay Standard Checkout via APIs. Following is the integration flow to collect recurring payments using the Razorpay Standard Checkout:
customer_id
.order_id
. The order amount for:
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
. This payment can be authorized using one of the following instruments:
confirmed
, you can create and charge subsequent payments.You can create registration links from the
or using APIs.Following is the integration flow to collect recurring payments using a registration link:
Create a registration link and send it to your customer
The customer completes the authorisation payment, which generates a token
. This payment can be authorised using one of the following instruments:
No Need to Create a Customer and Order Separately
If you use a registration link to create the authorisation transaction, Razorpay automatically creates a customer and the order on your behalf.
Retrieve and check the token status
After the token status changes to confirmed
, you can create and charge subsequent payments.
Create and charge subsequent payments
To do this, you have to manually:
Is this integration guide useful?