Installation and configuration guide
This chapter describes how to download, install, update, and configure the PUQ NOWPayments payment gateway module for WHMCS.
WHMCS Installation and Update
NOWPayments Payment Gateway module WHMCS
Order now | Download | Community
System requirements
| Requirement | Minimum |
|---|---|
| WHMCS | 8.x+, 9.x+. |
| PHP | 7.4, 8.1, 8.2, 8.3, 8.4 |
| ionCube Loader | v15+ |
Note: The module uses ionCube encoding. Make sure ionCube Loader is installed and active on your server.
Installation
Note: The module now uses ionCube 15, which provides universal out-of-the-box support for all encodings.
All versions can be found at this link:
https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/Older module versions for WHMCS 8 are available in the archive directory:
https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/archive/
-
Download the latest version from the PUQ download page:
wget https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/PUQ_WHMCS_PG-nowpayments-latest.zip -
Unzip the archive:
unzip PUQ_WHMCS_PG-nowpayments-latest.zip -
Upload the module files to your WHMCS installation: Copy the extracted gateway files from the
puq_nowpayments/archive folder into your WHMCSmodules/gateways/directory:# Copy main gateway file, asset folder, and IPN webhook callback cp -f puq_nowpayments/puq_nowpayments.php /path/to/whmcs/modules/gateways/ cp -rf puq_nowpayments/puq_nowpayments /path/to/whmcs/modules/gateways/ cp -rf puq_nowpayments/callback /path/to/whmcs/modules/gateways/ -
Ensure proper ownership and file permissions for your web server user (e.g.
www-data):chown -R www-data:www-data /path/to/whmcs/modules/gateways/puq_nowpayments* chown -R www-data:www-data /path/to/whmcs/modules/gateways/callback/ -
The module files are now in place. Proceed to the gateway configuration chapter.
Update
The update procedure is the same as installation — replace the existing files with the new version:
- Download the latest version as described in the Installation section.
- Unzip the archive.
- For gateway modules, simply overwrite the existing files. No deactivation is needed:
cp -f puq_nowpayments/puq_nowpayments.php /path/to/whmcs/modules/gateways/ cp -rf puq_nowpayments/puq_nowpayments /path/to/whmcs/modules/gateways/ cp -rf puq_nowpayments/callback /path/to/whmcs/modules/gateways/ - Verify the version number in the module interface matches the new release.
Gateway Configuration
NOWPayments Payment Gateway module WHMCS
Order now | Download | Community
Activate Payment Gateway in WHMCS
- Log in to your WHMCS Admin Area.
- Navigate to System Settings → Payment Gateways (or Setup → Payments → Payment Gateways in older WHMCS versions).
- Switch to the All Payment Gateways tab.
- Locate PUQ NOWPayments in the list and click to activate.
Configure Payment Gateway
After activating, WHMCS redirects to the Manage Existing Gateways tab (or navigate there directly via System Settings → Payment Gateways → Manage Existing Gateways). Locate the PUQ NOWPayments section.
gateway-configuration.png
Configure the following parameters:
| Parameter | Type | Description |
|---|---|---|
| Show on Order Form | Checkbox | Check this box to enable NOWPayments as an available payment option on customer checkouts and invoices. |
| Display Name | Text | The public title displayed to customers (default: NOWPayments). |
| License Key | Text | Your PUQ module license key. The validation status is displayed inline. |
| Mode of Operation | Dropdown | Choose between Production – live payments or Sandbox – test environment. Always test in sandbox mode before going live. |
| Payment Flow | Dropdown | Choose between Embedded Currency Selector (customer selects coin on WHMCS invoice) and Direct Hosted Checkout (customer redirects to NOWPayments checkout). |
| Minimum Invoice Amount | Text (Number) | Optional minimum invoice total in your WHMCS base currency. If set, invoices below this value display an advisory notice. |
| Block Invoices Below Minimum | Checkbox | When enabled, completely blocks payment processing for invoices below the minimum amount and displays a red notice asking the client to select another payment method. |
| API Key (Production) | Password | Production API Key from your NOWPayments Production Store Settings. |
| IPN Secret Key (Production) | Password | Production IPN Secret Key from NOWPayments Notifications. |
| API Key (Sandbox) | Password | Sandbox API Key for development/testing from NOWPayments Sandbox Keys. |
| IPN Secret Key (Sandbox) | Password | Sandbox IPN Secret Key from NOWPayments Sandbox Notifications. |
| IPN Callback URL | Read-only | Automatically generated webhook endpoint URL. Copy this into your NOWPayments dashboard settings. |
| Module Version | Read-only | Displays the currently installed module version (e.g. 4.0.0). |
| Sort Currencies | Dropdown | Sorting order for coins in the dropdown: Ascending (A-Z), Descending (Z-A), or Do Not Sort (Merchant Default). |
| Show Currency Code | Dropdown | Choose Yes to display ticker symbols next to names (e.g. Bitcoin (BTC)). |
| Is Fee Paid by User | Dropdown | Choose Yes if the customer pays the gateway commission fee, or No if absorbed by merchant. |
| Convert To For Processing | Dropdown | Optional WHMCS setting to convert invoice amounts into a selected currency prior to processing. |
Click Save Changes at the bottom of the page.
Webhook / IPN Setup in NOWPayments
To receive automated payment confirmations:
- Copy the IPN Callback URL shown in your WHMCS gateway settings:
https://yourdomain.com/modules/gateways/callback/puq_nowpayments.php - Open your NOWPayments account settings:
- Paste the callback URL and ensure the generated IPN Secret matches the secret entered in WHMCS.
- Click Save Changes.
Important: The webhook callback URL must be publicly accessible over HTTPS so that NOWPayments servers can post real-time IPN notifications to your WHMCS.