Skip to content

Configuration

Configure PhonePe on WHMCS's native gateway screen: Setup → Payment Gateways → PhonePe. Enter the fields below, then Save Changes.

PhonePe gateway configuration fieldsSetup → Payment Gateways → PhonePe

Fields

FieldWhat to enterNotes
Client IDYour PhonePe API Client ID from the Merchant (Business) dashboardCopy exactly — a stray character means PhonePe rejects the connection
Client SecretThe matching Client SecretSensitive; never share or post it
Client VersionLeave at the default 1Change only if PhonePe instructs you to
Payment ModeRedirect (default) or IframeRedirect = PhonePe's full-page checkout; Iframe = in-page popup. See Payment modes
Webhook UsernameThe username you set on the webhook in the PhonePe dashboardMust match the dashboard exactly
Webhook PasswordThe password you set on the webhook in the PhonePe dashboardMust match the dashboard exactly
Sandbox ModeYes = test environment; No (default) = liveConfirm a sandbox payment works before switching to live
License KeyYour PhonePe for WHMCS key from relyweb.coValidated at payment time; payments are disabled while inactive. See Licensing

Don't have credentials yet? The PhonePe setup guide walks through generating them.

Register the webhook

PhonePe confirms every payment by webhook. Register this URL in the PhonePe dashboard's webhook settings:

https://yourdomain.com/modules/gateways/phonepe/webhook.php

Replace yourdomain.com with your WHMCS domain, and make sure it's reachable over HTTPS.

Both sides must match

Matching credentials are required for webhook authentication:

  • Auth failure: Mismatched Webhook Username or Webhook Password fails the SHA256 check.
  • Impact: PhonePe webhooks are rejected and invoices remain unpaid. Set identical credentials in both dashboards.

Verify

Save Changes, then place a sandbox test order and confirm the invoice is marked Paid. If a payment fails, check Utilities → Logs → Gateway Log — it records each step of the exchange.

Documentation for the Relyweb app catalogue.