flutter-stripe/flutter_stripe

When calling initPaymentSheet with the customFlow flag again, the application hangs

kirill09 opened this issue · 1 comments

When calling initPaymentSheet with the customFlow flag again, the application hangs

Steps to reproduce the behavior:
In the example, the following steps need to be done.

  1. Custom Flow
  2. Init payment sheet
  3. Select payment method
  4. Add card 4242 4242 4242 4242(does not matter)
  5. Pay now
    We receive a successful payment.
  6. Init payment sheet
    Stripe.instance.initPaymentSheet method does not complete its work.

Stripe.instance.initPaymentSheet method completed successfully

  • OS: Android 14
  • Package version: 11.2.0
  • Flutter version: 3.24.2
flutter-stripe.mp4

An exception is raised that is not handled anywhere.
com/stripe/android/paymentsheet/repositories/ElementsSessionRepository.kt:58
Failure(kotlinx.coroutines.JobCancellationException: Job was cancelled; job=SupervisorJobImpl{Cancelling}@30f3594)

@jonasbark I can reproduce this issue can you check if it is something in the Android factory?