You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using PaymentSheet in 'Deferred Mode' the allowed payment methods can't come from intent, because the intent will be generated only after the user has choosen a payment method. Payment methods that will be shown should are those selected in Stripe Settings. From code we should be able to further filtering allowed payment methods by giving an array when istantiating IntentConfiguration.
With current code we have two problems:
In iOS, payment methods like iDeal and PayPayl won't be shown
In Android all configured payment methods are shown, regardless of wich values we put in paymentMethodTypes array in intentConfiguration
To Reproduce
Steps to reproduce the behavior:
Enable PayPal, an other payment types in your Stripe account
Add paymentMethodTypes: ['card','paypal'], in IntentConfiguration at 'initPaymentSheet' method of payment_sheet_deffered_screen.dart file
Run the example App
Launch 'Single Step (deferred payment)' demo from 'Payment Sheet' group
In iOS: Observe that only 'Card' Payment is shown
In Android: Observe that all configured payment methods are shown, even if not present in paymentMethodTypes array.
Solution:
iOS: A return Url should be configured when configuring the payment sheet
Android: JSONArray is missing from possible tipes in ReadableMap.java from stripe_android package
A PR will be submitted to address this issue.
The text was updated successfully, but these errors were encountered:
pgiacomo69
changed the title
Payment Methods inconcistencies when using PaymentSheet in deferred mode
Payment Methods inconsistencies when using PaymentSheet in deferred mode
Jul 9, 2024
When using PaymentSheet in 'Deferred Mode' the allowed payment methods can't come from intent, because the intent will be generated only after the user has choosen a payment method. Payment methods that will be shown should are those selected in Stripe Settings. From code we should be able to further filtering allowed payment methods by giving an array when istantiating
IntentConfiguration
.With current code we have two problems:
paymentMethodTypes
array inintentConfiguration
To Reproduce
Steps to reproduce the behavior:
paymentMethodTypes: ['card','paypal'],
inIntentConfiguration
at 'initPaymentSheet' method of payment_sheet_deffered_screen.dart filepaymentMethodTypes
array.Solution:
A PR will be submitted to address this issue.
The text was updated successfully, but these errors were encountered: