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 network for co-branded cards not working on android #1720

Open
undeadborn opened this issue Aug 28, 2024 · 2 comments
Open

Preferred network for co-branded cards not working on android #1720

undeadborn opened this issue Aug 28, 2024 · 2 comments

Comments

@undeadborn
Copy link

Describe the bug

Looks like co-branded cards are not working as expected on android.

If user selects any of the brands available in the dropdown, the response for preferredNetwork is always null.

If we force a default option programmatically through the preferredNetworks property, the result is the same.

The response is always null regardless of what we do.

I tested the functionality on iOS and it works fine there.

To Reproduce

This can be reproduced using the example folder from the project.

Steps to reproduce the behavior:

  1. Configure a CardField with preferredNetworks={[CardBrand.CartesBancaires, CardBrand.Visa]}
  2. Enter co-branded visa test card 4000002500001001
  3. Press Pay button
  4. Check server response which will contain "preferredNetwork": null

Expected behavior

The preferred network manually selected or the default provided through preferredNetworks property must be used

Screenshots

screenshot from emulator

image

screenshot from test server logs

image

Smartphone:

  • Device: Pixel 4 (emulator)
  • OS: Android 12.0 (S) - API 31

Additional context

  • @stripe/stripe-react-native = 0.38.4
@ja-mike-a
Copy link

I've the same issue in the Android SDK:
stripe/stripe-android#9210

@ipinto
Copy link

ipinto commented Oct 8, 2024

Same problem here! This bug was fixed on stripe-android a month ago. Please, could you take the fix to this repo to comply with the EU regulation?
Thanks!

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

3 participants