Active
Project:
Commerce Stripe
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2024 at 07:54 UTC
Updated:
15 Mar 2024 at 22:08 UTC
Jump to comment: Most recent
After moving the DB from PROD to STAGING for the admin account, the following errors appear:
26936252 12/Mar 07:44 php Error Drupal\Core\Entity\EntityStorageException: No such payment_intent: 'pi_XXX'; a similar object exists in live mode, but a test mode key was used
to make this request. i
26936251 12/Mar 07:44 commerce_order Error Stripe\Exception\InvalidRequestException: No such payment_intent: 'pi_XXX'; a similar object exists in live mode, but a test mode key was used to
make this request. in
Comments
Comment #2
vmarchukIf in our case it is due to using
PaymentIntent::retrieve($intent_id)without a try-catch.Comment #3
martin@manarock.co.uk commentedI have had this, drove me made for a few hours - eventually started another payment request in incognito mode - which gave me a new session, and everything worked. Any chance its down to the same session ID in the browser?