Going Live
Switch from a test key to real bookings.
You built and tested with a sk_test_ key. Here's how to switch to real bookings.
Checklist
- Generate a live key, Developers → API Key → Live → Generate. Copy it once, store it in your secret manager.
- Swap the key in your config. The base URL stays the same. Keep the key server-side.
- Use real cards. Collect them with Stripe.js / Elements and pass the
pm_...token. - Handle 3-D Secure. Real cards often need it, complete the
payment_requires_actionflow instead of assuming book succeeds first try. - Handle retries. Poll the booking after a timeout rather than blindly retrying. See Errors & Rate Limits.
- Watch usage under Developers → API Key.
Test vs live
| Test | Live | |
|---|---|---|
| Search, availability | Yes | Yes |
| Prebook, book | No | Yes |
| Payments | Test methods | Real cards |
Rotate on a schedule
Treat the live key like any production secret. Rotate from Developers → API Key → Rotate, the old key works for 24 hours, so there's no downtime. Revoke immediately if it leaks.
Help
Stripe setup, higher rate limits, anything else, contact TripFusion support.
Updated 25 days ago
Did this page help you?