Best Practices for S2S Integration

Check the S2S best practices to follow for smooth integration and payment experience.

S2S integration is an API-based white label integration provided by Razorpay wherein you can capture payment details on your page and pass it.

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

  • We recommend using S2S JSON API for S2S integration.
  • Open the HTML provided as part of the API response from the customer's browser.
  • Pass the actual user_agent, customer IP and referrer to avoid any failures due to risk.
  • Integrate webhooks to get a callback via a server-to-server call.
  • Integrate the Payments Rainy Day kit to tackle payment exceptions such as late authorized payments, payment downtimes and errors.

What's New

Razorpay has added support for three decimal currencies such as KWD, BHD, and OMR, allowing business to accept international payments in these currencies. Know more about

(April 2023).

Is this integration guide useful?