flutter_stripe
flutter_stripe copied to clipboard
The future of intentCreationCallback method never completes
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 asIntentMode.setupMode
, currencyCode as'USD'
andsetupFutureUsage
asIntentFutureUsage.OnSession
. - Inside the
confirmHandler
get theclientSecret
and try to callawait 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.