WHMCS UPI Payment Module for Indian Web Hosting, Domain & VPS Providers

Automate WHMCS hosting invoices, cPanel/Plesk account provisioning, and domain renewals in INR at 0% transaction fees with UTR audit logging and addInvoicePayment hooks.

Eliminating Manual UTR Checks & Fee Erosion on Hosting Invoices

Indian shared hosting providers, KVM VPS sellers, and domain registrars running WHMCS operate on thin renewal margins. Deducting 2% to 3% aggregator commissions on ₹199–₹999 monthly invoices and domain renewals reduces net profitability substantially. Meanwhile, asking clients to upload UPI screenshots into support tickets forces round-the-clock manual staff moderation before cPanel or Virtualizor servers spin up.

Our official WHMCS module automates invoice settlement end-to-end at 0% transaction cost while settling INR directly into your company bank account in zero seconds.

Step-by-Step WHMCS Module Deployment

  1. Download `upigateway-whmcs.zip` from `/whmcs-upi-gateway` or `/docs` and extract into your WHMCS `modules/gateways/` and `modules/gateways/callback/` directories.
  2. Open WHMCS Admin -> System Settings -> Payment Gateways, activate UPIGateway Direct UPI, and enter your merchant `user_token`.
  3. When clients click Pay Now on unpaid invoices, the module posts `amount` and WHMCS invoice reference inside `POST /api/create-order` (`order_id` / `remark1`).
  4. Upon verified payment, UPIGateway dispatches a webhook to `modules/gateways/callback/upigateway.php`, which verifies `POST /api/check-order-status`, checks `checkCbTransID($utr)`, and applies `addInvoicePayment` with `0.00` fee.

Safe Callback Idempotency Pattern Inside WHMCS

<?php
// Core WHMCS callback pattern inside modules/gateways/callback/upigateway.php
$invoiceId = checkCbInvoiceID((int) $verifiedInvoiceId, $gatewayParams['name']);
checkCbTransID($verifiedUtr); // Halts execution safely if 12-digit UTR was already applied

addInvoicePayment(
    $invoiceId,
    $verifiedUtr,
    $verifiedAmountInr,
    0.00, // 0% Gateway Fee
    $gatewayModuleName
);

Instant Service Unsuspension & Open-Source Paymenter Support

Immediately after `addInvoicePayment` succeeds, WHMCS triggers `ModuleCreate` or `ModuleUnsuspend` automatically—restoring suspended hosting accounts within seconds without ticket delays. Hosting brands running open-source Paymenter instead of WHMCS can deploy our MIT-licensed `UPIGateway.php` extension located in `packages/upigateway-paymenter`.

WHMCS Configuration Parameters & Verification Security

WHMCS Setting / StepRecommended Value
API Base Host`https://upigateway.dev`
Merchant SecretStore `user_token` inside encrypted WHMCS gateway module configuration
Anti-Replay Protection`checkCbTransID($verifiedUtr)` + UPIGateway PostgreSQL UTR uniqueness lock
Transaction Fee Passed to WHMCS`0.00` (0% Commission — entire invoice credits directly to bank)

Related Integration Guides & Developer Resources

Explore more technical articles, code examples, and architecture guides on our official blog. Automate your Indian payment collection at zero percent fees with UPIGateway.dev.

We provide comprehensive developer documentation, ready-to-deploy SDKs for PHP and Node.js, and plug-and-play e-commerce plugins for WordPress and WooCommerce. Build modern payment checkout flows with direct bank settlement and full financial autonomy.

Back to Blog Index | Engineering Reports | View API Documentation | Explore Pricing Plans