← Back to Blog

How to Set Up Payment Gateway for Ecommerce Store in India: Complete Setup Guide (Razorpay vs PayU vs Stripe)

By WovLab Team | February 24, 2026 | 10 min read

Why Your Choice of Payment Gateway Directly Impacts Conversion Rates

For any ambitious online business in India, mastering the payment gateway setup for ecommerce India is more than just a technical formality—it's a strategic imperative that directly influences your bottom line. The gateway acts as the critical bridge between customer intent and successful transaction. A clunky, slow, or insecure payment experience can trigger abandonment rates as high as 70% during checkout. Consider a scenario where a customer, having spent considerable time browsing and adding items to their cart, encounters a payment page that takes too long to load, offers limited payment options, or worse, appears untrustworthy. Data consistently shows that such friction points lead to lost sales. For instance, a study by Baymard Institute found that over 20% of users abandon their carts due to complicated checkout processes. In the Indian context, where diverse payment methods like UPI, net banking, and various digital wallets are prevalent, a payment gateway that offers a comprehensive suite of options tailored to local preferences is non-negotiable. Furthermore, factors like transaction success rates, uptime reliability, and fraud detection capabilities directly contribute to customer confidence and, consequently, conversion. A seamless and secure payment experience isn't just about facilitating payments; it's about solidifying trust and nurturing a loyal customer base for your ecommerce venture.

Razorpay vs PayU vs Stripe: Feature Comparison for Indian Ecommerce

Navigating the landscape of payment gateways for your Indian ecommerce store requires a detailed understanding of their offerings. Razorpay, an undisputed leader in India, excels with its extensive suite of payment methods including UPI, Net Banking for over 50 banks, credit/debit cards, and popular wallets like Paytm and PhonePe. It boasts robust developer-friendly APIs, advanced analytics, and a comprehensive dashboard. Its pricing structure is generally competitive, with a standard transaction fee of 2% for most methods, scaling down for high-volume businesses. Razorpay also offers value-added services like RazorpayX for payroll and current accounts, and Payment Links for easy collections.

PayU, another strong contender, offers similar breadth in payment options and has a significant market share, particularly known for its strong fraud prevention tools and high transaction success rates. PayU's strength lies in its established network and diverse product range, including EMI options, international payments, and recurring billing. Their standard pricing is also around 2% per transaction, with custom plans available. PayU often appeals to larger enterprises due to its proven scalability and enterprise-grade features.

Stripe, while globally renowned, has been steadily making inroads into the Indian market. It is highly favored by developers for its exceptionally clean and well-documented APIs, making complex integrations smoother. Stripe offers a wide array of international payment options alongside local Indian methods. Its strength is its global reach and unified platform for managing payments, subscriptions, and invoicing. Stripe's standard Indian transaction fee is also around 2% for domestic cards and UPI, with higher fees for international cards. While excellent for businesses with global aspirations or those prioritizing developer experience, its local Indian ecosystem support might feel less entrenched compared to Razorpay or PayU for purely domestic operations. For a complete payment gateway setup for ecommerce India, WovLab often helps clients weigh these options based on their specific business model and scale.

Feature Razorpay PayU Stripe (India)
Target Market Startups, SMEs, Enterprises (India-focused) SMEs, Enterprises (India-focused) Developers, Global businesses, Startups
Payment Methods (India) UPI, Cards, Net Banking (50+ banks), Wallets (Paytm, PhonePe, etc.), EMI UPI, Cards, Net Banking, Wallets, EMI UPI, Cards (Visa, MC, Amex, Rupay), Net Banking
International Payments Yes (limited currencies for direct payout) Yes (various currencies) Excellent (135+ currencies, unified platform)
Developer Friendliness High (Good APIs, documentation) Moderate to High (APIs available) Very High (Exceptional APIs, documentation)
Fraud Detection Advanced, AI-powered Strong, proprietary algorithms Robust, Radar feature
Pricing (Domestic) ~2% + GST per transaction ~2% + GST per transaction ~2% + GST per transaction (higher for international)
Value-added Services RazorpayX (Payroll, Current A/c), Payment Links, Subscriptions EMI options, Recurring billing, Invoice generation Subscriptions, Invoicing, Connect (platform)
Setup Time Fast (often 24-48 hrs with documents) Fast (often 24-48 hrs with documents) Fast (often 24-48 hrs with documents)

