How to Accept Credit Cards in WHMCS

Install the free PayGate.to WHMCS module, paste your wallet and let clients pay invoices by card, Apple Pay and Google Pay. Every payment is paid out instantly to your own wallet.

Updated November 2026 · Free and open source · Works with the latest WHMCS release

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.

Setup timeAbout 15 minutes
You needFTP or File Manager + a USDC wallet
Fees1% + provider fees
PayoutsInstant, to your wallet

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.

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.

  1. Unzip the file you downloaded. You get a folder called WHMCS-Instant-Payment-Gateway-main.
  2. Open your WHMCS root folder on the server: the folder that contains configuration.php, init.php and viewinvoice.php (often public_html or public_html/billing).
  3. Upload the modules folder from inside WHMCS-Instant-Payment-Gateway-main into the WHMCS root folder. When asked, choose to merge or overwrite, so the new files are added next to your existing modules.
Inside the downloaded zip
WHMCS-Instant-Payment-Gateway-main/
├─ LICENSE        (not needed)
├─ README.md      (not needed)
└─ modules/       ← upload this folder
Result on your WHMCS server
<whmcs root>/modules/gateways/
├─ paygatedottohosted.php
├─ paygatedottocustom.php
├─ paygatedotto/        (security library, PayGate key)
├─ paygatedottohosted/  (logo)
├─ paygatedottocustom/  (logo)
└─ callback/
    ├─ paygatedottohosted.php
    └─ paygatedottocustom.php

Upload 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:

GatewayWhat 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).
  1. Log in to your WHMCS admin area and open Configuration (wrench icon) › System Settings › Payment Gateways. Click Visit Apps & Integrations.
    WHMCS Payment Gateways page with the Visit Apps & Integrations button highlighted
    New gateways are activated from Apps & Integrations.
  2. Click Search and type paygate. Both card gateways are listed (and our two crypto gateways too, if you installed the crypto module).
    WHMCS Apps & Integrations search for paygate showing PayGate.to Card Custom and PayGate.to Card Hosted
    Search results for paygate in Apps & Integrations.
  3. Click PayGate.to Card Hosted, then Activate. To offer custom provider mode as well, do the same for PayGate.to Card Custom.
    PayGate.to Card Hosted app details in WHMCS with the green Activate button highlighted
    The Activate button of PayGate.to Card Hosted.
  4. 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 0x address 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).
PayGate.to Card Hosted settings in WHMCS with the USDC Polygon Wallet Address and the Save Changes button highlighted
The hosted card gateway: paste your wallet and click Save Changes.

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:

PayGate.to Card Custom settings with the USDC Polygon wallet filled in, above the Payment Providers list
The wallet field and the start of the live Payment Providers list.
  • 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.
    Google Pay and Apple Pay ticked in the Payment Providers list, both Active with a minimum of 10 USD
    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.

Unpaid WHMCS invoice with the card Description and the Pay Now button highlighted
An unpaid invoice with the hosted card gateway.

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

Unpaid WHMCS invoice showing Choose how you want to pay with Google Pay and Apple Pay buttons
Custom provider mode with two providers ticked.

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.

All settings explained

SettingWhat it doesDefault
Display Name (WHMCS)Name of the payment method on invoices and the order form.Credit / Debit Card
DescriptionShort text shown on the invoice above the Pay Now button.Pay securely with your debit or credit card.
Custom DomainDomain of the hosted payment page.checkout.paygate.to
API DomainYour dedicated API endpoint or white-label domain. Empty = uses the Custom Domain.Empty
USDC Polygon Wallet Address RequiredReceives the payouts.–
Fees ToleranceHow 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