Test mode

cxpay_test_ / cxpay_pk_test_ keys create TEST-mode payments only. They are routed to a separate CoinExchange sandbox engine (testnets). They never hit the live/mainnet settlement engine.

Sandbox availability

Operators configure COINEXCHANGE_SANDBOX_ENGINE_URL and CX_ENGINE_SANDBOX_SERVICE_KEY. Probe: GET /api/v1/health/capabilities and sandboxAvailable on GET /me / GET /merchants/me.

If the sandbox engine is not configured, CX Pay is live-only. The dashboard disables Create test link, TEST key creation, and Switch to sandbox, and shows: Test mode is unavailable on this server; CX Pay is live-only — test with a small real payment. API calls that need the sandbox return HTTP 400 with { "code": "sandbox_unavailable", ... }. Onboarding issues a one-time cxpay_live_ bootstrap key (and sets the merchant to Live) so a new merchant can take real payments immediately. Live keys continue to work; pasting a TEST key into WooCommerce Test connection reports that the sandbox is unavailable.

Checkout banner

Hosted checkout for TEST payments shows a prominent TEST / TESTNET banner so payers never confuse sandbox quotes with mainnet.

Going live

  1. Add a payout wallet and switch the merchant to Live in dashboard Settings.
  2. Create cxpay_live_ secret keys (and optional live publishable keys / buttons).
  3. Point WooCommerce / servers at the live key.

Continue: Quickstart · Install