Step-by-Step Payment Gateway Integration Process (Shopify, WooCommerce & Custom)

Successfully integrating a payment gateway is crucial for your payment gateway setup for ecommerce India. The process varies depending on your platform. For popular platforms like Shopify, the integration is typically straightforward. You'd navigate to "Settings" -> "Payments," choose your desired provider (e.g., Razorpay, Stripe), activate it, and follow the on-screen prompts to connect your merchant account. This usually involves entering API keys and secrets provided by your chosen payment gateway, which links your Shopify store to their processing network. Shopify's built-in app store also offers dedicated apps for these gateways, often simplifying the setup further and providing additional features like advanced analytics or customized checkout experiences.

For WooCommerce, a plugin-based approach is common. After installing WordPress, you'd install the WooCommerce plugin, then search for and install the official plugin for Razorpay, PayU, or Stripe from the WordPress plugin repository or the gateway's website. Once installed and activated, navigate to "WooCommerce" -> "Settings" -> "Payments," enable the gateway, and configure it with your API keys. You might also need to set up webhooks for real-time transaction status updates. For both Shopify and WooCommerce, testing the integration thoroughly with sandbox credentials (provided by the payment gateway) is a critical step before going live to ensure all transaction flows, refunds, and order statuses are correctly handled.

Custom ecommerce platforms or bespoke applications require a more hands-on approach. This involves utilizing the payment gateway's comprehensive SDKs (Software Development Kits) or direct API calls. Developers integrate the payment form on the checkout page, securely capture card details (often using hosted fields or custom UI elements that tokenize data on the gateway's server, minimizing PCI DSS scope), and then send the tokenized payment information to the gateway's API endpoint for processing. Server-side logic handles the transaction confirmation and updates your internal order management system. This method offers maximum flexibility but demands expert development resources. At WovLab, we often handle these complex custom integrations, ensuring security and optimal performance.

Key Insight: Regardless of the platform, always perform end-to-end testing with dummy transactions in a sandbox environment before making your payment gateway live. This uncovers potential issues with order status updates, refund processes, or customer notifications.

GST Invoicing, TDS Compliance & Legal Requirements for Payment Gateways

Understanding the regulatory landscape is paramount for any payment gateway setup for ecommerce India. In India, Goods and Services Tax (GST) compliance is a significant consideration. When a customer makes a purchase, your ecommerce platform is responsible for generating a GST-compliant invoice. While payment gateways process the transaction, they typically do not generate the final GST invoice for your customers; this remains your responsibility. However, the transaction reports provided by the payment gateway are crucial for your reconciliation and GST filing. It's important to understand how the payment gateway fees are treated for GST purposes—they usually attract GST, which you can claim as input tax credit if eligible.

Tax Deducted at Source (TDS) is another area that requires careful attention. Payment gateways are classified as aggregators, and under certain provisions of the Income Tax Act, TDS might be applicable on the amounts settled to merchants, particularly for professional services or contractual payments if they exceed specified thresholds. For instance, sections like 194H (commission or brokerage) or 194O (e-commerce operators) can be relevant. Businesses must consult with tax professionals to understand their specific TDS obligations and ensure accurate deductions and timely remittance. The payment gateway usually provides TDS certificates or statements to facilitate this process.

