# NOWPayments payment gateway WHMCS module

# Description

### NOWPayments Payment Gateway module **[WHMCS](https://puqcloud.com/link.php?id=77)**

##### [Order now](https://puqcloud.com/whmcs-payment-gateways.php) | [Download](https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/) | [Community](https://community.puqcloud.com/)

The PUQ NOWPayments Payment Gateway module for WHMCS allows hosting providers and online businesses to accept over 200 cryptocurrencies directly on customer invoices with automatic real-time rate conversion, secure IPN callback verification, and instant balance settlement.

## Key Features

- **200+ Cryptocurrencies Supported:** Accept Bitcoin (BTC), Ethereum (ETH), Litecoin (LTC), TRON (TRX), Tether (USDT), Dogecoin (DOGE), and hundreds of other coins.
- **Searchable Currency Dropdown:** Powered by Select2 with coin logos, ticker symbols, and instant keyboard search.
- **Dynamic Real-Time Rate Estimation:** Live exchange rate estimates fetched directly via NOWPayments API.
- **Configurable Payment Flows:** Choose between an embedded invoice currency selector or direct hosted checkout redirection.
- **Minimum Invoice Threshold Management:** Set custom minimum amounts to advise clients or strictly block micro-invoices below network fee limits.
- **Automated IPN Webhooks:** Instant invoice payment processing with HMAC-SHA512 cryptographic verification.
- **Comprehensive Logging:** Dedicated entries in WHMCS Gateway Log and Module Log with sanitized and masked API credentials.
- **Multi-Currency Settlement:** Automatic conversion into the client's account currency and base WHMCS currency.
- **Multi-Language Support:** Fully localized into all 27 languages supported by WHMCS.

## System requirements

<table id="bkmrk-requirement-minimum-"><thead><tr><th>Requirement</th><th>Minimum</th></tr></thead><tbody><tr><td>**WHMCS**</td><td>8.x+, 9.x+.</td></tr><tr><td>**PHP**</td><td>7.4, 8.1, 8.2, 8.3, 8.4</td></tr><tr><td>**ionCube Loader**</td><td>v15+</td></tr></tbody></table>

- - - - - -

## Available Options in Admin Panel

- Configure API credentials for production and sandbox environments.
- Set IPN secret keys for secure callback validation.
- Switch seamlessly between live production and sandbox test environments.
- Automatic webhook callback endpoint URL generation.
- Choose preferred checkout flow (Embedded currency selector vs Direct hosted checkout).
- Configure optional minimum invoice threshold to guide customers on micro-payments.
- Enable strict blocking mode to prevent payment attempts on invoices below minimum threshold.
- Sort available cryptocurrencies (Ascending, Descending, None) and toggle currency codes.
- Choose whether gateway transaction fees are absorbed by the merchant or paid by the customer.
- Inline license key validation and dashboard notification alerts.

## Available Options in Client Panel

- Select from 200+ cryptocurrencies with instant search and coin logos.
- View real-time exchange rates and exact payment amounts before proceeding.
- Clear advisories and recommendations for low-fee coins (LTC, TRX, DOGE, USDT-TRC20) when invoices fall below network minimums.
- Clear notifications when invoices fall below merchant-configured minimum thresholds.
- Direct redirection to secure NOWPayments hosted payment page.
- Instant invoice status update to **Paid** upon blockchain confirmation.

- - - - - -

## Links

