stripe-react-native icon indicating copy to clipboard operation
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

Open nicolasdevienne opened this issue 1 year ago • 1 comments
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:

  1. Configure CardForm component with preferredNetworks={[CardBrand.Mastercard, CardBrand.Visa]} props
  2. Enter co-branded card test number 4000002500001001
  3. Add card
  4. 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 Simulator Screenshot - iPhone 15 Pro - 2024-03-20 at 18 32 36

Smartphone (please complete the following information):

  • Device: iPhone 15 Pro (simulator)
  • OS: iOS 17.4

Additional context

  • @stripe/stripe-react-native = 0.37.1

nicolasdevienne avatar Mar 20 '24 18:03 nicolasdevienne

@charliecruzan-stripe

nicolasdevienne avatar Apr 01 '24 12:04 nicolasdevienne

@charliecruzan-stripe

tgensol avatar May 30 '24 12:05 tgensol