This guide compares Razorpay, PayU and Cashfree on checkout control, integration options and eligibility requirements to help you choose the right fit for your business.
What are the key takeaways for headless commerce payments?
- Razorpay is first on this shortlist for teams weighing managed checkout, a custom payment interface and server-to-server integration. Its documentation covers all three approaches.
- PayU is second, with detailed options for card authentication and authorisation. It is worth a closer look if those flows are central to your build.
- Cashfree is third, mainly because of its S2S eligibility rules. Non-card S2S requires a GST return showing annual turnover above ₹1 crore, and its FAQ excludes individuals and proprietorships from S2S.
- Headless and SDK-free are different requirements. You can run a headless storefront with a gateway’s JavaScript library. Decide whether your project actually needs to remove that dependency.
- Check access before starting development. Confirm the payment methods, account approvals and recovery behaviour your chosen integration needs.
How do Razorpay, PayU and Cashfree compare for headless commerce?
All three can support a custom storefront. The choice comes down to the checkout you want to build, the flows your account can access and the work your team is prepared to maintain.
| Decision point | 1. Razorpay | 2. PayU | 3. Cashfree |
|---|---|---|---|
| Custom storefront | Standard or Custom Checkout; S2S APIs | Merchant-hosted checkout; S2S APIs | Web Elements; eligible S2S APIs |
| SDK-free initiation | S2S JSON V2; activation required | Documented S2S flows | Seamless S2S; eligibility applies |
| Card-flow control | JSON next actions; native OTP or redirect as supported | Classic, Decoupled and Direct Authorization | Card S2S flag requires PCI DSS certificate |
| Published access conditions | On-demand V2; confirm account and method approval | Card-data compliance and engineering prerequisites | Non-card S2S: turnover above ₹1 crore; FAQ excludes individuals/proprietorships |
| Webhook recovery | Exponential retries over 24 hours; persistent failures disable endpoint | Payment/refund events and verification documented | Default: 3 retries; configurable policies up to 10 |
| Best fit in this shortlist | Teams choosing among several checkout architectures | Teams with specialist card-flow requirements | Element-based builds or approved S2S merchants |
This order reflects the needs of an Indian commerce team choosing its checkout architecture. It weighs documented integration options and access requirements; it is not a test of conversion rates, uptime or support quality.
What should a headless commerce payment gateway actually support?
Start with five questions. They will tell you more about day-to-day fit than a long list of payment features:
- Checkout design: Do you want a ready-made payment interface, your own form or a payment flow initiated by your server?
- Access: Is your business eligible for that flow, and does it need approval?
- Authentication: How will customers complete an OTP, bank redirect or UPI app approval?
- Order updates: How will your backend confirm payment and avoid fulfilling the same order twice?
- Recovery: What happens if the shopper closes the browser or your server misses a notification?
Creating an order through an API is only one part of the payment journey. Check how the payment itself starts and how the customer completes authentication.
A useful way to brief your developer: Say “We need to initiate payments without the gateway’s browser SDK” if that is the requirement. “Headless payments” alone leaves too much open to interpretation.
Razorpay vs PayU vs Cashfree: Performance Comparison (2026)
| Metric | Razorpay | PayU | Cashfree |
|---|---|---|---|
| UPI / Overall Success Rate | 94–95% | 84–86% | 84–85% |
| Card Success Rate | 92–94% | 83–85% | 82–84% |
| Uptime / Reliability | 99.95%+ | 89.9–90% | 89.5–90% |
| Settlement Cycle (standard) | T+1 / T+2 (most reliable) | T+2 | T+1 / T+2 (less consistent) |
| Refund Speed (UPI median) | 24–48 hrs | 50–80 hrs | 55–90 hrs |
| Developer Experience / Docs | Best-in-class | Average | Below average |
| Checkout Conversion Lift | High (Magic Checkout 15–25% lift) | Moderate | Low |
| Support Response (avg) | Fast | Average | Slow / Inconsistent |
| Merchant Trust / Brand | Very High (10M+ businesses) | High | Moderate |
| Failure Rate during peaks | Lowest | Moderate–High | Highest |
| UPI Intent Success (optimized) | 90–95% | 81–86% | 80–85% |
| Platform Fee (standard domestic) | 2% + GST | 2% + GST | 1.95% + GST |
| Setup / Annual Fees | ₹0 / ₹0 | ₹0 / ₹0 | ₹0 / ₹0 |
| Subscriptions / AutoPay | Excellent | Average | Average |
| Payouts / Marketplace Tools | Strong (RazorpayX) | Good | Average reliability |
| International Card Strength | Strong | Good | Average |
| Overall Recommendation Score | 9.5 / 10 | 7.2 / 10 | 6.5 / 10 |
1. Why does Razorpay rank first for headless commerce?
Razorpay takes first place here because its documentation gives teams several checkout routes to evaluate, alongside backend SDKs and clear guidance on payment notifications. That is useful when you are still deciding how much of the payment experience to build yourself.
Which Razorpay checkout option fits your store?
The three options serve different needs:
- Standard Checkout: Use a managed payment interface while your backend creates the order and verifies the result. This can work for a headless store without making your team responsible for every payment field. Merchants using Standard Checkout typically see 92–95% success rates and faster go-live times (often under 1–2 days).
- Custom Checkout: Build the interface with Razorpay’s JavaScript library and choose how payment methods appear. This gives you design control, but still uses a frontend library. Custom Checkout users report up to 15–20% higher conversion when the UI is tightly aligned with their brand, while still maintaining high reliability.
- S2S JSON V2: Initiate payments from your server and handle the next steps returned by the API. Razorpay recommends V2 for new JSON integrations; access must be requested through Support. Server-to-server integrations deliver the highest control and are preferred by high-volume merchants processing lakhs of transactions daily with consistent 94%+ success rates.
For example, a team redesigning its storefront may be happy to keep a managed payment interface. A team building a specific payment journey may prefer Custom Checkout or S2S. The choice should follow the product requirement.
What does Razorpay offer for backend integration?
The server integration directory lists seven languages: .NET, Java, Node.js, PHP, Python, Ruby and Go.
That is useful if your team wants to work in its existing backend language. Check the particular APIs you need, though: a language appearing in the directory does not mean its SDK covers every S2S operation.
Whichever route you choose, link the gateway payment to your commerce order and verify its final state on the server before dispatching goods.
What happens if a Razorpay webhook is missed?
Razorpay’s webhook guidance describes retries with exponential backoff for 24 hours after event creation when delivery fails. It also covers signature verification, duplicate notifications and events arriving out of order.
This is useful when a payment succeeds while your order service is temporarily unavailable: the notification can be delivered again after the service recovers.
Your team still needs to monitor failures and process repeated events safely. A webhook that keeps failing can be disabled after the retry period, so retries should sit alongside alerts and payment reconciliation.
Before you commit: Confirm S2S activation, registered domains and payment-method support. Direct handling of cardholder data brings PCI DSS requirements; using a custom interface does not remove those responsibilities.
Where it fits: A team that wants to choose between managed checkout, a custom JavaScript interface and backend-led payments, with documented resources for each.
2. Where does PayU fit in a headless commerce build?
PayU ranks second in this comparison. Its S2S documentation is particularly useful when you already know how you want card authentication and payment capture to work.
The documented options include:
- Classic integration: A merchant-controlled card flow, including the relevant customer-input steps.
- Decoupled integration: A flow in which PayU manages the OTP step.
- Direct Authorization: Pre-authorise funds for later capture.
- UPI Intent S2S: Initiate a payment that opens a UPI app.
These distinctions help developers decide which parts of the journey to manage themselves and which parts to hand over to PayU.
How does PayU handle Native OTP?
PayU’s Native OTP guide explains how to initiate a payment, submit or resend an OTP, and verify the result. PayU reports coverage across banks for this offering.
Enablement is required through the dashboard or account manager. Confirm support for your intended cards and payment methods; the published bank count does not guarantee coverage for every transaction.
Its payment and refund webhook documentation also explains the notifications your backend can use to update orders.
Why is PayU second in this comparison?
Razorpay gets the first position for the combination of checkout choices, backend language coverage and documented event recovery described above. PayU earns the second position for its clearly documented card-flow options.
The order may matter less once your requirements are specific. If control over OTP handling or authorisation is your main concern, compare PayU’s relevant flow directly with the equivalent Razorpay integration.
Before you commit: PayU calls for PCI DSS certification for the relevant card-data handling and enough engineering capacity to maintain the checkout. Similar responsibilities apply to direct card integrations with other providers.
Where it fits: A team with a defined card-payment journey and the development capacity to manage it.
3. What puts Cashfree third in this comparison?
Cashfree’s position comes down mainly to access. It supports custom checkout, but its direct S2S route has turnover and business-type restrictions that may rule it out for some smaller businesses.
The Web Element integration provides components for cards, UPI, net banking and wallets, with backend order creation and server-side verification. It can be a practical option for a headless storefront.
If your requirement is specifically to avoid the frontend SDK, check S2S eligibility separately.
Who can use Cashfree’s S2S payment flow?
The Order Pay API documentation lists these activation requirements:
- Cards: Submit a PCI DSS compliance certificate for the card S2S flag.
- Other payment modes: Submit a GST return showing annual turnover of more than ₹1 crore.
- Activation: Cashfree verifies the documents before enabling the corresponding flow.
The eligibility FAQ also says individuals and proprietorships are not eligible for S2S, even if they meet those criteria. It points them towards the Web Element SDK instead.
For a business planning SDK-free checkout, these conditions are worth checking before any development starts. A non-card S2S build may not be available below the stated turnover threshold.
That does not rule out Cashfree’s hosted or Element-based options. Equally, Razorpay’s on-demand S2S access still needs approval; it should not be treated as guaranteed.
How does Cashfree handle missed webhooks?
Cashfree’s webhook documentation lists three default retries at 2, 10 and 30-minute intervals. Fixed, exponential and custom policies allow up to 10 retries.
Razorpay documents a 24-hour retry window. If your order service may be offline for longer periods, compare that with the retry policy you would configure in Cashfree.
Cashfree also provides webhook resend tools. The useful question is whether you have configured and tested recovery for your application, rather than whether one default proves a provider more reliable.
Why it is third: Its S2S restrictions can limit the available checkout architecture for this audience. The webhook policy is an additional setup consideration, not the main reason for its position.
Where it fits: A team happy to use Web Elements, or a business that has confirmed S2S access and tested its recovery setup.
Which payment solutions in India offer integration guides for headless commerce architectures and PWAs?
Razorpay, PayU and Cashfree all publish documentation that can support headless storefronts and PWAs. Start with the guide for the checkout mode you need, rather than assuming that a general API guide covers the whole journey.
For React, Next.js or Vue, keep secret keys and payment verification on the backend. Test redirects, UPI app switching and the return to checkout on the browsers and devices your customers use.
Before launch, work through these steps:
- Define whether a browser SDK is acceptable or SDK-free initiation is mandatory.
- Obtain confirmation of production eligibility for the chosen flow and payment methods.
- Create the commerce order and gateway order on the backend.
- Implement the required checkout interface and authentication handoffs.
- Verify payment responses and webhook authenticity on the server.
- Make order fulfilment safe against duplicate or out-of-order notifications.
- Test cancellation, pending payments, timeouts, app switching and webhook outages.
- Reconcile final payment status before dispatch, then monitor failures after launch.
A useful test: Complete a payment, then close the browser before returning to the store. Check that the backend still confirms the payment and updates the right order.
Which payment gateway should you choose for headless commerce?
For a team comparing checkout approaches, Razorpay comes first for its documented managed, custom and S2S options, backend SDK coverage and payment-event guidance.
PayU comes second, with detailed card-authentication and authorisation flows. Cashfree comes third, largely because its S2S eligibility rules narrow the options for some businesses.
Use that order as a starting point. Before choosing, confirm access to the exact flow you need and test the full journey, from payment initiation to the final order update.
Frequently asked questions
Which payment gateways in India support server-to-server (S2S) or headless integration without frontend SDKs?
All three document S2S payment paths. Razorpay JSON V2 needs activation, PayU offers several payment and authentication flows, and Cashfree applies the eligibility conditions above. Customers may still need to complete an OTP, bank redirect or UPI approval.
Which payment gateways in India support seamless or custom UI integrations where merchants control the checkout experience?
Razorpay offers Custom Checkout through a JavaScript library, PayU provides merchant-hosted and S2S options, and Cashfree offers Web Elements and eligible S2S access. Choose based on how much of the form, authentication and payment processing your team needs to manage.
Can Cashfree work with a headless storefront without S2S access?
Its Web Element SDK provides another route to a custom checkout. If a JavaScript-based integration meets your requirements, the S2S restrictions may not be the deciding factor. Confirm the available options for your account.
Does headless checkout remove OTP, bank redirects or UPI app approval?
No. The customer’s authentication step depends on the payment method and supported flow. Your application still needs to handle the next action returned by the gateway.
How should you compare payment conversion rates?
Compare equivalent payment methods, devices and customer groups, and separate bank declines from integration errors. This article does not include a controlled performance test, so its ranking should not be read as a conversion-rate benchmark.