Take card payments on WHMCS and get paid in USDC

Accept card, Apple Pay and Google Pay on WHMCS 8 and receive USDC on Polygon in your own wallet, minus the 2% Caravel fee. Install, currencies and statuses.

On this page

To take card payments on WHMCS and get paid in USDC, install a card-to-crypto gateway module on your WHMCS 8 server and connect a Polygon wallet you control. Your clients click Pay Now on an invoice and pay by card, Apple Pay or Google Pay through an independent card provider. When the payment confirms, Caravel Pay sends what arrives, minus the 2% Caravel fee, to your wallet as native USDC on Polygon and marks the invoice paid through a signed webhook.

There is no merchant account, no Caravel Pay account or dashboard, and no KYC for your business. This guide covers requirements, installation, currencies, invoice statuses, renewals, fees and switching from PayGate.to on WHMCS.

Beta module. The Caravel Pay WHMCS module (v1.2.2) passes our tests against stand-ins of WHMCS, but has not yet run on a real install. Test it with a small real invoice first, and email hello@caravelpay.app if anything looks off. Check versions and SHA-256 checksums on Plugins and downloads.

How a WHMCS invoice becomes USDC#

  1. Your client opens an invoice and clicks Pay Now. The module creates a Caravel Pay checkout only when the client clicks pay, not when the invoice is generated or emailed. A second click reuses the open checkout.
  2. The client pays on the hosted checkout. They choose card, Apple Pay or Google Pay. An independent card provider takes the payment and delivers USDC on Polygon. Clients who already hold crypto can also send USDC, USDC.e or POL on Polygon directly.
  3. Caravel Pay confirms and pays out. Once the payment confirms on Polygon, Caravel Pay sends what arrived, minus the 2% Caravel fee, straight to your payout wallet.
  4. The module marks the invoice paid. Caravel Pay sends a signed POST webhook to your WHMCS callback URL. The module verifies the signature, re-reads the checkout with a signed GET /v1/checkouts/{id} call, and calls addInvoicePayment() with the payout transaction hash.

What you need#

  • WHMCS 8 with an https:// System URL.
  • Reachable webhook URL. Your server must accept incoming POST requests from the internet at /modules/gateways/callback/caravelpay.php.
  • A Polygon payout wallet. Any ordinary 0x address you control, such as MetaMask, Rabby or a hardware wallet. Smart-contract wallets, token addresses and exchange deposit contracts are refused. See choosing a payout wallet.

The Caravel Pay PHP SDK is bundled inside the module zip, so there is no Composer step on your WHMCS server.

Install and connect the WHMCS module#

  1. Download and unzip caravel-pay-whmcs.zip. You can verify the file against the SHA-256 checksum on Plugins and downloads.
  2. Upload the modules/ folder into your WHMCS root directory, merging with the existing modules/ folder. This adds modules/gateways/caravelpay.php, modules/gateways/caravelpay/ and modules/gateways/callback/caravelpay.php.
  3. Activate the gateway in WHMCS under Setup › Payments › Payment Gateways › All Payment Gateways › Caravel Pay.
  4. Paste your Polygon payout wallet (and an optional contact email for service notices) and click Save Changes.

Saving calls POST /v1/connect in the background, stores your merchant id and secret on your server, and shows Connected as mch_… on the settings page. There are no API keys to copy by hand.

Check your wallet address twice. Payouts are final on-chain transfers and cannot be reversed. If you use an exchange deposit address, confirm that the exchange accepts USDC, USDC.e and POL on Polygon at that address.

Currencies and non-USD invoices#

Your WHMCS invoices can stay in your own currency. Caravel Pay accepts US dollars and 26 other currencies: EUR, GBP, CAD, AUD, NZD, SEK, NOK, DKK, CHF, PLN, CZK, HUF, RON, HKD, SGD, MXN, BRL, ZAR, ILS, INR, THB, MYR, PHP, TRY, JPY and KRW.

  • Supported currencies. When a client clicks pay on an invoice in a supported currency, Caravel Pay converts the total to US dollars once at a confirmed market rate (confirmed within 2% by a central-bank reference rate, with no Caravel margin). The client sees both amounts, pays in US dollars, you receive USDC, and WHMCS credits the invoice in its own currency.
  • Exchange-rate buffer. If you want room for exchange-rate movement before you convert your USDC, set an exchange-rate buffer of 0 to 5% (default 0).
  • Other currencies. If you invoice in a currency outside the supported list, set WHMCS's Convert To For Processing option to USD so WHMCS converts with its own rate before creating the checkout.

Full currency rules are in Stores that don't price in US dollars.

How WHMCS invoices update#

Only a confirmed paid checkout credits a WHMCS invoice. There is no tolerance setting to tune: Caravel Pay counts a payment as paid when at least 85% of the checkout amount arrives, leaving room for the card provider's fee.

Checkout statusWhat happens in WHMCS
paidCalls addInvoicePayment() with the payout transaction hash, the invoice amount and the 2% Caravel fee. Gateway Log shows Successful.
underpaidInvoice stays unpaid. Gateway Log shows Underpaid and an invoice note records the amount that arrived.
reviewInvoice stays unpaid. Gateway Log shows Review and an invoice note is added.
expiredInvoice stays unpaid (checkouts expire after 60 minutes). Gateway Log shows Expired. The client can click Pay Now again for a fresh checkout.

Every webhook result, including rejected signatures, is recorded under Billing › Gateway Log. Webhooks are retried with backoff for up to 24 hours until your server returns a 2xx response.

Test your setup with a real invoice#

