API ReferenceIntegrationsKnowledge Base

Standard Checkout Integration - Best Practices

Standard Checkout is a standard integration provided by Razorpay where the complete checkout is developed and managed by Razorpay. You can configure payment methods, orders, company logo and also select custom color based on your convenience. This checkout supports all the major browsers (IE 9 and above).

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

5. Implement Webhooks🔗

Implement webhooks or the query API to avoid any cases of callback failure (drop offs could be connectivity or network failure) and to verify the payment details via an S2S call. Some of the webhook events you should enable are:

  • payment.captured
  • payment.failed
  • order.paid

Read more: Learn more about Webhooks.

6. Implement Callback URL🔗

Implement callback_url if your customer's make online payments on browsers such as Instagram, Facebook Messenger, Opera, UC browsers and so on. This is because, these browsers do not support i-frame.

Webhooks vs Callback URL🔗

You can use Callback URL and webhook to get the status of the transaction for a payment source.



Callback URL


Webhooks allow you to build or set up integrations that subscribe to certain events on Razorpay APIs. When one of those events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL.
Know more about webhooks.

A callback URL is an address that a server provides, and any computer in the Internet/private network can POST data to it. For Razorpay integrations, callback URL is the address at which Razorpay should send the transaction response. You can pass the URL in the https://<domain_name_callback_url> format in the callback_url request parameter. Know more about callback URL.

When to use

Use webhooks to receive real-time notifications when specific events occur. For example, receive notifications upon payment failure.

Use callback URL to redirect your customers to a particular page. For example:
• You can send customers to a payment success page after successful payment. This page will receive payment details such as the payment id.
• The Razorpay Checkout pop-up page does not appear in certain browsers, for example, on Facebook and Instagram browsers. In such cases, you can use the callback URL to redirect customers from your Facebook/Instagram page to another page where the Razorpay Checkout appears. Customers can complete the payments on this redirected page.