Docs
Search the docs
Find a page in the docs

Concepts

Sandbox and production

Build with sandbox keys, then switch to production keys to go live.

Every project has two environments, sandbox and production. They share nothing: each has its own connections, API keys, payments, checkouts, webhook endpoints, and events.

Sandbox

Use sandbox while you build. Connect your provider's test credentials (a Mercado Pago test access token, a Stripe test secret key) and call the API with a pay_test_ key. No real money moves, and each provider's test cards work as they normally do.

Production

Production uses your provider's live credentials and a pay_live_ key. A few rules only apply here:

  • Checkout success_url and cancel_url must use HTTPS.
  • Webhook endpoints must be public HTTPS URLs.
  • New payments and checkouts return 402 while your Camel invoice is past due. Pay it from Billing in the dashboard.

Go live

  1. Switch the dashboard to Production.
  2. Add a connection with your live provider credentials under Connections.
  3. Create a pay_live_ key under Developers.
  4. Add a production webhook endpoint under Webhooks, and store its signing secret.
  5. Replace the sandbox key, connection ids, and webhook secret in your server's configuration.

Connection ids differ between environments. A sandbox con_… id returns 404 with a production key.