- **Product page:** [https://puqcloud.com/whmcs-payment-gateways.php](https://puqcloud.com/whmcs-payment-gateways.php)
- **Documentation:** [https://doc.puq.info/books/nowpayments-payment-gateway-whmcs-module](https://doc.puq.info/books/nowpayments-payment-gateway-whmcs-module)
- **Support:** [https://puqcloud.com/submitticket.php](https://puqcloud.com/submitticket.php?step=2&deptid=1)
- **Community:** [https://community.puqcloud.com/](https://community.puqcloud.com/)

- - - - - -

> **Note:** The module supports both production and sandbox environments. Make sure to use the correct API keys and IPN secret keys for your selected environment. Sandbox keys are available at [NOWPayments Sandbox](https://account-sandbox.nowpayments.io/store-settings#keys) and production keys at [NOWPayments Production](https://account.nowpayments.io/store-settings#keys).

> **Note:** Please ensure that the webhook callback URL is configured in your NOWPayments account settings. The module automatically provides the correct callback URL in the configuration. Ensure that your server can receive incoming webhook notifications from NOWPayments servers.

![Gateway configuration](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-fabz1vpx.png)*gateway-configuration.png*

![Invoice payment screen](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-ducwbo7b.png)*embedded-currency-selector.png*# Changelog

### NOWPayments Payment Gateway module **[WHMCS](https://puqcloud.com/link.php?id=77)**

##### [Order now](https://puqcloud.com/whmcs-payment-gateways.php) | [Download](https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/) | [Community](https://community.puqcloud.com/)

## v4.0.0 — 2026-11-16

- **PUQ Series 4 Architecture Upgrade:** Refactored module structure to full PUQ v4 standards.
- **Embedded Licensing System:** License class is embedded directly into the primary gateway file, removing external dependency files. Non-blocking license check maintains warning-only status in WHMCS admin.
- **Modern Guzzle HTTP Client:** Migrated all API calls to `GuzzleHttp\Client` with strict timeouts, error handling, and masked logging in WHMCS Module Log.
- **Searchable Select2 Currency Selector:** Integrated Select2 with coin logos, instant keyboard search, smart default cryptocurrency selection, and real-time rate updates for over 200 cryptocurrencies.
- **Comprehensive 27-Language Internationalization (i18n):** Complete translation dictionary for 27 languages supported by WHMCS, including invoice selectors, advisories, error templates, and admin alerts with typographic apostrophe safety.
- **Minimum Invoice Amount &amp; Micro-Payment Handling:** Resolved micro-invoice rendering issues under $7–$8 with real-time coin minimum advisories, low-fee cryptocurrency recommendations (LTC, TRX, DOGE, USDT-TRC20), and open hosted checkout fallback without a locked currency.
- **Configurable Payment Flow:** Added choice between "Embedded Currency Selector" and "Direct Hosted Checkout".
- **Configurable Minimum Invoice Amount &amp; Blocking Mode:** Added admin settings to display an advisory or strictly block payment processing for invoices below the micro-payment threshold.
- **Atomic IPN Concurrency Lock &amp; Fee Conversion:** Added exclusive transaction locking (`flock`) in the IPN webhook handler to prevent duplicate credits from concurrent webhook deliveries, along with automatic conversion of cryptocurrency network/service fees into the client's WHMCS currency.
- **WHMCS Gateway Log &amp; Module Log Integration:** Full transaction audit trail with masked API keys and HMAC verification details.
- **Directory Protection:** Added directory index protection across all subdirectories.
- **Full PHP 7.4 - 8.4 Support:** Universal ionCube 15 compatibility across PHP 7.4, 8.1, 8.2, 8.3, and 8.4 for WHMCS 8.x/9.x.

- - - - - -

## v1.1 — 2025-10-22

- Option in module settings to show or hide currency codes in the dropdown list.
- Ability to enable a feature where the buyer pays the commission (`is_fee_paid_by_user`).
- Currency icons added in the client area during currency selection.
- Option to sort currencies in the dropdown list (Ascending, Descending, None).

- - - - - -

## v1.0 — 2025-09-22

- First official release of the PUQ NOWPayments gateway module for WHMCS.
- Support for production and sandbox environments.
- Real-time IPN webhook callbacks with HMAC-SHA512 verification.
- Dynamic currency selector on the invoice view screen.# 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](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-payment-gateways.php) | [Download](https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/) | [Community](https://community.puqcloud.com/)

## 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/`

1. Download the latest version from the PUQ download page:
   ```bash
   wget https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/PUQ_WHMCS_PG-nowpayments-latest.zip
   ```

2. Unzip the archive:
   ```bash
   unzip PUQ_WHMCS_PG-nowpayments-latest.zip
   ```

3. Upload the module files to your WHMCS installation:
   Copy the extracted gateway files from the `puq_nowpayments/` archive folder into your WHMCS `modules/gateways/` directory:
   ```bash
   # 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/
   ```

4. Ensure proper ownership and file permissions for your web server user (e.g. `www-data`):
   ```bash
   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/
   ```

5. 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:

1. Download the latest version as described in the Installation section.
2. Unzip the archive.
3. For gateway modules, simply overwrite the existing files. No deactivation is needed:
   ```bash
   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/
   ```
4. Verify the version number in the module interface matches the new release.


<!-- sync:0fa24791b67322b1 -->

# Gateway Configuration

### NOWPayments Payment Gateway module **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-payment-gateways.php) | [Download](https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/) | [Community](https://community.puqcloud.com/)

## Activate Payment Gateway in WHMCS

1. Log in to your WHMCS Admin Area.
2. Navigate to **System Settings** → **Payment Gateways** (or **Setup** → **Payments** → **Payment Gateways** in older WHMCS versions).
3. Switch to the **All Payment Gateways** tab.
4. 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 settings](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-3y18owq0.png)
*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](https://account.nowpayments.io/store-settings#keys). |
| **IPN Secret Key (Production)** | Password | Production IPN Secret Key from [NOWPayments Notifications](https://account.nowpayments.io/store-settings#notifications). |
| **API Key (Sandbox)** | Password | Sandbox API Key for development/testing from [NOWPayments Sandbox Keys](https://account-sandbox.nowpayments.io/store-settings#keys). |
| **IPN Secret Key (Sandbox)** | Password | Sandbox IPN Secret Key from [NOWPayments Sandbox Notifications](https://account-sandbox.nowpayments.io/store-settings#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:

1. Copy the **IPN Callback URL** shown in your WHMCS gateway settings:
   `https://yourdomain.com/modules/gateways/callback/puq_nowpayments.php`
2. Open your NOWPayments account settings:
   - For Production: [https://account.nowpayments.io/store-settings#notifications](https://account.nowpayments.io/store-settings#notifications)
   - For Sandbox: [https://account-sandbox.nowpayments.io/store-settings#notifications](https://account-sandbox.nowpayments.io/store-settings#notifications)
3. Paste the callback URL and ensure the generated **IPN Secret** matches the secret entered in WHMCS.
4. 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.


<!-- sync:10ecf69ffd37df2b -->

# Payment flow

This chapter describes how cryptocurrency payments are initiated, calculated, processed, and confirmed between WHMCS, NOWPayments, and the customer.

# Payment Flow

### NOWPayments Payment Gateway module **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-payment-gateways.php) | [Download](https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/) | [Community](https://community.puqcloud.com/)

When a customer opens their unpaid invoice in WHMCS and selects NOWPayments, they are presented with an intuitive payment interface designed for fast, transparent, and secure cryptocurrency checkout.

## How the Payment Process Works

1. The client selects **NOWPayments** as the payment method during checkout or on an unpaid invoice.
2. The dynamic currency selector queries the NOWPayments API and displays available cryptocurrencies with real-time rate estimates.
3. The client selects their desired coin and clicks **Pay Now** (or clicks **Pay Now (NOWPayments)** in hosted checkout mode).
4. The client is redirected to the secure NOWPayments checkout page displaying the exact crypto payment address and QR code.
5. The client submits the transaction from their crypto wallet.
6. The blockchain network confirms the transaction, and NOWPayments sends an Instant Payment Notification (IPN) webhook.
7. WHMCS validates the HMAC-SHA512 cryptographic signature and records the transaction.
8. The invoice is automatically marked as **Paid**, and all details are recorded in the WHMCS transaction logs.

```
[Customer opens invoice]
        │
        ▼
[Currency Selector loads available coins from NOWPayments API]
        │
        ▼
[Real-time rate calculation via /v1/estimate]
        │
        ▼
[Customer clicks "Pay Now" -> Redirected to NOWPayments Checkout]
        │
        ▼
[Customer sends transaction from their Crypto Wallet]
        │
        ▼
[Blockchain confirms payment -> NOWPayments posts IPN to WHMCS]
        │
        ▼
[HMAC Verification -> addInvoicePayment -> Invoice marked Paid]
```

---

## Payment Interface Options

### 1. Embedded Currency Selector
The default checkout interface embeds live coin calculation directly on the WHMCS invoice view. Customers can see the exact estimated amount in cryptocurrency before proceeding:

![Embedded Currency Selector](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-0yaffvu8.png)
*embedded-currency-selector.png*

### 2. Searchable Select2 Cryptocurrency Dropdown
The module embeds a responsive Select2 dropdown with coin icons and instant keyboard filtering. Customers can easily find any of the 200+ supported coins by typing its name or ticker:

![Searchable Select2 Dropdown](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-vvx79ouy.png)
*select2-searchable-coins.png*

### 3. Direct Hosted Checkout Flow
For merchants who prefer not to display coin selection on the WHMCS invoice, the module can be configured in **Direct Hosted Checkout** mode:

![Hosted Checkout Button](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-z2w6gzab.png)
*hosted-checkout-button.png*

Clicking the button immediately redirects the customer to NOWPayments where all available coins are presented.

---

## Threshold Management (Micro-invoices)

Cryptocurrency networks require miner fees, which impose minimum deposit thresholds (typically $7-$15 for BTC/ETH, and $1-$2 for LTC/TRX). To prevent client frustration, the module provides two threshold management modes:

### Advisory Notice Mode
When an invoice is below the configured **Minimum Invoice Amount** and strict blocking is disabled, an informational advisory is shown to guide the customer:

![Payment Warning Below Minimum](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-q61s8vni.png)
*payment-warning-below-minimum.png*

### Strict Blocking Mode
When **Block Invoices Below Minimum** is enabled in gateway settings, invoices below the threshold display a prominent red warning notice and lock payment buttons, prompting the client to choose an alternative payment method:

![Payment Block Below Minimum](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-qh5fpafy.png)
*payment-block-below-minimum.png*

---

## Callback / Webhook Setup

On your NOWPayments merchant dashboard, configure the IPN callback URL:

`https://yourdomain.com/modules/gateways/callback/puq_nowpayments.php`

- The callback script verifies the HMAC-SHA512 signature against the configured IPN Secret Key.
- Once verified and marked `finished`, the module:
  - Ensures the transaction has not already been applied.
  - Converts the paid amount to the client's currency if necessary.
  - Calls WHMCS internal `addInvoicePayment` to mark the invoice **Paid**.
  - Logs complete audit details in WHMCS **Billing** → **Transactions**, **Utilities** → **Logs** → **Gateway Log**, and **Module Log**.


<!-- sync:8691f04742f06cd6 -->

# Troubleshooting

This chapter provides troubleshooting instructions and solutions for common issues encountered during setup, invoice payments, or callback processing.

# Troubleshooting

### NOWPayments Payment Gateway module **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-payment-gateways.php) | [Download](https://download.puqcloud.com/WHMCS/gateways/PUQ_WHMCS_PG-nowpayments/) | [Community](https://community.puqcloud.com/)

---

## 1. Invoices Under $7-8 Fail to Load Payment Methods

### Problem Description
When viewing an invoice in WHMCS whose total is less than approximately $7.00 - $8.00 USD, the currency estimator fails or displays an error indicating that the amount is below the minimum limit.

### Why This Occurs
- **Cryptocurrency Network Limits:** Cryptocurrencies require network mining fees and exchange liquidity buffers. For top assets like **Bitcoin (BTC)** and **Ethereum (ETH)**, NOWPayments requires a minimum payment threshold of typically **$7.00 to $15.00 USD**.
- If a customer or the selector defaults to BTC on an invoice of $3.00, the NOWPayments API returns an error (`AMOUNT_MIN_LIMIT: Amount is less than minimum`).
- If your NOWPayments merchant account only has BTC or ETH enabled in your *Coins Settings*, the NOWPayments hosted page will have no available currencies that support micro-invoices under $7.00.

### Solution & Best Practices
1. **Enable Low-Minimum Cryptocurrencies:** In your [NOWPayments Dashboard > Coins Settings](https://account.nowpayments.io/coins-settings), ensure you enable cryptocurrencies that feature very low network fees and micro-minimums (typically **$1.00 - $2.00 USD**):
   - **Litecoin (LTC)**
   - **TRON (TRX)**
   - **Tether on TRON (USDTTRC20)**
   - **Dogecoin (DOGE)**
   - **Solana (SOL)**
   - **Binance Coin (BNB / BSC)**
2. **Module Guidance:** In v4.0.0+, if a customer selects a currency whose minimum is above the invoice amount, the module displays the exact minimum threshold returned by the API and advises the customer to select an alternative low-fee coin.
3. **Use Direct Hosted Flow:** You can switch the module setting **Payment Flow** to **Direct Hosted Checkout**. This passes an open invoice to NOWPayments without pre-fixing the currency, allowing NOWPayments to display only the coins eligible for that specific amount.
4. **Set Minimum Invoice Amount:** In the module settings, configure **Minimum Invoice Amount** (e.g. `5.00` or `8.00`). If an invoice is below this threshold, a notice is displayed, guiding the customer, or strict blocking can be enabled.

---

## 2. IPN Signature Does Not Match

### Symptoms
Payments confirm on the blockchain, but the WHMCS invoice remains in **Unpaid** status. The Gateway Log or Module Log displays an `HMAC Signature Mismatch` error:

![Module Log HMAC Mismatch](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-hyj11gow.png)
*module-log-hmac-mismatch.png*

### Resolution
1. Verify whether your gateway is configured in **Production** or **Sandbox** mode.
2. Confirm that the **IPN Secret Key** in WHMCS strictly matches the secret configured in your NOWPayments account for that environment:
   - Production Secret: [https://account.nowpayments.io/store-settings#notifications](https://account.nowpayments.io/store-settings#notifications)
   - Sandbox Secret: [https://account-sandbox.nowpayments.io/store-settings#notifications](https://account-sandbox.nowpayments.io/store-settings#notifications)
3. Ensure no trailing or leading whitespace is present in the copied key.
4. The module automatically tests all configured IPN secrets (active mode, production secret, and sandbox secret) to guarantee valid signature resolution.

---

## 3. Webhook Callback Not Reaching WHMCS

### Symptoms
No callback entries appear in **Billing** → **Gateway Log** after a customer completes a payment.

### Resolution
1. Ensure your server firewall (UFW, iptables, Cloudflare, ModSecurity) does not block incoming POST requests to `/modules/gateways/callback/puq_nowpayments.php`.
2. Ensure your SSL/TLS certificate is valid and not expired. NOWPayments requires valid HTTPS certificates to send webhook notifications.
3. In your NOWPayments dashboard under Notifications, verify that the webhook URL is saved correctly and test the connection.

---

## 4. Inspecting Logs & Audit Trail

### WHMCS Gateway Log
Whenever NOWPayments delivers a callback, an entry is added to **Billing** → **Gateway Log** (or **Utilities** → **Logs** → **Gateway Log**):

![Gateway Transaction Log](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-tnus3qee.png)
*gateway-transaction-log.png*

### WHMCS Module Log
For detailed API tracing with sanitized sensitive keys:
1. In the WHMCS Admin Area, navigate to **Utilities** → **Logs** → **Module Log**.
2. If module logging is not already enabled, click **Enable Debug Logging**.
3. Search for entries with Gateway `puq_nowpayments` to inspect raw queries, live estimates, and webhook payloads:

![Module Log Payment Processed](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-q8bht32s.png)
*module-log-payment-processed.png*


<!-- sync:16cda689c94c56da -->

