How do I switch from test payments to real ones?
Swap each test value for its live twin (the keys, the product IDs and the webhook secret), because nothing carries over from test. Put the live values in your host’s settings, not your code, and publish again. Then watch your first real sale come through.
Find your situation
- If you use Stripe
- Switch the API keys page to live mode. Live keys start with sk_live_ or rk_live_, and Stripe suggests a restricted key. Sandbox products don’t work in live mode, so copy or recreate each one. Add a live webhook endpoint too, with its own signing secret.
- If you use Paddle
- Your live account is a separate account. Create your product, price, client-side token and notification destination again there. Live tokens start with live_, and a sandbox value sent to live gets a forbidden error.
- If you use Dodo Payments
- Turn on the Live Mode switch. Keys, products and webhooks belong to one mode, so copy each product to live, create a key starting dodo_live_, add a live webhook endpoint, and set DODO_PAYMENTS_ENVIRONMENT to live_mode. A test key sent to live gets a 401 error.
- If you use Polar
- The sandbox is a separate site, so nothing moves across. On polar.sh, create your product, access token and webhook again, and set POLAR_ENVIRONMENT to production. Production needs its own access token.
- If you want to make a real purchase yourself to check it works
- Don’t pay with a real card. Stripe’s agreement forbids testing live with real card details, and Polar treats it as card testing that can get your account blocked. On Polar, use a 100% discount code or a free product. On Stripe, check your first real sale and its webhook delivery in the Dashboard.
- If live payments fail but test ones worked
- Some setting still holds a test value. Check the secret key, the product or price ID and the webhook secret in your host’s settings, then publish again. Keys from one mode don’t work in the other.
Who does what
You
- Pass your payment company’s business check first.
- Create the live keys and the live webhook in the dashboard, and copy each secret into your host’s settings.
- Copy or recreate each product in live mode, with the same price.
- Cancel test subscriptions you don’t need. On Dodo they keep renewing and sending emails.
- Watch the first real payment and its webhook delivery in the dashboard.
Your AI tool
- List every payment setting your app reads, so you know which ones need a live value.
- Check your code has no keys in it and reads everything from settings.
- Make sure your webhook copes with the same event arriving twice, late or out of order.
- Explain what an error means if a live payment fails.
Hand this to your AI tool
I’m ready to switch my app from test payments to real ones. Ask me which payment company I use and where my site is hosted. Check that company’s current go-live docs. Then: - List every setting my app reads for payments, like keys, product or price IDs, the webhook secret and the mode, and tell me where to find the live value for each one. I’ll put them in my host’s settings myself. - Check my code has no keys in it, and that my webhook copes with the same event arriving twice or out of order. - Give me a short checklist for my first real sale. This comes from https://buildladder.com/answers/test-to-live-payments. If you can open web pages, read https://buildladder.com/answers/test-to-live-payments.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address. Ask me before you install anything, sign in to anything or spend money. Never ask me to paste a password or secret key into this chat.
Where to go next
Updated Sources: Stripe: Go-live checklist, Stripe: API keys, Stripe: Testing, Stripe: Refunds, Dodo: Test mode vs live mode, Dodo Payments pricing, Polar: Sandbox, Paddle: Sandbox, Polar: Account reviews, Polar fees.