API Gateway URL🔗
The Razorpay API Gateway URL is https://api.razorpay.com/v1
. You need to include this before each API endpoint to make API calls.
Example🔗
Use the URL https://api.razorpay.com/v1/payments
to access payment resources.
Integrate Recurring Payments using Razorpay APIs.
Feature Request
This is an on-demand feature. Please raise a request with our Support team to get this feature activated on your Razorpay account.
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"
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 authorisation payment. The customer completes the authorisation payment, which generates a token
. This payment can be authorised using one of the following instruments:
confirmed
, you can create and charge subsequent payments.You can create registration links from the Razorpay Dashboard or using APIs.
Following is the integration flow to collect recurring payments using a registration link:
token
. This payment can be authorised using one of the following instruments:
confirmed
, you can create and charge subsequent payments.