PhonePe Gateway for WHMCS — WHMCS Payment Module · Free by HD Media Network

Accept PhonePe & UPI inside WHMCS — free.

A free, open-source integration that connects PhonePe's Payment Gateway to your WHMCS billing panel. Customers pay by PhonePe, UPI QR or any UPI app; WHMCS marks the invoice paid automatically.

Get it on GitHub

PhonePe Gateway for WHMCS features

  • UPI + PhonePe

    Customers pay with a UPI ID, a QR code or directly from the PhonePe app.

  • Auto callback

    WHMCS marks invoices as paid automatically once PhonePe confirms the payment.

  • Sandbox testing

    Test safely in staging mode before going live — no real money involved.

  • Salt key security

    Uses PhonePe's official Salt Key + Salt Index authentication.

  • 3-step install

    Copy three files into WHMCS. No coding knowledge required.

  • Official SDK inside

    Ships with PhonePe's official PHP SDK, ready for production credentials.

How it works

  • Copy the gateway file

    Place phonepe.php in /modules/gateways/.

  • Copy the callback & module

    Add the callback handler and the phonepe/ folder to the gateways directory.

  • Activate & configure

    Enable PhonePe in WHMCS, enter your credentials and test in sandbox before going live.

Who PhonePe Gateway for WHMCS is for

  • Hosting companies on WHMCS

    Offer India's most used payment app at checkout.

  • Domain & digital service sellers

    Collect UPI payments with zero gateway-module cost.

  • WHMCS developers

    Readable, open-source code you can audit and extend.

Technical details

  • PHP 7.4 or above
  • WHMCS 7.x or 8.x
  • PhonePe Business account (for production)
  • PhonePe PG API v1

PhonePe Gateway for WHMCS — frequently asked questions

Is it really free?

Yes — the module is free and open source with no license fee or monthly charge. PhonePe's own transaction charges still apply to your merchant account.

Can I test without real payments?

Yes. Sandbox mode lets you test the full flow in staging before you switch to live credentials.

Do invoices update automatically?

Yes. The callback handler marks the WHMCS invoice paid once PhonePe confirms the payment.

More products from HD Media Network