flutter-stripe / flutter_stripe

Flutter SDK for Stripe.
https://pub.dev/packages/flutter_stripe
947 stars 522 forks source link

iOS Payment Sheet does not show additional payment methods (FPX, GrabPay etc) #1783

Closed jeggah closed 5 months ago

jeggah commented 5 months ago

Describe the bug Using the PaymentSheet, on iOS only, the user is never given the option to select different payment methods (in this case FPX and GrabPay). This is despite these payment methods being enabled on Stripe dashboard. On Android it works as expected, as shown in the screenshots.

To Reproduce Implement PaymentSheet with additional payment methods.

Expected behavior When PaymentSheet is created, the user should be able to select between FPX, Card, and GrabPay

iOS screenshot (No option to select other payment methods) image

Android screenshot (All payment methods selectable) image

jeggah commented 5 months ago

Solved. You need to set returnURL as part of the SetupPaymentSheetParameters

Solution taken from react-native lib https://github.com/stripe/stripe-react-native/issues/1495