← All errors

Stripe errors and fixes

Stripe API, webhook, subscription and card errors you hit while adding payments to an app.

10 Stripe errors below. Each page shows the exact error text, what it means, likely causes and a step-by-step fix.

Updated .

Stripe errors at a glance

ErrorMost common causeFirst thing to try
No signatures found matching the expected signature for payloadThe body was parsed as JSON (or re-serialized) before verification.In a Next.js App Router route handler, read the raw text body.
Invalid API Key providedTypo, extra whitespace or quotes around the key in your env file.Copy the secret key again from Dashboard → Developers → API keys, with no quotes or trailing spaces.
You did not provide an API keySTRIPE_SECRET_KEY not set in this environment (local vs Vercel production/preview).Log whether the variable exists (never log the value).
No such customer: 'cus_...'The object was created in test mode and you are using a live key (or the reverse).Check which mode the key is in.
Your card was declinedInsufficient funds, issuer fraud rules, or a blocked card.Read error.decline_code and show the customer a clear message asking for another payment method.
Amount must be at least $0.50 usdPassing dollars instead of cents (e.g.Convert to the smallest currency unit with rounding.
This customer has no attached payment source or default payment methodCreating a subscription with stripe.subscriptions.create() for a customer who never entered a card.Simplest fix.
No such price: 'price_...'A test-mode price ID is used with a live key (sk_live_), or a live price ID with a test key (sk_test_).Check which key the server is using.
Webhook payload must be provided as a string or a Buffer instance representing the _raw_ request bodyExpress has app.use(express.json()) registered before the webhook route, so the body is parsed before your handler sees it.Next.js App Router (app/api/webhooks/stripe/route.js).
You must provide at least one recurring price in `subscription` mode when using pricesThe price ID in your code or environment variable points to a one-time price (for example a "lifetime" or credits price) while the code always sends mode.Check what kind of price you are passing.

All Stripe fixes

Related error categories

Not sure which one you have? Take the quiz →

Other platforms

Next.js · Vercel · Supabase · Cursor · Lovable · Bolt · Rocket.new · Replit

Get new fixes weekly

No spam. Unsubscribe anytime. Privacy