Summary
Customers reach the payment step, Stripe rejects the request and the checkout shows a red error: "No such PaymentIntent: 'pi_...'". In logs it is an HTTP 404 with the code resource_missing, and it often adds "a similar object exists in live mode, but a test mode key was used to make this request" (or the reverse). Orders stay pending, or paid orders never complete.
This guide gives the fast isolation steps first. If you would rather hand it over, SazM fixes a Stripe PaymentIntent error as an affordable $99 fixed-price bug fix, delivered within 48 hours, entirely in writing: no calls, no project manager, one senior developer.
Where the Error Lives
A PaymentIntent exists in exactly one Stripe account and one mode (test or live). The error means the secret key making the request cannot see the pi_ object it was asked about. Typical lines:
Stripe\Exception\InvalidRequestException: No such PaymentIntent: 'pi_3Nxxxxxxxx'
-> wrong account, wrong mode, or the ID was never created by this key
No such PaymentIntent: 'pi_...'; a similar object exists in live mode,
but a test mode key was used to make this request.
-> test and live keys mixed between front end and back end
{"error":{"code":"resource_missing","type":"invalid_request_error","param":"intent"}}
storage/logs/laravel.log
wp-content/uploads/wc-logs/ (WooCommerce > Status > Logs)
/var/log/nginx/error.log
In the Stripe Dashboard, open Developers → Logs and find the failing request. It shows which key and mode made the call, and the response Stripe returned.
Quick Fix Breakdown (DIY)
- Match the keys. The publishable key (
pk_...) in the browser and the secret key (sk_...) on the server must come from the same account and the same mode. Apk_test_with ansk_live_produces exactly this error. - Check for stale environment values. After editing
.envon Laravel, clear cached config:
php artisan config:clear
php artisan config:cache
- WooCommerce. In the Stripe gateway settings, confirm test mode is either on or off for both key pairs, then re-save. Clear any object cache and check a staging copy is not using live keys, or the reverse.
- Connect accounts. If you use Stripe Connect, the request must send the connected account:
Stripe-Account: acct_...(thestripe_accountoption in the PHP library). Without it, the intent is not found. - Do not reuse an old client secret. A
pi_created in a different session, environment or account cannot be confirmed. Create the PaymentIntent on the server for each checkout and pass itsclient_secretto the front end. - Check staging copies. A database cloned from production keeps live
pi_IDs in order meta; a staging site with test keys then fails when it tries to retrieve them. - Look up the object with the CLI to see which mode it lives in:
stripe payment_intents retrieve pi_XXXX --api-key sk_test_XXXX
stripe payment_intents retrieve pi_XXXX --api-key sk_live_XXXX
- Confirm webhooks use the matching secret and mode. See Stripe webhook signature errors, and process events idempotently (idempotent webhook processing).
If none of this isolates it within an hour, stop. Every hour of guessing is more abandoned checkouts.
Hand It Over: $99 Fixed, Within 48 Hours
A missing-PaymentIntent error is usually a small mismatch, but it hides between your front end, your server config, your plugin cache and Stripe's account modes. One developer who reads the Dashboard log, reproduces the failure on staging and fixes the root cause ends the loop.
What you get for $99:
- A fixed price agreed before work starts. One Stripe issue, one flat fee, no hourly meter.
- Delivery within 48 hours of access, verified on staging with Stripe test-mode payments before anything touches live.
- Fully written, fully async. You send the site, the error and when it started. Questions, progress and proof arrive in writing, so your time zone does not matter.
- Written proof it works: the root cause in plain language, what changed, a log of a successful test payment, and a rollback note.
- Money-back guarantee if the agreed root cause cannot be resolved.
- Safe access only: a separate account, staging first, restricted or test-mode keys. Never send live secret keys or card data through the inquiry form.
Behind it: 20+ years in production (since Oct 2006) and 100+ projects in the portfolio, including Laravel and Next.js projects with Stripe payments.
Get your Stripe error fixed for $99 → · Queue an urgent fix · See past projects
If the whole checkout fails rather than only the payment step, see WooCommerce checkout not working.
Frequently Asked Questions
What does "No such PaymentIntent" mean in Stripe?
The secret key making the request cannot find that pi_ object. It was created in another Stripe account, in the other mode (test vs live), under a different connected account, or never created at all.
Why does Stripe say "a similar object exists in live mode, but a test mode key was used"?
Your server is using a test secret key against a live PaymentIntent, or the reverse. Make the publishable and secret keys come from the same account and mode, then clear cached config.
Why do I get this error only on my staging site?
A cloned database keeps live PaymentIntent IDs, while staging uses test keys. Use test keys with fresh test payments on staging and never retrieve production intents there.
How much does it cost to fix a Stripe "No such PaymentIntent" error?
SazM fixes one Stripe issue for an affordable fixed price of $99, delivered within 48 hours, with a money-back guarantee if the agreed root cause cannot be resolved. Typical agency hourly rates are higher and open-ended, and very low marketplace gig prices rarely include root-cause diagnosis, staging tests or a guarantee.
Do I need a call to explain the problem?
No. Send the site URL, the exact error and the Dashboard request log in writing. That written report becomes the test that proves the fix works.
Still failing after this? Get a Stripe fix at a $99 fixed price, fully written and delivered within 48 hours.