# Migrate WHMCS from PayGate.to to Caravel Pay without downtime

Source: https://caravelpay.app/guides/whmcs-paygate-migration-guide/ · Caravel Pay guides · By the Caravel Pay team · Published 2026-11-26 · Updated 2026-11-26

Step-by-step WHMCS 8 migration from PayGate.to to Caravel Pay: run both gateways side by side, compare real fees, verify signed webhooks and cut over safely.

You can migrate a live WHMCS 8 installation from PayGate.to (`paygatedottohosted` or `paygatedottocustom`) to Caravel Pay without interrupting a single client invoice. Because Caravel Pay registers as its own payment gateway module (`caravelpay`), you upload it beside PayGate, paste your existing Polygon payout wallet, run one real test invoice to verify signed webhook delivery, make Caravel Pay your default gateway, and deactivate PayGate only after its open invoices have settled.

Most hosting operators switch for two concrete reasons: lower effective fees — direct PayGate sellers paid about 3.4% on average in our public blockchain measurement against the flat **2% Caravel fee**, leaving about **$1.35 more in your wallet on every $100 order** — and stricter invoice safety through always-verified HMAC-SHA256 `POST` webhooks with an API re-read before calling `addInvoicePayment()`.

> **Beta module notice.** The Caravel Pay WHMCS module (v1.2.2) passes our tests against stand-ins of WHMCS, but has not yet run on a real production install. Keep PayGate active while you test Caravel Pay on a small real invoice first, check SHA-256 checksums on [Plugins and downloads](https://caravelpay.app/plugins/#whmcs), and email [hello@caravelpay.app](mailto:hello@caravelpay.app) if anything looks off.

> **About the PayGate figures.** They come from our measurement of public blockchain data for 11 October–10 November 2026: about 49,000 PayGate card payments worth $3.8 million, including about 27,000 direct-seller payments ($2.0 million) with no partner in between ([method and data](https://caravelpay.app/guides/paygate-to-review/#how-we-estimated)). Across all payments the average is about 3.1% and the median payment paid about 2.5%. For direct sellers alone the average is about 3.4% and the median was about 2.9%. Some PayGate payments pay only 2%, which has been common since late October 2026; on those routes PayGate costs about the same as Caravel Pay and switching saves nothing on the fee — the gap comes from PayGate's 3% and 5% routes. Sellers behind a partner or reseller lose about 8% in total. We identified PayGate's fee wallets from payment patterns, and PayGate has not confirmed them. Payments on BSC and Base are not covered, and the independent card provider's own fee is outside these numbers. Caravel Pay is not affiliated with PayGate.to; all names are trademarks of their owners.

## PayGate.to vs Caravel Pay on WHMCS: fees and mechanics

Both gateways let WHMCS 8 clients pay invoices by Visa, Mastercard, Apple Pay or Google Pay while you settle in Polygon USDC with no merchant account or rolling reserve. Here is what changes under the hood when you switch:

| Feature | PayGate.to WHMCS modules | Caravel Pay WHMCS module (v1.2.2 beta) |
|---|---|---|
| Platform fee | Varies by route (2%, 3% or 5% listed); direct sellers paid about 3.4% on average (median 2.9%) | **2% Caravel fee** on every method (Polygon payout gas included; $0/mo, $0 setup) |
| Worked $100.00 invoice (after ~3% typical provider cut; 97.00 USDC arrives) | PayGate takes about $3.35 → roughly **$93.65 USDC** in wallet | Caravel takes 2.00 USDC → roughly **95.00 USDC** in wallet (about $1.35 more per $100) |
| Callback security | `GET` callback; optional RSA verification | Always-verified HMAC-SHA256 `POST` webhook + signed `GET /v1/checkouts/{id}` re-read before `addInvoicePayment()` |
| Short-payment protection | Manual tolerance setting to configure | Fixed 85% floor; anything below is marked `underpaid`, logged in Gateway Log and never auto-provisions the service |
| Dependencies on WHMCS server | Standard WHMCS upload | PHP SDK bundled inside `caravel-pay-whmcs.zip` — no Composer step needed |
| Webhook retries | Single/limited callback delivery | Automatic retry with backoff for up to 24 hours (15 attempts) until WHMCS returns `2xx` |
| Multi-currency invoices | Converts via PayGate currency endpoints | USD + 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) converted once at a confirmed market rate with no Caravel margin; WHMCS credits invoice in its own currency |

### What the fee gap looks like at hosting scale

Assuming the same ~3% typical independent card provider cut (so 97% arrives before platform fees) against PayGate's measured direct-seller average of about 3.4%:

| Monthly card volume | PayGate measured avg | Caravel Pay (2% Caravel fee) | Monthly difference | Annual difference |
|---|---|---|---|---|
| $1,000 / month | ~$33 | $20 | ~$13 / mo | ~$156 / yr |
| $10,000 / month | ~$335 | $200 | ~$135 / mo | ~$1,620 / yr |
| $50,000 / month | ~$1,673 | $1,000 | ~$673 / mo | ~$8,076 / yr |
| $100,000 / month | ~$3,347 | $2,000 | ~$1,347 / mo | ~$16,164 / yr |

Remember that about 3% is typical of recent card orders through Caravel Pay for the independent card provider's fee and exchange-rate spread combined, but it is an estimate rather than a guarantee: it varies by provider, payment method, buyer country and order size (about 1 in 4 recent card orders arrived in full because the provider charged its fee on top, and a few routes keep up to about 8% to 10%).

## Before you start: four quick checks

1. **Confirm WHMCS 8 and HTTPS System URL.** Check *Configuration › System Settings › General Settings › WHMCS System URL* starts with `https://`. Caravel Pay rejects plain HTTP callback URLs.
2. **Inspect your Polygon wallet.** Use an ordinary `0x` address you control (MetaMask, Rabby or a hardware wallet). Smart-contract wallets, token contracts and exchange deposit contracts are refused. If you currently point PayGate at an exchange deposit address, verify that the exchange accepts USDC, USDC.e and POL on Polygon at that address — see [choosing a payout wallet](https://caravelpay.app/guides/usdc-polygon-payout-wallet/).
3. **Check your WAF / Cloudflare rules.** Ensure incoming `POST` requests with `User-Agent: CaravelPay-Webhooks/1` are allowed to reach `/modules/gateways/callback/caravelpay.php` without bot challenges, JS interstitials or ModSecurity blocks.
4. **Check your WHMCS currencies.** Invoices in any of the 26 supported currencies (USD, EUR, GBP, CAD, AUD and 22 more) convert automatically with no Caravel margin. If you invoice in a currency outside that list, set WHMCS's **Convert To For Processing** option on the Caravel Pay gateway to `USD`.

## Step-by-step zero-downtime WHMCS migration

1. **Download and verify the module.** Download [`caravel-pay-whmcs.zip`](https://caravelpay.app/download/caravel-pay-whmcs.zip) and verify its SHA-256 checksum against [Plugins and downloads](https://caravelpay.app/plugins/#whmcs):

   *Verify SHA-256 before uploading*

   ```sh
   sha256sum caravel-pay-whmcs.zip
   ```

2. **Upload alongside PayGate.** Unzip and upload the `modules/` directory into your WHMCS root, merging with the existing `modules/` folder. This installs `modules/gateways/caravelpay.php`, `modules/gateways/caravelpay/` (including the bundled PHP SDK) and `modules/gateways/callback/caravelpay.php`. Do *not* remove or deactivate PayGate yet.

3. **Activate and paste your wallet.** In WHMCS admin, open *Setup › Payments › Payment Gateways › All Payment Gateways › Caravel Pay*. If a PayGate module (`paygatedottohosted` or `paygatedottocustom`) is configured, the Caravel Pay settings screen displays the Polygon wallet PayGate is currently using so you can double-check and paste the same address yourself. Nothing is copied silently and PayGate's settings are untouched.

4. **Configure fee mode, FX buffer and save.** Choose *Who pays the fees* (keep *Seller pays everything* in the EU/UK where consumer card surcharges are restricted; *Split* and *Buyer pays everything* are also available), set an optional exchange-rate buffer (0–5%, default 0), add an optional contact email for service notices, and click **Save Changes**. Saving calls [`POST /v1/connect`](https://caravelpay.app/docs/connect) automatically and displays **Connected as mch\_…**.

5. **Run side by side and test a live invoice.** Both gateways are now live. If both have identical display names, temporarily label Caravel Pay distinctly (for example *Card, Apple Pay or Google Pay*) while testing. There is no sandbox: create a test client with a small real invoice ($1 from a crypto wallet, or about $10 by card), click **Pay Now**, complete payment on the hosted checkout, and verify three things:

   - The invoice flips to **Paid** automatically with the Polygon payout transaction hash recorded.
   - *Billing › Gateway Log* shows a **Successful** entry for `caravelpay`.
   - Native USDC arrives in your Polygon wallet (minus the 2% Caravel fee and the card provider's cut).

6. **Promote Caravel Pay and retire PayGate cleanly.** Move Caravel Pay to the top of your gateway list and set it as default on your product groups. Leave PayGate active for 24 to 48 hours so any in-flight PayGate invoices can still deliver callbacks. Once no open PayGate checkouts remain, deactivate PayGate under *Manage Existing Gateways* — WHMCS will prompt you to choose which gateway existing clients and unpaid invoices should migrate to; pick **Caravel Pay**.

> **Do not delete PayGate's files while invoices are mid-payment.** Deactivating PayGate too early drops incoming callbacks for clients who already opened a PayGate checkout link. Waiting 24 hours after switching new orders to Caravel Pay prevents missed invoice credits.

## Webhook verification and troubleshooting on WHMCS

Every callback hitting `/modules/gateways/callback/caravelpay.php` is logged under *Billing › Gateway Log*, making cutover verification straightforward:

| Gateway Log result | What it means | Action |
|---|---|---|
| **Successful** | HMAC-SHA256 verified, `GET /v1/checkouts/{id}` returned `paid`, `addInvoicePayment()` recorded with payout tx hash and 2% Caravel fee. | None — invoice is paid and auto-provisioning triggers normally. |
| **Underpaid** | Less than 85% of the invoice total arrived. Invoice remains unpaid and gets an admin note with the arrived amount. | Review the note, compare with the invoice total, and contact the client to top up or refund manually from your wallet. |
| **Review** | Unusual payment (for example paid after the 60-minute expiry or in an unsupported token). Invoice stays unpaid with a note. | Hold provisioning until resolved or email [hello@caravelpay.app](mailto:hello@caravelpay.app) with the checkout id. |
| **Expired** | No payment within 60 minutes. Invoice stays unpaid. | None — clicking *Pay Now* again generates a fresh checkout automatically. |
| **Signature rejected / missing log entry** | Either a firewall/WAF blocked the `POST` request or a proxy altered the request path/body before PHP received it. | Allowlist `/modules/gateways/callback/caravelpay.php` in Cloudflare/WAF. Caravel Pay retries for up to 24 hours, so the invoice credits once unblocked. |

If you later rotate your payout wallet inside Caravel Pay's WHMCS settings, saving the new address issues fresh credentials automatically; checkouts already created on the old wallet finish there and their webhooks keep verifying for 7 days.

## Frequently asked questions

### Can I run PayGate.to and Caravel Pay on WHMCS at the same time?

Yes. Caravel Pay installs as its own gateway module (`caravelpay`) and never modifies PayGate's files or database settings. You can run both side by side while testing, then switch new orders to Caravel Pay before deactivating PayGate.

### Will Caravel Pay automatically import my PayGate wallet?

No — nothing is copied silently. When a PayGate WHMCS module is configured, Caravel Pay's settings screen displays the wallet address PayGate uses so you can inspect it and paste it yourself.

### What happens to existing WHMCS clients assigned to PayGate when I deactivate it?

When you click Deactivate on a PayGate module in WHMCS under Manage Existing Gateways, WHMCS asks you to pick a replacement gateway for all existing clients and unpaid invoices currently assigned to PayGate. Selecting Caravel Pay moves them over cleanly.

### Do I need Composer or manual API keys on my WHMCS server?

No. The Caravel Pay PHP SDK is bundled inside `caravel-pay-whmcs.zip`, and clicking Save Changes with your Polygon wallet automatically calls `POST /v1/connect` to generate and store your credentials.

### What if my WHMCS invoice stays unpaid even though USDC reached my wallet?

Check *Billing › Gateway Log* and your firewall/Cloudflare logs. A WAF rule or bot challenge blocking `POST` requests to `/modules/gateways/callback/caravelpay.php` is the most common cause. Once unblocked, Caravel Pay's 24-hour webhook retry schedule delivers the event and credits the invoice.

### Does switching to Caravel Pay add automatic recurring card billing in WHMCS?

No. Like PayGate.to, Caravel Pay does not store card numbers or pull automatic recurring charges. WHMCS generates renewal invoices as usual, and clients click Pay Now each billing cycle.

## Sources

1. Caravel Pay docs: [Integrations: WHMCS](https://caravelpay.app/docs/integrations#whmcs), [Webhooks](https://caravelpay.app/docs/webhooks), [Payouts and fees](https://caravelpay.app/docs/payouts), [Checkout statuses](https://caravelpay.app/docs/statuses), checked 2026-11-26.
2. Caravel Pay guides: [WHMCS card-to-USDC setup](https://caravelpay.app/guides/whmcs-card-payments-usdc/), [Switching from PayGate without downtime](https://caravelpay.app/guides/switch-from-paygate/), [PayGate.to fee measurement (11 October–10 November 2026)](https://caravelpay.app/guides/paygate-to-review/#how-we-estimated), checked 2026-11-26.
3. Caravel Pay: [Plugins and downloads (WHMCS)](https://caravelpay.app/plugins/#whmcs) and [Pricing](https://caravelpay.app/pricing/), checked 2026-11-26.
