developer

WooCommerce UPI Plugin Guide: 0% Fee Payments & Instant Confirmation

Learn how to accept UPI payments on WooCommerce with 0% gateway fees. Step-by-step setup guide for instant order status confirmation and direct bank settlements.

GS Gaurav Sharma WordPress Core & WooCommerce Engineer 3 min read
WooCommerce UPI Plugin Guide: 0% Fee Payments & Instant Confirmation guide
woocommerce upi plugin free accept upi woocommerce zero fee instant upi order confirmation wordpress wordpress ecommerce india direct upi gateway

Powering over 30% of all online stores globally, WordPress and WooCommerce offer Indian entrepreneurs complete data ownership, unlimited customization, and zero platform listing fees. Unlike proprietary platforms like Shopify, WooCommerce gives you full control over your hosting, database, and checkout code.

However, many Indian WooCommerce store owners still connect their checkout to centralized aggregators like Razorpay or PayU, handing over 2% of their total sales plus 18% GST on every domestic UPI order.

Here is the complete guide to installing and configuring a 0% fee direct UPI WooCommerce plugin with real-time automated order confirmation.


Why WooCommerce is the Choice for Sovereign E-Commerce

When you combine open-source WordPress with a self-hosted or direct payment infrastructure, your business achieves complete sovereignty:

The Sovereign WordPress Stack:
┌─────────────────────────────────────────────────────────────┐
│ CMS:                 WordPress 6.7+ / WooCommerce           │
│ Hosting:             Your VPS (DigitalOcean / Hetzner / AWS)│
│ Platform Fee:        0% (Zero platform commissions)         │
│ Payment Processing:  VyaparGateway (0% Transaction MDR)     │
│ Bank Settlement:     Direct to your Current Account (T+0)   │
└─────────────────────────────────────────────────────────────┘

You are completely insulated from third-party vendor lock-in, arbitrary account terminations, and delayed escrow settlement cycles.


The Flaws in Legacy WooCommerce Payment Plugins

Many older UPI plugins found in the WordPress repository suffer from critical flaws:

  1. Static QR Screenshots: They display a generic static QR code and ask the buyer to type their 12-digit UTR into a text field. This leads to rampant fake UTR fraud and requires store managers to manually cross-check bank statements before packing shipments.
  2. Third-Party Aggregator Fees: Plugins provided by conventional gateways deduct 2% on every transaction and hold money in nodal accounts for 2 to 3 business days.
  3. Heavy JavaScript Bloat: Many gateway SDKs inject multiple external scripts, degrading Core Web Vitals and Google PageSpeed scores.

How the VyaparGateway WooCommerce Plugin Works

The VyaparGateway WooCommerce Plugin eliminates manual entry and percentage commissions entirely:

[Customer clicks "Place Order" on WooCommerce Checkout]
                        │
                        ▼
       [WooCommerce Order Created: "Pending Payment"]
                        │
    ┌───────────────────┴───────────────────────────────┐
    │ Mobile Device: Opens UPI App via Instant Intent   │
    │ Desktop: In-Page Dynamic QR with Exact Bill Total │
    └───────────────────┬───────────────────────────────┘
                        │
                        ▼ (Customer Approves in Google Pay / PhonePe)
      [Funds land directly into Merchant Bank Account]
                        │
                        ▼
       [Bank Webhook hits WooCommerce REST API]
                        │
       [Order Status Transitions Automatically: "Processing"]

Step-by-Step Installation & Webhook Configuration

1. Download and Install the Plugin

  1. In your WordPress Admin Dashboard, navigate to Plugins > Add New > Upload Plugin.
  2. Upload the vyapargateway-woocommerce.zip package and click Activate Plugin.

2. Configure Gateway Settings

  1. Navigate to WooCommerce > Settings > Payments > VyaparGateway Direct UPI.
  2. Click Manage and configure:
    • Enabled: Check the box.
    • API Key & Merchant VPA: Enter your verified merchant UPI handle (e.g., brand@icici).
    • Webhook Secret: Set a secure cryptographic secret string matching your VyaparGateway portal.
    • QR Expiration Time: Set to 300 seconds (5 minutes).

3. Register Webhook Endpoint

The plugin automatically registers a custom REST API endpoint: https://yourdomain.com/wp-json/vyapar/v1/webhook Copy this URL into your VyaparGateway dashboard to receive real-time bank notifications.


Custom Order Status Transition via PHP Hooks (Code)

For developers who wish to customize how orders are fulfilled upon payment verification, the plugin exposes standard WordPress action hooks:

<?php
/**
 * Hook into VyaparGateway successful payment confirmation
 * File: functions.php or custom functionality plugin
 */
add_action('vyapar_payment_completed', 'custom_process_upi_fulfillment', 10, 3);

function custom_process_upi_fulfillment($order_id, $utr_number, $amount_paid) {
    $order = wc_get_order($order_id);

    if (!$order) {
        error_log("VyaparGateway Webhook Error: Order #{$order_id} not found.");
        return;
    }

    // Add administrative order note with Bank UTR reference
    $order->add_order_note(
        sprintf(
            __('Direct UPI payment confirmed via VyaparGateway. Bank UTR: %s. Amount: INR %s', 'woocommerce'),
            esc_html($utr_number),
            esc_html($amount_paid)
        )
    );

    // Transition order to Processing (or Completed for digital goods)
    if ($order->has_downloadable_item()) {
        $order->payment_complete($utr_number);
    } else {
        $order->update_status('processing', __('Payment received via direct UPI.', 'woocommerce'));
    }

    // Trigger internal dispatch notification to warehouse
    do_action('dispatch_order_to_wms', $order_id);
}

The Financial Advantage for WordPress Merchants

Monthly WooCommerce GMV:                   ₹ 15,00,000
Legacy Gateway Cut (2% + 18% GST):         ₹    35,400 / month
VyaparGateway Plugin Cost:                 ₹     1,499 / month
------------------------------------------------------
Net Working Capital Retained:              ₹    33,901 / month
Annual Direct Bottom-Line Savings:         ₹  4,06,812 / year

Stop losing 2% of every sale. Deploy the VyaparGateway WooCommerce Plugin today and enjoy instant bank settlements with 0% transaction fees.

Direct answers

Frequently asked questions

Is there a completely free WooCommerce plugin to accept UPI payments?
Yes. VyaparGateway provides an open WooCommerce plugin that allows stores to accept direct UPI payments via dynamic QR codes and mobile intent links with 0% per-transaction commission.
How does WooCommerce confirm an order automatically after UPI payment?
When a customer completes a UPI payment, the bank fires an instant cryptographic webhook to your WordPress REST API endpoint (`/wp-json/vyapar/v1/webhook`). The plugin verifies the payload signature and automatically transitions the order from 'Pending Payment' to 'Processing' within 500 milliseconds.
Does this require manual UTR number entry by the buyer?
No. The system generates a single-use Dynamic QR code with a pre-bound transaction reference (`tr`). When the bank webhook detects that specific reference, the order is fulfilled automatically without requiring manual customer input.

Build your payment flow

Explore the API and browser-only merchant tools.

Create UPI checkout orders, verify signed events, or test the free calculators and generators without exposing credentials.