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.
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.
You can use Callback URL and webhook to get the status of the transaction for a payment source.
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.
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
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: