Signed payment requests

Hosted checkout can issue a short-lived, Ed25519-signed payment request for the CXCASH wallet. The wallet verifies the signature against CX Pay's public JWKS, shows a confirm screen, broadcasts the transfer, then posts the transaction hash back for instant matching.

Deep link + QR

After the payer selects an asset, checkout may expose cxcashPayUrl:

https://cxcash.app/pay?r=<base64url(compact-JWS)>

The JWS payload includes paymentId, chain, token, depositAddress, exact amountUnits, expiresAt, callbackUrl, kid, and requestId.

JWKS

Wallets fetch keys from GET /api/v1/payment-requests/jwks (also at https://cxpay.cash/api/v1/payment-requests/jwks in production). Cache the JWKS; reject expired requests and unknown callback hosts (allow only cxpay.cash and your configured sandbox host).

Wallet submit

After broadcast, the wallet POSTs to the callback (checkout wallet-submit):

POST /api/v1/checkout/sessions/{clientSecret}/wallet-submit
{ "paymentId": "…", "txHash": "0x…", "requestId": "…" }

CX Pay forwards the hash to the engine claim endpoint for on-chain verification and instant credit. The chain watcher remains the backup discovery path.

Network fee

Checkout options are ordered best→worst (cxcash, Solana, Lightning, L2s, BTC, BSC/AVAX, ETH L1, Tron). Costly rails show a short note (for example Tron sweep). networkFeeUsdCents is added to amount due and echoed on webhooks and plugins.

See also Hosted checkout and API reference.