You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After showing the users the PaymentSheet to enter their card details, I call await Stripe.instance.intentCreationCallback inside the confirmHandler, but that await never finishes so the app is stuck there.Also, there is no exceptions nor logs sent by the method.
To Reproduce
Steps to reproduce the behavior:
Call Stripe.instance.initPaymentSheet with the mode as IntentMode.setupMode, currencyCode as 'USD' and setupFutureUsage as IntentFutureUsage.OnSession.
Inside the confirmHandler get the clientSecret and try to call await Stripe.instance.intentCreationCallback() with that secret.
Add a break point after that call.
Expected behavior
The break point should be reached after Stripe finishes the processing of intentCreationCallback method.
Smartphone / tablet
Device: iPhone 15 (Simulator)
OS: iOS 17
Package version: 11.1.0
Flutter version 3.19.6
Additional context
This was tested only on dev environment, as part of a migration from the old stripe_payment package to flutter_stripe, but all the configurations related to the new package were already done.
The text was updated successfully, but these errors were encountered:
hmm it looks like we do not set the confirmhandler correct. @jonasbark it looks like the completer on android never yield a resutt back to the method channel even though the method is invoked from dart.
Describe the bug
After showing the users the PaymentSheet to enter their card details, I call
await Stripe.instance.intentCreationCallback
inside theconfirmHandler
, but that await never finishes so the app is stuck there.Also, there is no exceptions nor logs sent by the method.To Reproduce
Steps to reproduce the behavior:
Stripe.instance.initPaymentSheet
with the mode asIntentMode.setupMode
, currencyCode as'USD'
andsetupFutureUsage
asIntentFutureUsage.OnSession
.confirmHandler
get theclientSecret
and try to callawait Stripe.instance.intentCreationCallback()
with that secret.Expected behavior
The break point should be reached after Stripe finishes the processing of
intentCreationCallback
method.Smartphone / tablet
Additional context
This was tested only on dev environment, as part of a migration from the old
stripe_payment
package toflutter_stripe
, but all the configurations related to the new package were already done.The text was updated successfully, but these errors were encountered: