Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preferred networks aren't used with a co-branded card when user does not select a network themselves in CardForm component #1627

Open
nicolasdevienne opened this issue Mar 20, 2024 · 1 comment

Comments

@nicolasdevienne
Copy link

nicolasdevienne commented Mar 20, 2024

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
Copy link
Author

@charliecruzan-stripe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant