Want crypto too? Our free WHMCS crypto module is the only crypto payment gateway with instant payouts for Solana, Monero, Zcash and Bitcoin. Read the WHMCS crypto guide.
What you need before you start
- A working WHMCS installation and an admin account.
- Access to your server files: FTP/SFTP or your hosting File Manager.
- PHP with the cURL and OpenSSL extensions (standard on WHMCS hosting).
- Your WHMCS System URL set to your real public address with https (Configuration › System Settings › General Settings). Payment confirmations are sent to this address.
- A USDC wallet address on Polygon (starts with
0x). Step 1 shows how.
Check that your business is allowed first: see the prohibited businesses list.
Get your USDC (Polygon) payout wallet
Card payments are paid out to a USDC wallet on the Polygon network. That is a normal wallet address that starts with 0x. Payouts may arrive as USDC, USDT (Polygon or BEP-20), ETH or the POL native token, and the same address receives all of them.
- Use a self-custodial wallet that only you control, for example Trust Wallet, MetaMask or a hardware wallet. You can create a free one in a few minutes with the Trust Wallet app on your phone.
- Copy your Polygon address (it starts with
0x, 42 characters).
Never use an exchange deposit address. Exchanges can freeze or lose payouts sent to deposit addresses. Also do not paste the USDC token contract address: it is not a wallet.
Download the module
Download the latest version from our GitHub repository: WHMCS-Instant-Payment-Gateway-main.zip. The module is free and open source; you can read every line of code on GitHub.
Upload the files to WHMCS
WHMCS modules are installed by copying files to your server. You can use an FTP/SFTP program or the File Manager of your hosting control panel.
- Unzip the file you downloaded. You get a folder called
WHMCS-Instant-Payment-Gateway-main. - Open your WHMCS root folder on the server: the folder that contains
configuration.php,init.phpandviewinvoice.php(oftenpublic_htmlorpublic_html/billing). - Upload the
modulesfolder from insideWHMCS-Instant-Payment-Gateway-maininto the WHMCS root folder. When asked, choose to merge or overwrite, so the new files are added next to your existing modules.
WHMCS-Instant-Payment-Gateway-main/ ├─ LICENSE (not needed) ├─ README.md (not needed) └─ modules/ ← upload this folder
<whmcs root>/modules/gateways/
├─ paygatedottohosted.php
├─ paygatedottocustom.php
├─ paygatedotto/ (security library, PayGate key)
├─ paygatedottohosted/ (logo)
├─ paygatedottocustom/ (logo)
└─ callback/
├─ paygatedottohosted.php
└─ paygatedottocustom.phpUpload the modules folder into the WHMCS root, not into modules/gateways. If the files end up one level too deep (for example modules/gateways/modules/gateways/), WHMCS will not find the module and payments cannot be confirmed.
Activate the gateway in WHMCS
The module adds two payment gateways. WHMCS lists them as:
| Gateway | What the client gets |
|---|---|
| PayGate.to Card Hosted Recommended module paygatedottohosted | Hosted multi-provider card page: the client pays by card, Apple Pay, Google Pay and more on a secure page that picks the best provider for their country. |
| PayGate.to Card Custom module paygatedottocustom | Only the providers you tick from the live provider list (custom provider mode). |
- Log in to your WHMCS admin area and open Configuration (wrench icon) › System Settings › Payment Gateways. Click Visit Apps & Integrations.

New gateways are activated from Apps & Integrations. - Click Search and type
paygate. Both card gateways are listed (and our two crypto gateways too, if you installed the crypto module).
Search results for paygatein Apps & Integrations. - Click PayGate.to Card Hosted, then Activate. To offer custom provider mode as well, do the same for PayGate.to Card Custom.

The Activate button of PayGate.to Card Hosted. - WHMCS goes back to Payment Gateways and opens the settings of the new gateway.
Screenshots are from WHMCS 9.1. In older WHMCS versions, open All Payment Gateways on the same Payment Gateways page (WHMCS 7: Setup › Payments › Payment Gateways) and click the gateway name. Older versions of this module are listed under their module names, paygatedottohosted and paygatedottocustom.
Enter your wallet and save
Fill in the settings of PayGate.to Card Hosted and click Save Changes:
- USDC Polygon Wallet Address: your
0xaddress from step 1. This is the only field you must fill in. - Display Name: the payment method name clients see on invoices and the order form. New installs start with Credit / Debit Card.
- Description: a short line shown to the client on the invoice, above the Pay Now button.
- Leave Custom Domain, API Domain and Fees Tolerance as they are unless you need them (see all settings).

Custom provider mode (optional)
Most installs should use PayGate.to Card Hosted: it already offers every provider and picks the best one for each client’s country. PayGate.to Card Custom is for merchants who already know which providers convert best for their clients. Enter the same Custom Domain, API Domain, wallet and Fees Tolerance, then:

- Payment providers: one tick box per provider, with its status (Active, Unstable or Disabled), its minimum and its id. The list is loaded live from PayGate.to every time you open the settings. Disabled providers cannot be ticked, and WHMCS will not save the settings with no provider ticked.

