PayclaveDocs

Payclave developers

Test mode and go live

Test simulated payments and verify your production setup before launch.

Test your integration

Test mode uses simulated payment execution with Base Sepolia USDC as its settlement configuration. Test records, keys, and wallet settings remain separate from live mode. A simulated success checks your integration flow; it does not demonstrate that live funds moved or that a live payment route is available.

  • Create a checkout session and follow its status.
  • Test expiry, cancellation, failed payment, and retry handling.
  • Send a test webhook and verify signatures, duplicate delivery handling, and mode checks.
  • Reject synthetic webhook events for fulfillment.

Treat a test webhook delivery as a check of your endpoint's signature verification and response handling. It does not create a real paid order. Keep test order records separate from live orders, and inspect the event's mode and test marker before running any fulfillment work.

Test failure and recovery cases

Retry checkout creation with the same key after a simulated timeout and confirm your app keeps one intended order operation. Replay a webhook and confirm the order is not fulfilled twice. Reject a delivery with a changed body or signature. Test a browser return before payment confirmation and show a pending order until your backend has the verified result.

Check the UI for an expired checkout, a cancelled attempt, and a remaining amount after a partial payment. Explain the next action from the API state. Do not label an order paid because the browser closed or a wallet submitted a transaction.

Go live

Switching keys alone is not a complete live setup. Confirm your live merchant activation, settlement wallet, website origin, and webhook configuration before exposing the payment button to customers. Your live server should read prices from your order records and verify payment confirmation before sending goods or granting access.

  • Complete merchant activation and configure a merchant-controlled live settlement wallet.
  • Create a live secret key on your server and configure the live webhook endpoint and secret.
  • Use your reviewed website origin and production return URLs.
  • Verify order authorization, server-calculated amounts, and idempotent creation.
  • Verify signed invoice.paid events against stored order records before fulfillment.
  • Monitor payment records and webhook deliveries, and retain request IDs for support.

On this page