# Card payments to USDC on Blesta, HostBill, Paymenter and FOSSBilling

Source: https://caravelpay.app/guides/blesta-hostbill-paymenter-fossbilling-card-payments/ · Caravel Pay guides · By the Caravel Pay team · Published 2026-11-26 · Updated 2026-11-26

Accept card, Apple Pay and Google Pay with USDC payouts on Polygon across Blesta 5, HostBill, Paymenter 1.x and FOSSBilling 0.7.2+ without a merchant account.

Hosting and SaaS operators running Blesta 5, HostBill, Paymenter 1.x or FOSSBilling 0.7.2+ can accept card, Apple Pay and Google Pay on client invoices and receive native USDC on Polygon in their own wallet using Caravel Pay's billing modules. There is no merchant account, no business KYC and no monthly fee: you pay the flat 2% Caravel fee, keep your existing crypto gateway active for crypto-native clients, and settle card invoices straight to self-custody.

This guide compares all four billing modules side by side as of 26 November 2026, gives exact setup steps for each panel (including HostBill's CLI key helper), and explains renewals, fees, webhooks and provisioning safety. Using WHMCS or Clientexec instead? See our [WHMCS card-to-USDC guide](https://caravelpay.app/guides/whmcs-card-payments-usdc/) or [Clientexec install docs](https://caravelpay.app/docs/integrations#clientexec).

> **Beta modules.** All four billing modules (v1.2.2) are marked beta on [Plugins and downloads](https://caravelpay.app/plugins/): they pass automated tests against platform stand-ins, but have not yet run on live production installs. For HostBill specifically, HostBill's module SDK is not public, so the module targets the public `PaymentModule` surface used by community modules. Check SHA-256 checksums on [Plugins and downloads](https://caravelpay.app/plugins/#verify) and test with a small real invoice first.

## Four billing panels compared (as of 26 Nov 2026)

Each module bundles the Caravel Pay PHP SDK (no Composer step required), verifies HMAC-SHA256 webhooks, and re-reads the checkout with `GET /v1/checkouts/{id}` before marking an invoice paid:

| Detail | Blesta 5 | HostBill | Paymenter 1.x | FOSSBilling 0.7.2+ |
|---|---|---|---|---|
| Package (v1.2.2) | [`caravel-pay-blesta.zip`](https://caravelpay.app/download/caravel-pay-blesta.zip) | [`caravel-pay-hostbill.zip`](https://caravelpay.app/download/caravel-pay-hostbill.zip) | [`caravel-pay-paymenter.zip`](https://caravelpay.app/download/caravel-pay-paymenter.zip) | [`caravel-pay-fossbilling.zip`](https://caravelpay.app/download/caravel-pay-fossbilling.zip) |
| Install path | `components/gateways/nonmerchant/caravel_pay/` | `includes/modules/Payment/caravelpay/` | `extensions/Gateways/CaravelPay/` | `library/Payment/Adapter/Caravelpay/` |
| How API keys connect | Automatic when you click *Update Settings* | One-time server CLI helper (`connect-cli.php`) | Automatic on Save (or first payment) | Automatic on first client payment |
| Webhook endpoint | `/callback/gw/<org>/caravel_pay/` | Module callback URL (signed start + webhook) | `POST /extensions/caravelpay/webhook` | `ipn.php?gateway_id=…&invoice_id=…` |
| Paid invoice action | **Approved** transaction applied to invoices | Invoice transaction recorded once | `ExtensionHelper::addPayment()` (deduped by tx hash) | Client balance credited + invoice paid with credits |
| Currency note | Tick accepted currencies in gateway settings | Invoice must expose currency from HostBill | Shown only for supported currencies | Hides button for unsupported currencies |
| PayGate.to module? | No | No (built-in "Paygate" is unrelated) | Yes (can run side by side) | Yes (can run side by side) |

## Blesta 5 setup

Caravel Pay ships as a standard non-merchant gateway (`CaravelPay extends NonmerchantGateway`) for Blesta 5.0+ on PHP 7.4+.

1. **Unzip** [`caravel-pay-blesta.zip`](https://caravelpay.app/download/caravel-pay-blesta.zip) in your Blesta root directory, creating `components/gateways/nonmerchant/caravel_pay/`.
2. **Install the gateway** in Blesta admin under *Settings › Payment Gateways › Available* (inside your organization's gateway menu), find **Caravel Pay** and click **Install**.
3. **Connect your wallet and tick currencies.** Paste your ordinary Polygon payout wallet (`0x…`), tick every supported currency you invoice in under accepted currencies, and click **Update Settings**. Saving calls `POST /v1/connect` and stores your secret encrypted using Blesta's encryption; if connecting fails, nothing is saved and the reason is displayed.
4. **Test an invoice.** Confirm external `POST` requests reach `/callback/gw/`, pay a small test invoice ($1 from a crypto wallet, or about $10 by card), and check *Tools › Logs › Gateway* for `caravel_pay` entries.

**How Blesta records transactions:** on `paid`, the gateway records an **Approved** transaction (transaction id = checkout id, reference id = payout tx hash) and applies it to the invoice(s) paid (multi-invoice payments are supported). On `underpaid`, `review` or `confirming`, a **Pending** transaction is recorded without being applied; if paid later, the same transaction flips to Approved. `expired` records nothing so the client can retry. PayGate.to has no Blesta gateway, so there is nothing to migrate.

## HostBill setup (with the CLI key helper)

HostBill is the one Caravel Pay module where you fetch credentials once from the command line, because HostBill's payment module settings form does not expose a pre-save connect hook.

*Generate HostBill API credentials once on your server*

```sh
php includes/modules/Payment/caravelpay/lib/caravel-connector/connect-cli.php \
  --wallet=0x52908400098527886E0F7030069857D2E4169EE7 \
  --site=https://billing.example \
  --platform=hostbill
```

1. **Unzip** [`caravel-pay-hostbill.zip`](https://caravelpay.app/download/caravel-pay-hostbill.zip) in your HostBill root directory, creating `includes/modules/Payment/caravelpay/`.
2. **Run the CLI helper above** on your server, replacing the wallet and `--site` with your public HTTPS HostBill URL. Save the returned **Merchant ID** and **Secret** immediately — the secret is shown only once.
3. **Activate in HostBill.** Open *Settings › Modules › Payment Modules*, activate **Caravel Pay**, paste the Merchant ID and Secret, choose your fee mode and save.
4. **Test a small real invoice.** On the invoice page, the Pay button points to a signed start URL so invoice totals and currencies cannot be tampered with.

**Rotating keys or wallets in HostBill:** run `connect-cli.php` again with the new wallet, paste the new pair, and place the old pair in **Previous credentials** as `mch_…:secret` (one per line) for 24 hours so in-flight webhooks keep verifying. Note that the module reads each invoice's currency from HostBill via `getCurrency()`; if HostBill returns no currency, the invoice is refused rather than guessed. PayGate.to has no HostBill module (HostBill's built-in "Paygate" belongs to an unrelated provider).

## Paymenter 1.x setup

Caravel Pay provides a native gateway extension for Paymenter 1.x that stores credentials encrypted with Laravel's `encrypt()` in dedicated `caravelpay_*` tables.

1. **Install the extension.** Download [`caravel-pay-paymenter.zip`](https://caravelpay.app/download/caravel-pay-paymenter.zip) and place its `CaravelPay/` folder into `extensions/Gateways/` (producing `extensions/Gateways/CaravelPay/CaravelPay.php`), or upload the zip from the Paymenter admin area if your version supports extension uploads.
2. **Configure your wallet.** Add a new gateway in Paymenter admin, select **Caravel Pay**, paste your Polygon payout wallet (and an optional contact email), and click **Save**. Saving connects automatically; if the API call fails, inspect `storage/logs` and the extension will retry on the first payment.
3. **Verify HTTPS and webhook access.** Confirm `APP_URL` in `.env` is your public `https://` address and that `POST /extensions/caravelpay/webhook` is reachable from the internet.

On `paid`, the extension calls `ExtensionHelper::addPayment()` with the remaining invoice balance, the 2% Caravel fee and the payout tx hash (duplicates with the same tx hash update rather than double-credit). `underpaid` and `review` leave the invoice unpaid and log a warning in Laravel's log. Switching from PayGate on Paymenter: keep PayGate installed while testing Caravel Pay with the same Polygon wallet, then disable PayGate once open invoices settle.

## FOSSBilling 0.7.2+ setup

The Caravel Pay payment adapter runs on FOSSBilling 0.7.2 and newer using FOSSBilling's own encryption for stored merchant keys.

1. **Unzip** [`caravel-pay-fossbilling.zip`](https://caravelpay.app/download/caravel-pay-fossbilling.zip) in your FOSSBilling root directory, adding `library/Payment/Adapter/Caravelpay/`.
2. **Install the adapter.** In the admin panel open *System › Payment gateways › New payment gateway* and install **Caravelpay**.
3. **Paste your wallet and enable.** Open the installed Caravelpay gateway, paste your Polygon payout wallet, tick **Enabled** and save. The adapter connects to Caravel Pay automatically on the first client payment.
4. **Check IPN access.** Ensure FOSSBilling is served over HTTPS and `ipn.php` accepts incoming `POST` requests from outside.

**Important webhook detail on FOSSBilling:** FOSSBilling's core `ipn.php` normally returns HTTP `200` even when an adapter fails, which would silently swallow missed callbacks. The Caravel Pay adapter explicitly sets HTTP `401` (invalid signature) or `503` (temporary failure) so Caravel Pay's 24-hour webhook retries work properly. Under PHP-FPM, FOSSBilling 0.8 confirms webhooks before processing them; a delivery that fails there waits under *Invoices › Transactions* for *Process Again*. On `paid`, funds are added to the client's balance and the invoice is paid with credits, recording the payout tx hash under *Invoices › Transactions*. You can run it beside PayGate's FOSSBilling adapter during migration.

## Worked $100 hosting invoice breakdown and PayGate comparison

Caravel Pay charges the flat **2% Caravel fee** on every payment, covering Polygon payout gas, with no monthly or setup fee. Independent card providers typically keep about 3% on recent card orders (fee and exchange-rate spread combined) before USDC arrives; Caravel Pay takes no cut of that fee.

| $100.00 hosting invoice (default mode) | Arrives after provider fee | Platform fee | You receive |
|---|---|---|---|
| PayGate.to (Paymenter / FOSSBilling), direct-seller average (about 3.4%) | $97.00 | about $3.35 | about $93.65 |
| PayGate.to, on a route it lists at 2%, no extras | $97.00 | $1.94 | $95.06 |
| PayGate.to, on a route it lists at 5% | $97.00 | $4.85 | $92.15 |
| **Caravel Pay (all 4 panels)** | 97.00 USDC | 2.00 USDC (2% of the order) | **95.00 USDC** |

In our measurement of public Polygon and Ethereum data for 11 October–10 November 2026 (about 27,000 direct-seller payments worth about $2.0 million; not an audit and not confirmed by PayGate), direct PayGate sellers paid about 3.4% on average — about $1.35 less per $100 order than Caravel Pay. On PayGate's plain 2% routes the two cost about the same; the difference comes from PayGate's 3% and 5% routes ([PayGate.to alternative comparison](https://caravelpay.app/guides/paygate-alternative/)).

The ~3% card provider cut is an estimate, not a guarantee: it varies by provider, payment method, buyer's country and order size (about 1 in 4 recent card orders arrived in full because the provider charged its fee to the buyer on top; a few routes keep up to about 8–10%). Direct Polygon crypto payments carry no provider fee (98.00 USDC payout on $100.00). If you already run BTCPay Server or NOWPayments at 0% to 1%, keep it active for crypto-holding clients and add Caravel Pay beside it for card, Apple Pay and Google Pay buyers — see [adding Apple Pay and Google Pay next to crypto](https://caravelpay.app/guides/hosting-add-apple-pay-google-pay-next-to-crypto/).

Every module includes a **Who pays the fees** setting (*Seller pays everything*, *Split*, or *Buyer pays everything*); check local surcharge laws (such as EU and UK consumer card rules) before passing card fees to clients ([who pays the fees](https://caravelpay.app/pricing/#who-pays)). On low-priced monthly VPS plans ($3–$5), card provider minimum fees take a larger share — see [on-ramp fees explained](https://caravelpay.app/guides/on-ramp-fees/) — so consider encouraging quarterly or annual billing for card payments.

## Renewals, currencies, provisioning safety, KYC and chargebacks

- **Manual invoice renewals only.** Caravel Pay does not store cards or auto-charge renewals. Blesta, HostBill, Paymenter and FOSSBilling generate renewal invoices on schedule, and clients click Pay each cycle.
- **26 non-USD currencies.** Invoice in US dollars or 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. Non-USD invoices convert once at a confirmed market rate (zero Caravel margin), buyers pay in US dollars, you receive USDC, and the panel credits the invoice in its original currency.
- **Provisioning protection on short payments.** A checkout counts as `paid` only when at least 85% of the amount arrives. Below 85%, the checkout becomes `underpaid` and none of the four modules marks the invoice paid, so automated VPS or game-server provisioning does not fire on underpaid invoices.
- **No merchant KYC; provider-set buyer ID checks.** There is no merchant account or business KYC to connect any of these panels. Independent card providers set buyer-side ID rules: not every buyer is asked, usually first-time buyers depending on country, amount and provider, and most providers ask for an email address.
- **Final USDC payouts and chargebacks.** Payouts settle directly to your Polygon wallet ([choosing a payout wallet](https://caravelpay.app/guides/usdc-polygon-payout-wallet/)) with no card-chargeback clawbacks from Caravel Pay. Card disputes stay between the client, their bank and the card provider. Refunds are sent manually from your own wallet, and fees are not returned. Caravel Pay can still pause a merchant suspected of fraud. New merchants start at $1.00 minimum, $2,500 per checkout and $50,000/day, and must follow the [acceptable use policy](https://caravelpay.app/acceptable-use/).

## Frequently asked questions

### Why does HostBill need a CLI command while Blesta, Paymenter and FOSSBilling connect automatically?

HostBill's payment module settings page does not run a custom save hook that can call POST /v1/connect during configuration. Running the bundled connect-cli.php helper once on your server generates your Merchant ID and Secret, which you paste into HostBill's payment module settings.

### Do these modules support automatic monthly card renewals?

No. Caravel Pay never stores card details or pulls recurring charges. Your billing panel generates renewal invoices as usual, and clients pay each invoice from their client area.

### Can I run Caravel Pay next to BTCPay Server or NOWPayments?

Yes. Every module registers as its own payment gateway. Keep your direct crypto gateway enabled for clients who already hold crypto, and offer Caravel Pay for clients paying by card, Apple Pay or Google Pay.

### Does PayGate.to offer modules for Blesta or HostBill?

As of 26 November 2026, PayGate.to lists modules for Paymenter and FOSSBilling (plus WHMCS), but has no official Blesta or HostBill gateway module. HostBill's built-in "Paygate" gateway belongs to an unrelated provider.

### Why does the FOSSBilling adapter override ipn.php HTTP status codes?

FOSSBilling's default ipn.php responds with HTTP 200 even when a payment adapter throws an error, which would stop webhook retries. The Caravel Pay adapter returns HTTP 401 on invalid signatures and 503 on temporary errors so Caravel Pay retries delivery for up to 24 hours.

### Will a server auto-provision if a client underpays an invoice?

No. All four modules verify the signed webhook, re-read the checkout via the API, and credit the invoice only when the status is paid (at least 85% arrived). Underpaid or review checkouts leave the invoice unpaid and log a warning or note.

## Sources

1. Caravel Pay docs: [Blesta](https://caravelpay.app/docs/integrations#blesta), [HostBill](https://caravelpay.app/docs/integrations#hostbill), [Paymenter](https://caravelpay.app/docs/integrations#paymenter), [FOSSBilling](https://caravelpay.app/docs/integrations#fossbilling), [Payouts and fees](https://caravelpay.app/docs/payouts), checked 2026-11-26.
2. Caravel Pay: [Plugins and downloads](https://caravelpay.app/plugins/#blesta), [Pricing](https://caravelpay.app/pricing/), [WHMCS card-to-USDC guide](https://caravelpay.app/guides/whmcs-card-payments-usdc/), [Hosting Apple Pay and Google Pay guide](https://caravelpay.app/guides/hosting-add-apple-pay-google-pay-next-to-crypto/), checked 2026-11-26.
3. Caravel Pay PayGate measurement (11 October–10 November 2026): [methodology and limits](https://caravelpay.app/guides/paygate-to-review/#how-we-estimated), checked 2026-11-26.