Two providers ticked. Each row shows the status, the minimum and the provider id. - Minimum Invoice Amount (USD) (default 15): the smallest invoice total for this gateway. Each provider’s own minimum is checked too.
On the invoice, with one provider ticked the client goes straight to it with Pay Now. With several, the client sees Choose how you want to pay and a button per provider. Providers whose own minimum is above the invoice total, or that are disabled right now, are left out. If you use both card gateways, give this one a different Display Name (for example Card (choose provider)) so clients can tell them apart.
Updating from an older version? The provider you entered as Custom Provider Tag keeps being used, and is ticked in the new list, until you tick providers and save.
Every payment confirmation is signed by PayGate.to. The module checks that signature, and a secret that only your WHMCS knows, before it marks an invoice paid, so a forged or altered confirmation is rejected.
Test with an invoice
Create a small test invoice for a client (or order a product as a client) and open it in the client area. With the hosted gateway the invoice shows your Description and a Pay Now button. The client clicks it and pays on the secure payment page.

In custom provider mode with several providers ticked, the invoice shows Choose how you want to pay and one button per provider:

When a client places an order, WHMCS shows its Please wait while you are redirected page and then sends them straight to the payment page. In custom mode with several providers, the client is taken to the invoice to choose one.
Card minimums range from about $1 to $30 depending on the provider (see the minimums), so test with an amount above the minimum.
The invoice is marked paid automatically
When the payment is confirmed, the module adds the payment to the invoice and WHMCS marks it Paid, activates the order as usual and sends your normal emails. The payment appears in the invoice Ledger with a reference such as paygatedottohosted_payment_0x… (the payout transaction), and the invoice Notes show its Payment reference number.

Every confirmation is also listed under Billing › Gateway Log: Successful, Underpaid (below your Fees Tolerance, the invoice stays unpaid) or Rejected (not a genuine PayGate.to confirmation).

The payout reaches your wallet at the same time. Follow it with the payout tracker.
All settings explained
| Setting | What it does | Default |
|---|---|---|
| Display Name (WHMCS) | Name of the payment method on invoices and the order form. | Credit / Debit Card |
| Description | Short text shown on the invoice above the Pay Now button. | Pay securely with your debit or credit card. |
| Custom Domain | Domain of the hosted payment page. | checkout.paygate.to |
| API Domain | Your dedicated API endpoint or white-label domain. Empty = uses the Custom Domain. | Empty |
| USDC Polygon Wallet Address Required | Receives the payouts. | – |
| Fees Tolerance | How far below the invoice total a payment may be before it is not accepted (10% to 90%, or disabled). | 40% |
| Payment providers (custom mode) | Providers offered, ticked from the live provider list. With more than one, the client chooses on the invoice. | None |
| Minimum Invoice Amount (USD) (custom mode) | Smallest invoice total for this gateway. Each provider’s own minimum is checked too. | 15 |
Troubleshooting and FAQ
The gateway does not appear in WHMCS.
The files are in the wrong folder. Check that modules/gateways/paygatedottohosted.php exists directly inside your WHMCS root (next to configuration.php), not one level deeper.
The client paid but the invoice is still Unpaid.
The payment confirmation could not reach WHMCS. Make sure the System URL is your real public https address, and that nothing (password protection, IP allow-lists, a firewall or maintenance mode) blocks /modules/gateways/callback/. More fixes in the WHMCS troubleshooting guide.
The invoice shows "Payment could not be processed (wallet address error)".
Check the USDC Polygon Wallet Address: it must be your own Polygon address starting with 0x.
I get "Invoice total must be $15.00 USD or more" in custom mode.
That is the Minimum Invoice Amount (USD) of the custom provider gateway. Lower it, or use the hosted gateway. If the amount in the message is not the one you set, it is the own minimum of the only provider you ticked: tick another provider too.
A provider I ticked is not shown on the invoice.
Providers whose own minimum is above the invoice total, or that PayGate.to lists as disabled right now, are left out. Open the gateway settings to see each provider’s status and minimum.
I clicked Deactivate but the gateway is still active.
Versions before November 2026 could not be deactivated in WHMCS 9. Upload the latest modules folder (see How do I update the module?), then click Deactivate again.
Clients see the payment method as paygatedottohosted.
That is the Display Name an older version gave the gateway. Open the gateway settings, change Display Name to something like Credit / Debit Card and save.
Do I need an account, API key or KYC?
No. Your wallet address is all you need. Never contact or create accounts at any of the payment providers.
What are the fees?
1% plus the provider’s fees, which vary per provider and amount.
Can clients charge back?
No. Payments are final and you will not receive chargebacks.
The client paid but the Gateway Log says Underpaid.
Less than the share set by Fees Tolerance arrived, so the invoice stays unpaid. The funds received are already in your wallet; settle the difference with the client, or allow a larger margin in Fees Tolerance.
How do I update the module?
Download the latest zip and upload the modules folder again, overwriting the old files (include the new paygatedotto folder). Your settings are kept, and invoices created before the update still settle normally.
I used an older PayGate WHMCS module with one gateway per provider.
Deactivate the old gateways in WHMCS after activating the new ones, so clients only see the new payment method.
Other platforms and next steps
The same card gateway is available for every major platform:
Stuck? Our team replies fast.Send us your platform, a screenshot and the order number if you have one.
Chat with support