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

UnionPay marked as invalid on iOS #1759

Closed
sumitmundra opened this issue Feb 4, 2021 · 5 comments
Closed

UnionPay marked as invalid on iOS #1759

sumitmundra opened this issue Feb 4, 2021 · 5 comments
Assignees
Labels
triaged Issue has been reviewed by Stripe and is being tracked internally

Comments

@sumitmundra
Copy link

sumitmundra commented Feb 4, 2021

When entering a UnionPay card number (e.g 6200000000000005) on iOS the form mark it as invalid where on Android it is marked as valid

STPPaymentCardTextField().isValid Give invalid

SDK version : 21.2.1

Simulator Screen Shot - iPhone 8 - 2021-02-04 at 14 44 09

Summary

Code to reproduce

iOS version

iOS 13 and iOS 14

Installation method

cocoapods

SDK version

SDK version : 21.2.1

Other information

@csabol-stripe csabol-stripe added the triaged Issue has been reviewed by Stripe and is being tracked internally label Feb 5, 2021
@csabol-stripe csabol-stripe self-assigned this Feb 5, 2021
@csabol-stripe
Copy link
Contributor

Thanks for the report @sumitmundra. This behavior should be specific to Stripe's test cards which are handled differently than live cards, but I have a fix for this that we'll include in the next release. In the meantime if you are interested in testing 19 digit UnionPay card support you can try 6205500000000000004

@cythb
Copy link
Contributor

cythb commented Feb 10, 2021

@csabol-stripe Hi, I have the same problem. Now is there a way for me to test the 16 digit UnionPay card?

@cythb
Copy link
Contributor

cythb commented Feb 10, 2021

I use this card to test 6205500000000000004, but I got this error:
Xnip2021-02-10_15-25-44

@csabol-stripe
Copy link
Contributor

Ah my fault @cythb I forgot that the test card number I shared above isn't enabled for all accounts :\ I'll look into finding a test card number that should work but this may have to wait until our next release

@davidme-stripe
Copy link
Contributor

This is fixed in 21.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issue has been reviewed by Stripe and is being tracked internally
Projects
None yet
Development

No branches or pull requests

4 participants