This module allows you to accept payments via Paysgator in WHMCS.
-
Copy the
paysgator-whmcs-payment/modulesfolder to your WHMCS root directory. It should merge with your existingmodulesfolder.Final structure should look like:
/path/to/whmcs/ └── modules/ └── gateways/ ├── paysgator.php ├── paysgator/ │ └── logo.png └── callback/ └── paysgator.php -
Log in to your WHMCS Admin Area.
-
Go to Configuration > System Settings > Payment Gateways.
-
Click Manage Existing Gateways (or All Payment Gateways).
-
Locate Paysgator in the list and click it to activate.
-
Configure the following settings:
- API Key: Required. Get this from your Paysgator Dashboard.
- Webhook Secret: Optional but recommended. Used to verify webhook signatures for security.
- Test Mode: Enable for sandbox testing.
-
Click Save Changes.
- API Key: Required. Your Paysgator API key (Live or Test).
- Webhook Secret: Optional. Your Paysgator webhook secret for HMAC signature verification.
- Test Mode: Enable for sandbox testing.
Paysgator will send webhooks to notify WHMCS of payment events.
Webhook URL: https://your-whmcs-domain.com/modules/gateways/callback/paysgator.php
Configure this URL in your Paysgator Dashboard under Webhooks settings.
payment.success- Automatically marks invoices as paid- Other events are logged but not processed
The module supports HMAC-SHA256 signature verification. To enable:
- Get your Webhook Secret from Paysgator Dashboard
- Enter it in the Webhook Secret field in WHMCS gateway configuration
- Uncomment the signature verification code in
callback/paysgator.php
The module uses a sanitized externalTransactionId format: inv-{invoiceId} (max 15 characters, alphanumeric with dash/underscore only).
All transactions are logged in Billing > Gateway Log for debugging and audit purposes.
For issues or questions, contact Paysgator support at https://paysgator.com
