#41 most commonpaymentsLovableBolt.newCursorReplitv0Windsurf

Stripe: No such price / No such customer (resource_missing)

StripeInvalidRequestError: No such price: 'price_123' / No such customer: 'cus_...'; a similar object exists in test mode, but a live mode key was used to make this request.

Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.

Paste your error →

What it means

Your app refers to a price or customer that Stripe can't find with the key you're using. Usually you mixed test-mode IDs with live-mode keys (or vice versa), or the AI made up a placeholder ID.

How to fix it: paste this prompt into your AI builder

Fix prompt for Lovable, Bolt, Cursor, Replit, v0, Windsurf
Stripe returns "No such price/customer". Find where Stripe IDs are hard-coded. Move price IDs to env vars, make sure test keys are used with test-mode IDs and live keys with live-mode IDs, and remove any placeholder IDs the code invented. Don't change the checkout flow otherwise.

If the AI can't fix it: manual steps

  1. Stripe Dashboard: toggle Test mode on/off and copy the price ID (price_...) from the matching mode's product page.

Where this happens

Seen in these AI app builders and editors:

LovableBolt.newCursorReplitv0Windsurf

Sources

Related payments errors

Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.

Fix my error →