Available in🇮🇳 India
You can use Server-to-Server (S2S) payments integration to communicate directly with the Razorpay servers and seamlessly integrate the service in your web application. You can capture payment details on your server and process the payments at your end. You have complete control over the look and feel of the payment experience for your customers.
Razorpay supports two flavors of server-to-server integration. Choose the one that best suits your needs.
S2S JSON API (Recommended)
S2S JSON API (Recommended)
If you want more control over the way the customer is redirected, you can use the JSON API. You can decide where the customer should enter the transaction OTP to complete the payment - on your website or on the bank’s page.
Handy TipsWhile we have two JSON API versions, we recommend you to use V2 version. Using this API:
- Helps avoid multiple API calls.
- Provides a greater control over native OTP.
- Reduces payment timeout issues.
S2S Redirect API
S2S Redirect API
This is our default server-to-server integration. The payment creation request returns a variety of responses, which must be rendered on your customer’s browser to proceed with the payment. These responses typically result in the browser being redirected to a bank or gateway page to complete payment authentication.