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
- Download `upigateway-whmcs.zip` from `/whmcs-upi-gateway` or `/docs` and extract into your WHMCS `modules/gateways/` and `modules/gateways/callback/` directories.
- Open WHMCS Admin -> System Settings -> Payment Gateways, activate UPIGateway Direct UPI, and enter your merchant `user_token`.
- When clients click Pay Now on unpaid invoices, the module posts `amount` and WHMCS invoice reference inside `POST /api/create-order` (`order_id` / `remark1`).
- 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 / Step | Recommended Value |
|---|---|
| API Base Host | `https://upigateway.dev` |
| Merchant Secret | Store `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) |