Replies: 1 comment
-
This normally happens when there is something off in the ocnfiguration. Make sure that your intentclientsecret is correct and that it uses the same environment as the backend. The error shown is something we get from the stripe sdk and we forward it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
every time Stripe.instance.presentPaymentSheet() shows error:
StripeException(error: LocalizedErrorMessage(code: FailureCode.Failed, localizedMessage: There was an unexpected error -- try again in a few seconds, message: There was an unexpected error -- try again in a few seconds, stripeErrorCode: null, declineCode: null, type: null))
on both test or live mode.
To Reproduce
Steps to reproduce the behavior:
final stripeCusId=...; callBackendFunctions('stripeSetupIntent',{ 'cusId':stripeCusId }).then((v)async{ final clientSec=v.data['client_secret'] as String; final res=await Stripe.instance.initPaymentSheet(paymentSheetParameters: SetupPaymentSheetParameters( customerId: stripeCusId, setupIntentClientSecret: clientSec, intentConfiguration: IntentConfiguration( mode: IntentMode.setupMode(setupFutureUsage: IntentFutureUsage.OffSession), ), )); setupReady.value=true; });
await Stripe.instance.presentPaymentSheet();
Screen.Recording.2025-06-21.at.6.12.13.PM.mov
Additional context
The Stripe console seems fine, and this error appears every time when Stripe.instance.presentPaymentSheet is called.
Anyone know where the issue is, or maybe show helpful messages for debugging, thanks?
Beta Was this translation helpful? Give feedback.
All reactions