stripe-react-native
stripe-react-native copied to clipboard
Preferred networks aren't used with a co-branded card when user does not select a network themselves in CardForm component
trafficstars
Describe the bug The list of preferred networks that should be used to process payments made with a co-branded card isn't used when user does not select a network themselves in CardForm component. For PaymentSheet it works.
To Reproduce Steps to reproduce the behavior:
- Configure CardForm component with preferredNetworks={[CardBrand.Mastercard, CardBrand.Visa]} props
- Enter co-branded card test number 4000002500001001
- Add card
- Properties card.networks.preferred = null and card.display_brand = "cartes_bancaires" while they should be equal to "visa"
Expected behavior Preferred networks should be used.
Screenshots
Smartphone (please complete the following information):
- Device: iPhone 15 Pro (simulator)
- OS: iOS 17.4
Additional context
- @stripe/stripe-react-native = 0.37.1
@charliecruzan-stripe
@charliecruzan-stripe