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
| Error | Most common cause | First thing to try |
|---|---|---|
| No signatures found matching the expected signature for payload | The 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 provided | Typo, 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 key | STRIPE_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 declined | Insufficient 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 usd | Passing dollars instead of cents (e.g. | Convert to the smallest currency unit with rounding. |
| This customer has no attached payment source or default payment method | Creating 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 body | Express 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 prices | The 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
- No signatures found matching the expected signature for payload
stripe.webhooks.constructEvent() could not verify that the webhook came from Stripe. - Invalid API Key provided
Stripe rejected the secret key sent with the request (authentication_error).. - You did not provide an API key
A request reached Stripe with no secret key at all, usually because the environment variable was undefined.. - No such customer: 'cus_...'
The ID doesn't exist in the Stripe account and mode you are calling. - Your card was declined
The card issuer (or Stripe Radar) declined the payment. - Amount must be at least $0.50 usd
Stripe enforces a minimum charge per currency so its fee never exceeds the payment: 0.50 USD, and for example 0.50 EUR, CAD and AUD, 0.30 GBP, or 50 JPY. - This customer has no attached payment source or default payment method
Stripe tried to charge a customer (usually the first invoice of a new subscription created with the API) but there is no payment method it is allowed to use. - No such price: 'price_...'
Stripe looked up that price ID using the mode of your secret key (test or live) and did not find it. - Webhook payload must be provided as a string or a Buffer instance representing the _raw_ request body
stripe.webhooks.constructEvent() needs the exact bytes Stripe sent so it can check the Stripe-Signature header. - You must provide at least one recurring price in `subscription` mode when using prices
You created a Checkout Session with mode: 'subscription', but every price in line_items is a one-time price.
Related error categories
- Stripe payments & webhook errors: 10 pages
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