Accept PhonePe payments in WHMCS, the right way.
A production-grade PhonePe gateway for WHMCS built on the Standard Checkout V2 (O-Bearer OAuth2) API — UPI, cards, net banking and wallets, in redirect or iframe checkout, with SHA256-verified webhooks and automatic fee tracking.
O-Bearer OAuth2 API
Redirect · Iframe
UPI · Cards · NB · Wallets
Webhook + API check
ionCube ready
Simple, transparent licensing
One license per WHMCS installation. Includes updates, support, and unlimited transactions — we never take a cut of your payments.
Leased License
Yearly plan with continuous updates
- One WHMCS installation
- Unlimited transactions
- One-click auto-updates
- Email & ticket support
Lifetime License
Pay once, own it forever
- One WHMCS installation
- Unlimited transactions
- 1 year free support & updates
- Email & ticket support
Everything you need to accept PhonePe
From the OAuth handshake to the settlement reconciliation — secure, verified, and built on PhonePe's latest API.
Standard Checkout V2
Built on PhonePe's latest O-Bearer OAuth2 API — automatic access-token handling and a single, modern checkout endpoint.
Dual payment modes
Switch between full-page Redirect checkout and an in-page Iframe popup with a single dropdown — no code changes.
Webhook verification
SHA256-authenticated webhooks, then a second API status call to confirm the payment before it's ever recorded.
Automatic fee tracking
Reads the transaction fee straight from PhonePe's response and records it against the invoice — settlement reconciliation, done.
Sandbox support
Flip one toggle to point the gateway at PhonePe's sandbox, test end-to-end, then switch to production with confidence.
License managed
Just paste the license key from your purchase into the gateway settings. Local key caching with a fail-tolerance window means a momentary network blip never breaks checkout.
Configured in minutes, not days.
Activate PhonePe under Setup → Payment Gateways, paste your Client ID and Secret from the PhonePe Business dashboard, pick a checkout mode, and you're live. Every field is documented inline.
- Client ID & Client Secret from your merchant dashboard
- Redirect or Iframe checkout — a single dropdown
- Webhook username & password for SHA256 auth
- Sandbox toggle for safe end-to-end testing
Redirect or iframe — your customer's call to make easy.
Redirect mode sends customers to PhonePe's hosted page for the full payment-app experience. Iframe mode keeps them on your site with a popup checkout. Either way, they get UPI, cards, net banking and wallets in one place.
- UPI — GPay, PhonePe, Paytm & any UPI app
- Credit & debit cards, net banking, wallets
- Local card input disabled — PhonePe handles PCI scope
- Switch modes without touching theme code
Two checks before a payment is ever marked paid.
A webhook alone can be spoofed. This gateway authenticates the SHA256 hash on every webhook, then makes an independent API status call to PhonePe before recording the payment — and it reads the transaction fee straight from the response.
- SHA256 hash verification of webhook credentials
- Secondary API status check before recording
- Duplicate & invoice validation guards
- Transaction fee auto-extracted and logged
Built so a payment is paid only when it's truly paid
Payment gateways are a favourite target for spoofed callbacks. Every layer here exists to make sure money is recorded accurately and only once.
SHA256 webhook auth
Every incoming webhook's credentials are verified against a SHA256 hash before a single line of processing runs. Unauthenticated calls are rejected.
Dual payment verification
A passing webhook isn't enough. The handler makes an independent API status call to PhonePe and only records the payment if both agree it COMPLETED.
Dedup & invoice checks
Transaction-ID deduplication stops double-processing, and invoice validation confirms the invoice exists and belongs to this gateway before any payment is added.
SSL & license gating
All PhonePe API traffic runs over HTTPS, and payment processing is disabled the moment the module license is inactive — no silent, unlicensed operation.
Requirements & compatibility
The PhonePe gateway runs on standard WHMCS environments. No exotic dependencies, no server-level changes required.
System Requirements
PHP Extensions & Account
What does the PhonePe gateway do?
It lets your WHMCS install accept payments through PhonePe using the Standard Checkout V2 (O-Bearer OAuth2) API. Customers can pay with UPI, credit and debit cards, net banking, and wallets — and you choose whether they pay on a full-page redirect or an in-page iframe popup.
When a payment completes, the gateway verifies it, records it against the invoice, and logs the transaction fee automatically.
What's the difference between Redirect and Iframe modes?
In Redirect mode, customers are sent to PhonePe's hosted checkout page to complete payment, then returned to your site. In Iframe mode, the PhonePe checkout opens as a popup over your own page so customers never appear to leave. You switch between them with a single dropdown in the gateway settings — no theme or code changes.
How do I get my Client ID and Client Secret?
Sign up for a PhonePe Business account, complete KYC verification, and generate your API credentials (Client ID and Client Secret) from the merchant dashboard. Paste them into the gateway configuration in WHMCS along with your webhook username and password, and you're ready to take payments.
Is the webhook handling secure?
Yes. Every webhook is authenticated with a SHA256 hash of your webhook credentials before anything is processed. The handler then makes an independent API status call back to PhonePe and only records the payment if PhonePe also confirms it as COMPLETED. Duplicate-transaction and invoice-ownership checks prevent double-processing or mismatched invoices.
Can I test before going live?
Yes. The gateway has a Sandbox Mode toggle that points all API calls at PhonePe's sandbox environment. You can run end-to-end test payments, confirm webhooks and callbacks behave correctly, then switch the toggle off to go live with your production credentials.
What WHMCS versions and server requirements are needed?
The gateway is built and tested for WHMCS 8.x on PHP 7.4 or higher, with the ionCube Loader. It needs the curl, openssl, and json PHP extensions and a valid SSL certificate (required for the webhook endpoint). These are standard on virtually all WHMCS-ready hosts, including all Relyweb hosting plans.
How does licensing work, and what if I cancel?
You purchase a license from relyweb.co and paste the license key into the gateway settings — there's nothing extra to install. Your license is validated at payment initiation, callback, and webhook handling, with the result cached locally for 15 days and a 5-day fail-tolerance window so a temporary network hiccup never blocks checkout.
If you cancel an annual license, the gateway keeps working but stops receiving updates and support. The Lifetime license never expires for the installation it's tied to.
Do you offer support and refunds?
Yes. All licenses include email and ticket support, with priority response on Lifetime licenses. We're based in Ahmedabad and support is provided in English and Hindi. Every purchase is backed by a 14-day money-back guarantee — if it doesn't work for your setup, contact us within 14 days for a full refund.
Release history
What’s new in PhonePe Payment Gateway — newest first.
v1.1.0 08 Sep 2026 Latest
New
- Added an iframe option for payment processing.
- Added a webhook for payment notifications.
- Added setup instructions for PhonePe Business accounts.
- Added a Readme file with setup information.
Improvements
- Updated configuration setting descriptions for better clarity.
- Improved how the system handles license check responses.
- Ensured license checks no longer interfere with captured payments.
Related apps
Other Relyweb apps that fit alongside PhonePe Payment Gateway.
Razorpay Payment Gateway
Razorpay integration with subscription billing for Acellemail.
Cashfree Payment Gateway
Cashfree checkout for Acellemail subscriptions and one-time plans.
Zoho Payments
Accept Zoho Payments in WHMCS, natively.
Start accepting PhonePe today.
Activate the gateway, paste your credentials, and take your first UPI payment in minutes. 14-day money-back guarantee, no risk.