← Back to Blog

A Step-by-Step Guide: How to Integrate a Payment Gateway in Your Website for Indian Small Businesses

By WovLab Team | April 01, 2026 | 11 min read

Choosing the Right Payment Gateway for Your Indian Business (Razorpay vs. PayU vs. Stripe)

Figuring out how to integrate payment gateway in website for small business india starts with a critical decision: selecting the right partner. The payment gateway is the digital equivalent of a point-of-sale machine, but it does so much more. It processes credit cards, debit cards, UPI, net banking, and digital wallets, ensuring your customers can pay you securely and effortlessly. For Indian small businesses, the choice typically narrows down to a few key players, each with distinct advantages. Your decision will impact everything from transaction costs and customer checkout experience to the speed at which you receive your funds. It's not just a technical choice; it's a strategic business decision.

The ideal gateway for a startup might not be the best for a business with high transaction volumes. Factors to consider include Transaction Discount Rate (TDR), annual maintenance charges (AMC), ease of integration, and the breadth of supported payment methods. While Razorpay and PayU are local giants deeply integrated with the Indian payment ecosystem, global players like Stripe offer a polished developer experience and seamless international payments. Let's break down their offerings in a comparative table to help you decide.

Feature Razorpay PayU Stripe (India)
Standard TDR (Domestic) 2% on most instruments. No setup fees. 2% + GST. Custom pricing available for high-volume businesses. 2% for most Indian cards, 3% for international cards.
Supported Payments UPI, Credit/Debit Cards (Visa, Mastercard, RuPay, AmEx), 50+ Netbanking, Wallets (Paytm, PhonePe etc.), EMI, PayLater. Extensive options including UPI, Cards, Netbanking, Wallets, and EMI. Strong focus on local payment methods. Major Credit/Debit Cards, UPI. Good for businesses targeting both Indian and global customers.
Onboarding & Activation Fully digital, typically live within minutes for test transactions. Production-ready in 2-3 days post-documentation. Digital onboarding process. Activation time can vary from 1 to 4 days. Extremely fast, fully online onboarding. Can often start accepting payments the same day.
Settlement Time T+2 working days standard. Early settlement options (T+1 or same-day) available for a fee. T+2 working days standard. T+2 working days for Indian businesses.
Integration & Developer API Excellent documentation, powerful APIs, and official plugins for all major platforms (WooCommerce, Shopify, Magento). Good API and SDKs available. Robust plugins for major e-commerce platforms. Considered the gold standard for developer-friendly APIs and documentation. Simple, clean integration.
Key Differentiator RazorpayX: A neo-banking platform for managing payroll, vendor payments, and corporate cards alongside collections. Strong enterprise focus with features like payment analytics and high customizability for large-scale operations. Stripe Connect: Superior platform for marketplaces and multi-vendor businesses. Excellent for global payments.

Expert Insight: For most Indian small businesses starting out, Razorpay offers the best balance of features, extensive payment options, and ease of use. If your business model is a marketplace or requires complex payment flows, Stripe's powerful API is worth the slightly higher learning curve.

Essential Documents and Requirements for Payment Gateway Approval in India

Before you can start accepting payments, payment gateways in India are legally required to perform a thorough Know Your Customer (KYC) verification. This process is mandatory to prevent fraud and comply with regulations set by the Reserve Bank of India (RBI). Having your documentation in order is the single most important factor for a speedy approval. A delay in this stage means a direct delay in your ability to generate revenue. The requirements vary slightly based on your business's legal structure.

At a minimum, you'll need a functional website with clear descriptions of your products or services. Crucially, your site must have publicly accessible pages for Terms & Conditions, Privacy Policy, and Shipping & Refund Policy. The payment gateway's risk team will manually review your website to ensure it's a legitimate business. Here is a checklist of the core documents you need to have ready:

Pro Tip: Your business bank account name and the name on your business registration documents must match exactly. Any mismatch is a common reason for rejection. Ensure your website clearly lists your business's legal name and contact information as mentioned in the documents.

Step-by-Step: How to Integrate Payment Gateway in Website for Small Business India (for WordPress/WooCommerce & Custom Sites)

Once your account is approved and you have your API keys, it's time for the technical integration. The complexity of this step depends entirely on your website's platform. For popular e-commerce systems, it's a straightforward process. For custom-built sites, it requires development expertise.

For WordPress/WooCommerce Sites:

The beauty of using a platform like WordPress with WooCommerce is the vast ecosystem of plugins that make complex tasks simple. Payment gateways invest heavily in creating official plugins that handle the entire payment flow securely.

  1. Find and Install the Plugin: From your WordPress dashboard, navigate to `Plugins > Add New`. Search for the official plugin for your chosen gateway (e.g., "Razorpay for WooCommerce" or "PayU India for WooCommerce"). Click "Install Now" and then "Activate".
  2. Enter API Keys: Go to your WooCommerce settings (`WooCommerce > Settings > Payments`). Find your newly installed gateway in the list and click "Manage". This is where you'll configure the plugin. The most important fields are the Key ID and Key Secret (or Merchant Key & Salt for PayU). You will find these credentials in your payment gateway dashboard.
  3. Configure Settings: In the same section, you can enable the payment method, change the title and description that customers see at checkout, and choose the payment action (Authorize and Capture, or just Authorize). For most small businesses, "Authorize and Capture" is the right choice, as it automatically processes the payment upon successful order placement.
  4. Enable and Test: Ensure the "Enable" checkbox is ticked and save your changes. The payment method should now appear on your checkout page. It's crucial to first test this in sandbox/test mode.

