Always build and test in test mode first. Every new account starts there, so there is nothing to switch on.
Test and live are chosen by your key
AgentaOS has one base URL. The key prefix decides which environment you hit, so you never point at the wrong host..env
Testing payments
Test-mode checkouts render the secure card form. Use these test cards with any future expiry and any CVC:Testing webhooks
In test mode, events go to the webhook URL you register in Settings → Developers → Webhooks. To receive them on your machine, expose your local server with a tunnel like ngrok and register the tunnel URL. This lets you verify signature validation and your event handlers before going live. See Webhooks.Going live
1
Finish testing in test mode
Run your full flow with the test cards above, including a webhook round-trip, until every path behaves.
2
Verify your business
Complete business verification (KYB) in the dashboard. This is required before you can accept real money as Merchant of Record.
3
Add a payout account
Add a bank account or wallet so your earnings have somewhere to settle. See Payouts.
4
Swap to your live key
Replace
sk_test_ with sk_live_ in your environment variables. Nothing else changes.5
Register your live webhook
Add your production webhook URL and copy its live signing secret.
6
Watch your first payments
Keep an eye on your first live transactions to confirm everything behaves as it did in test mode.
Next steps
Checkouts
Create checkout sessions and payment links.
Go live guide
The full test-to-production checklist.
Subscriptions
Recurring billing and cancellation.
Webhooks
Receive and verify real-time events.