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_urlandcancel_urlmust use HTTPS. - Webhook endpoints must be public HTTPS URLs.
- New payments and checkouts return
402while your Camel invoice is past due. Pay it from Billing in the dashboard.
Go live
- Switch the dashboard to Production.
- Add a connection with your live provider credentials under Connections.
- Create a
pay_live_key under Developers. - Add a production webhook endpoint under Webhooks, and store its signing secret.
- 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.