For Custom-Coded Websites (PHP, Node.js, Python, etc.):

If your website is built from scratch, you need to use the gateway's API/SDK. This provides more flexibility but requires a developer. The general flow is consistent across most gateways:

  1. Server-Side: Install SDK: First, install the official SDK for your backend language. For example, in Python, you'd run `pip install razorpay`. This SDK helps you securely communicate with the gateway's servers.
  2. Server-Side: Create an Order: When the customer clicks "Pay," your backend should not send the amount directly from the browser. Instead, your backend code should create an "Order" on the payment gateway's server using the SDK. You'll pass the amount, currency (`INR`), and a unique receipt ID. The gateway will respond with an `order_id`.
  3. Client-Side: Pass Order ID to Frontend: Your server sends this `order_id` back to the customer's browser (the client-side).
  4. Client-Side: Initiate Checkout: You will use the gateway's JavaScript library (e.g., Razorpay's `checkout.js`). You initialize it with your public Key ID and the `order_id` received from your server. This script will securely open the payment pop-up or redirect to the payment page, handling all the complex interactions with banks and UPI apps.
  5. Server-Side: Verify Payment Signature: After the customer completes the payment, the gateway sends a response to your frontend and also sends a webhook to your server. It's critical to verify this payment on your backend using a cryptographic signature provided in the response. The SDK provides a utility for this. Only after successful verification should you confirm the order in your database and show the customer a success page.

Security Warning: Never trust the payment amount sent from the client-side (browser). Always create the order on your server with the price stored in your own database. This prevents a "man-in-the-browser" attack where a user could manipulate the checkout price.

Testing Your Payment Gateway: Sandbox vs. Live Transactions

Going live without thorough testing is a recipe for disaster, leading to lost sales and frustrated customers. Every professional payment gateway provides two distinct environments: Sandbox (or Test) and Live (or Production). It is a critical part of the process of how to integrate a payment gateway in a website for a small business in India.

The Sandbox environment is a complete replica of the live payment processing system, but it doesn't involve real money. It allows you to simulate every possible transaction scenario—success, failure, different payment methods—to ensure your integration works flawlessly. You will get a separate set of test API keys (Key ID and Key Secret) for the sandbox. When you are in test mode, you can use a list of provided test card numbers, dummy UPI IDs, and net banking credentials to mimic the entire checkout flow. For example, you can test a successful transaction, a card rejection due to an incorrect CVV, or a payment failure due to insufficient funds.

Common test scenarios to run in Sandbox:

Once you have successfully tested all scenarios, you can switch to the Live environment. This involves swapping the test API keys in your website's configuration with your live keys. After switching, the system will process real money from actual bank accounts and credit cards. Even after going live, it's a best practice to perform a few small, real transactions on your own to ensure everything is working as expected. This final check confirms that your live account is configured correctly and that funds are being credited to your bank account.

Golden Rule of Integration: Never, ever skip the Sandbox testing phase. A single bug in your payment flow that only appears in the live environment can cost you thousands in lost revenue and damage your brand's reputation.

Avoiding Common Pitfalls: Security, Compliance (PCI-DSS), and High Transaction Fees

Successfully integrating a payment gateway is more than just making it work. It's about doing it securely, compliantly, and cost-effectively. Small businesses, in particular, need to be aware of common traps that can erode profits and expose them to risk.

First, let's talk about security and compliance. The global standard for handling card data is the Payment Card Industry Data Security Standard (PCI-DSS). Achieving full compliance can be incredibly complex and expensive. Thankfully, modern payment gateways like Razorpay and Stripe are designed to drastically reduce your compliance burden. They use a method where the sensitive card information (card number, CVV) is entered directly onto their secure servers via an iframe or a hosted page. This means the sensitive data never touches your server, which simplifies your PCI-DSS requirements to the easiest level (SAQ A). Crucially, you must never log, store, or transmit plain card numbers or CVVs in your database or server logs.

Second, be wary of transaction fees. The advertised 2% TDR is just the starting point. You must also account for GST (currently 18%) charged on the TDR. So, a 2% TDR effectively becomes 2.36%. While there are often no setup fees, be sure to read the fine print for any annual maintenance charges (AMC) or fees for specific features like international payments or early settlements. As your business grows and your transaction volume increases, don't hesitate to contact your payment gateway's sales team to negotiate for a lower TDR. They are often willing to reduce rates to retain high-volume clients.

Financial Insight: Always calculate your pricing and profit margins by factoring in the post-GST transaction fee (e.g., TDR * 1.18). For a ₹1000 sale, you won't receive ₹980; you'll receive ₹976.4. Over thousands of transactions, this difference adds up significantly.

Ready to Accept Payments? Let WovLab Handle Your Payment Gateway Setup

As we've seen, figuring out how to integrate payment gateway in website for small business india involves much more than copying a few lines of code. It requires careful planning, meticulous documentation, secure implementation, and thorough testing. From choosing the right partner to navigating compliance and ensuring a seamless user experience, every step is critical to your online success.

This is where an expert partner can be invaluable. At WovLab, we are a full-service digital agency with deep expertise in the Indian e-commerce and payments landscape. We don't just build websites; we build businesses. Our team has helped countless small and medium enterprises in India go from concept to live transactions, securely and efficiently.

Our payment gateway integration services include:

Don't let technical hurdles or compliance worries slow down your business growth. Focus on what you do best, and let the experts at WovLab manage the complexities of online payments. Contact us today for a consultation and take the first step towards seamless, secure payment collection.

Ready to Get Started?

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

💬 Chat on WhatsApp