stripe / Stripe API
Stripe API: livemode_mismatch
Test mode and live mode keys, requests and objects are only available within their own mode, and the request mixed them.
Visible symptoms
- Error code: livemode_mismatch
- The Stripe API returns an error object with this code.
Safe verification and recovery
Match the mode
Use test keys with test objects and live keys with live objects.
Check object IDs
Verify that the IDs in the request were created in the same mode as the key.
Matching evidence and limitations
Reported error signals
Matches the documented error signal; it identifies the documented case, not the exact root cause of your request.
The local analyzer never executes suggested commands or treats a possible match as certainty.