Razorpay S2S Integration - Best Practices

Follow these Best practices while doing TPV integration.


S2S integration is an API-based white label integration provided by Razorpay wherein you can capture payment details on your page and pass on the same to Razorpay via a backend API call.

Given below are some of the best practices to be followed for a smoother integration and payment experience:

  1. We recommended using for S2S integration.
  2. For redirect flow, you must open the HTML provided as part of the API response, as is from the customer's browser.
  3. You should pass the actual user_agent, customer IP and referrer to avoid any failures due to risk.
  4. You should integrate to get a callback via a server to server call.
  5. Integrate the to tackle payment exceptions such as late authorized payments, payment downtimes and errors.

Is this integration guide useful?