flutter_stripe icon indicating copy to clipboard operation
flutter_stripe copied to clipboard

The future of intentCreationCallback method never completes

Open limonadev opened this issue 5 months ago • 1 comments

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:

  1. Call Stripe.instance.initPaymentSheet with the mode as IntentMode.setupMode, currencyCode as 'USD' and setupFutureUsage as IntentFutureUsage.OnSession.
  2. Inside the confirmHandler get the clientSecret and try to call await Stripe.instance.intentCreationCallback() with that secret.
  3. 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.

limonadev avatar Oct 02 '24 13:10 limonadev