Beyond taxes, several legal requirements govern payment gateway operations in India. The Reserve Bank of India (RBI) regulates payment systems, and entities offering payment services must comply with various guidelines, including those related to Know Your Customer (KYC) norms, data localization, and cybersecurity. For merchants, ensuring your chosen payment gateway is RBI-compliant and follows all necessary data protection standards (like PCI DSS for card data) is critical. Your terms and conditions and privacy policy must also clearly state how customer payment information is handled. WovLab provides consultation on these compliance aspects, helping businesses navigate the intricate regulatory framework to ensure a secure and legally sound operation.

Common Integration Failures and How to Fix Them Before Going Live

Even with careful planning, issues can arise during your payment gateway setup for ecommerce India. One of the most frequent integration failures is **API key or secret mismatch**. This typically results in authentication errors, preventing your system from communicating with the payment gateway. The fix is straightforward: double-check that the API keys and secrets entered in your platform's configuration match exactly what the payment gateway provided in your merchant dashboard. Pay close attention to leading/trailing spaces or invisible characters.

Another common problem is **incorrect webhook configuration**. Webhooks are essential for the payment gateway to inform your system about transaction status changes (e.g., successful payment, refund, failure). If webhooks aren't set up correctly, orders might remain in "pending" status even after payment, leading to operational chaos. Ensure your webhook URL is correct, accessible from the internet (not behind a firewall without proper routing), and that your system is configured to listen for and process the incoming webhook data. Testing webhook notifications in a sandbox environment is crucial.

Gateway-specific errors are also prevalent, often due to invalid transaction parameters. This could be anything from an incorrect currency code, a negative amount, or unsupported payment methods being requested. The gateway's API response usually contains a specific error code and message. Developers must implement robust error handling to parse these responses, log them, and display user-friendly messages to the customer. For example, if a customer tries to pay with an expired card, the gateway will return an error code that your system should translate into "Your card has expired. Please use another card."

Finally, **SSL/TLS certificate issues** can cause connectivity problems, especially in custom integrations where your server fails to establish a secure connection with the payment gateway. Ensure your server has up-to-date SSL certificates and that your network allows outgoing connections to the payment gateway's endpoints. WovLab’s development team has extensive experience troubleshooting these issues, providing rapid solutions to keep your ecommerce operations smooth.

Get Your Payment Gateway Live in 48 Hours (Implementation Support)

Expediting your payment gateway setup for ecommerce India can be a significant competitive advantage, allowing you to start generating revenue faster. At WovLab, we understand the urgency and complexities involved in this critical phase. Our specialized team offers end-to-end implementation support designed to get your payment gateway fully operational within 48 hours, provided all necessary documentation and merchant account approvals are in place. This rapid deployment strategy is built on our extensive experience with all major Indian payment gateways, including Razorpay, PayU, and Stripe, across various platforms like Shopify, WooCommerce, and custom-built ecommerce solutions.

Our process begins with a thorough assessment of your existing ecommerce infrastructure and business requirements. We help you select the most suitable payment gateway based on your specific needs regarding transaction volume, target audience, preferred payment methods, and budget. Following this, our development experts handle the complete integration—from API key configuration and webhook setup to custom checkout page development, if required. For platforms like Shopify and WooCommerce, we streamline the plugin installation and configuration, ensuring optimal performance and security. We don't just integrate; we also conduct rigorous testing across all payment scenarios, including successful transactions, failures, refunds, and partial payments, to guarantee a flawless customer experience.

Beyond the technical setup, WovLab also provides crucial guidance on post-integration aspects such as transaction reconciliation, fraud monitoring best practices, and understanding regulatory compliance specific to the Indian market, covering GST and TDS implications. Our support extends to training your team on how to manage transactions, access reports, and handle customer queries related to payments. With WovLab as your digital partner, you gain access to expert development, SEO/GEO optimization, and marketing insights, ensuring your newly integrated payment gateway not only functions perfectly but also contributes significantly to your online store's growth and conversion rates. Let us help you go live with confidence and speed.

Ready to Get Started?

Let WovLab handle it for you — zero hassle, expert execution.

💬 Chat on WhatsApp