Best Practices

Best practices you must follow for smoother integration and payment experience.


You can use Razorpay Custom Checkout to customise the checkout experience as per your requirements and use it as a white label solution.

  • Configure payment methods, orders, company logo and select custom colours based on your convenience.
  • Supports all the major browsers (IE 9 and above).

Given below are some of the best practices to be followed for 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

Know more about Webhooks.

6. Implement Callback URL🔗

Implement callback_url if your customers 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.

8. Implement VPA Saving and Validation Features🔗

Follow these best practices if you accept UPI collect payments from customers:

  1. Validate the VPA before initiating the payment request. Know more about VPA Validation.
  2. Add a custom UPI collect expiry based on the business requirement to provide enough time for the customer to complete the payment.
  3. Use the Saved VPA feature provided by Razorpay to provide a better customer experience and avoid payment failures.
×