When a payment made by your customer is authorized, it needs to be captured for it to be settled in your bank account. Use the Payment Capture Setting to configure the capture settings at an account level via the Dashboard.
Razorpay 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:
- Capture Payments using Payment Capture Settings
- Integrate Orders API
- Verify Signature to Avoid Data Tampering
- Check Payment/Order Status before Providing Services
- Implement Webhooks
- Implement Callback URL
Orders help in binding multiple payment attempts against a single order. This helps to prevent multiple payments. Integrate with Orders API on your server-side and pass the
order_id to Checkout.
This is a mandatory step that allows you to confirm the authenticity of the details returned to the Checkout form for successful payments.
Read more: Learn how to verify payment signature.
Check the payment/order status, that is if the payment's status is
captured and the order's status is
paid before proving the services to the customers.
You can determine payment and order status using:
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:
Read more: Learn more about Webhooks.
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.