-
-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The future of intentCreationCallback method never completes #1949
Comments
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. |
I tested the payment_sheet_deffered_screen.dart example where this is being used and have not experienced any issues - maybe I'm missing something here? |
@jonasbark this future never completes. If you add a print after the await, the print is never executed |
* Sync with Stripe React Native 0.39.0 * fix #1949 * feat: add customer session client secret to payment sheet * feat: add onbehalfof to cardfield * fix formatting * update changelog, version --------- Co-authored-by: Jonas Bark <[email protected]> Co-authored-by: Remon <[email protected]>
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: