-
Upload
paynowgg.phpto:/modules/gateways/paynowgg.php -
Upload
callback/paynowgg.phpandcallback/paynowgg_return.phpto:/modules/gateways/callback/paynowgg.phpand/modules/gateways/callback/paynowgg_return.php -
In WHMCS Admin, activate the PayNow.gg gateway.
-
Configure:
- Store ID
- API Key token
- Webhook Signing Secret
-
In PayNow, create a JSON webhook endpoint pointing to:
https://YOUR-WHMCS-DOMAIN/modules/gateways/callback/paynowgg.php -
Subscribe at minimum to
ON_ORDER_COMPLETED. Optional events logged/handled:ON_REFUND,ON_CHARGEBACK,ON_SUBSCRIPTION_ACTIVATED,ON_SUBSCRIPTION_RENEWED.
-
Upload
paynow_test_callback.phpto:/modules/gateways/callback/ -
In your PayNow dashboard, create a webhook and set the endpoint URL to:
https://YOUR-WHMCS-DOMAIN/modules/gateways/callback/paynow_test_callback.php -
Generate a test transaction by either:
- Applying a 100% discount coupon to an invoice, or
- Creating a $0.01 invoice and completing the checkout process.
-
Once the test payment is processed, the callback script should receive the webhook request and verify that your webhook configuration is working correctly.
If the test completes successfully, webhook/callback functionality has been verified. Note: The only way to create an order on a headless store is to do it through WHMCS. You must invoice yourself from WHMCS then you can create a coupon code from PayNow to complete the order.
- The module creates a PayNow customer and checkout from the WHMCS invoice.
- Checkout metadata includes whmcs_invoice_id so the signed webhook can mark the invoice paid.
- Subscription support is experimental and only requested when the WHMCS invoice has a single recurring Hosting or Addon line and Allow Subscriptions is enabled.
1.0.1 - Added Callback Test and updated README.
1.0.0 - Initial commit