There is no test mode or sandbox. Check your WHMCS setup with a small real invoice:

  1. Create a test client and a small invoice, such as $10: card providers set their own minimums, and most start between $5 and $7 (from a crypto wallet, $1 is enough).
  2. Open the invoice as the client and pay on the hosted checkout by card, Apple Pay or Google Pay.
  3. Confirm that the invoice moves to Paid, that Billing › Gateway Log shows Successful, and that the USDC payout arrives in your Polygon wallet.

If the payment settles in your wallet but the invoice stays unpaid, check that no firewall, WAF or security rule blocks incoming POST requests to /modules/gateways/callback/caravelpay.php. Because Caravel Pay retries webhooks for up to 24 hours, the invoice updates once the block is cleared.

Fees, payouts and fee modes#

Caravel Pay charges one fee: the 2% Caravel fee on the order total, on every method, with no monthly fee and no setup fee. Polygon gas for your payout is covered by the 2% Caravel fee, so you do not need POL in your wallet to receive payouts.

On card payments, the client pays the invoice total and most card providers keep their own fee and exchange-rate spread out of that amount before the USDC arrives. Caravel Pay adds nothing to it and takes no cut.

$100.00 WHMCS invoice (default mode)Amount
Client pays$100.00
Card provider keeps, typically−$3.00
Arrives97.00 USDC
Caravel fee (2% of the order)−2.00 USDC
Payout to your wallet95.00 USDC

About 3% is typical of recent card orders through Caravel Pay, counting the card provider's fee and exchange-rate spread together. It is an estimate, not a guarantee: it varies with the provider, the payment method, the buyer's country and the order size. About 1 in 4 recent card orders arrived in full, because the provider charged its fee to the buyer on top, and a few routes keep more, up to about 8 to 10%. Direct crypto payments on Polygon (USDC, USDC.e or POL) have no provider fee, so a $100.00 invoice pays out 98.00 USDC.

The module includes a Who pays the fees setting: Seller pays everything (default), Split: buyer pays the card fee (your client covers the card provider's fee; you pay the 2% Caravel fee) or Buyer pays everything. Check local rules on card surcharges before changing the default, as the EU and the UK restrict surcharges on most consumer cards. See who pays the fees.

Renewals, buyer checks, chargebacks and refunds#

  • No automatic renewals. Caravel Pay does not store cards or pull recurring charges. Clients pay renewal invoices from the invoice link each billing cycle, just like a one-time invoice.
  • Order limits. The smallest checkout is $1.00. New merchants can take up to $2,500 per checkout and $50,000 a day, and can email support to request higher limits.
  • Buyer ID checks. Card providers set their own verification checks. Not every buyer is asked; when a check is required, it is usually only on the buyer's first purchase, depending on country, amount and provider. Caravel Pay never sees card details or ID documents.
  • No chargebacks; manual refunds. Payouts are final on-chain transfers to your own wallet, with no balance held. A buyer's card dispute stays between the buyer, their bank and the card provider. Caravel Pay can still pause a merchant suspected of fraud. Refunds are sent by you from your own wallet or another agreed method, and fees are not returned. See no chargebacks and refunds.
  • Changing your wallet later. Saving a new payout address creates new keys. Checkouts already started finish on the old wallet, and their webhooks keep verifying for 7 days.
  • Acceptable use. What you host and sell must be lawful and follow our acceptable use policy. Card providers also apply their own rules.

Switching from PayGate.to on WHMCS#

You can install Caravel Pay while PayGate's WHMCS modules (paygatedottohosted or paygatedottocustom) remain active. If a PayGate module is configured, the Caravel Pay settings page displays the payout wallet it uses so you can paste the same Polygon address yourself. Nothing is copied automatically.

Test Caravel Pay on a small invoice, make it your default gateway, and wait for open PayGate invoices to finish before deactivating PayGate. When you deactivate PayGate, WHMCS asks which gateway its existing clients and invoices should move to. For a side-by-side comparison of fees and features, see Caravel Pay as a PayGate.to alternative.

Frequently asked questions#

Does the WHMCS module support automatic recurring billing?#

No. Caravel Pay does not store cards or initiate automatic charges. WHMCS generates renewal invoices as usual, and clients pay each renewal invoice from the invoice page.

Is the WHMCS module out of beta?#

Not yet. Version 1.2.2 is marked beta because it has been tested against stand-ins of WHMCS rather than a live production install. Only the WooCommerce plugin is out of beta so far.

Can I run Caravel Pay alongside PayGate or a crypto gateway in WHMCS?#

Yes. Caravel Pay registers as its own payment gateway, so it can run side by side with PayGate modules or a direct crypto gateway while you test or serve different client preferences.

Do I need Composer or API keys to set up WHMCS?#

No. The Caravel Pay PHP SDK is bundled inside caravel-pay-whmcs.zip, and saving your Polygon payout wallet in WHMCS connects your server automatically.

What if a client's invoice is in EUR or GBP?#

Leave the invoice in EUR or GBP. Caravel Pay converts supported currencies to US dollars once when the client clicks pay, charges the client in US dollars, pays you in USDC and credits the WHMCS invoice in its original currency.

What happens if a payment arrives short on a WHMCS invoice?#

A payment counts as paid when at least 85% of the checkout amount arrives, leaving room for the card provider's fee. Below 85%, the checkout is marked underpaid, the invoice stays unpaid, and the module logs the amount that arrived in Gateway Log and an invoice note.

Sources#

  1. Caravel Pay docs: Integrations: WHMCS, Payouts and fees, Checkout statuses, Webhooks.
  2. Caravel Pay: Plugins and downloads, Pricing, FAQ, Acceptable use policy.