Stripe-ios: 7.0.1 credit card number entry skipping last four digits for some numbers

Created on 10 May 2016  路  4Comments  路  Source: stripe/stripe-ios

On 7.0.0 and 7.0.1, I'm seeing a card entry bug for certain Visa card numbers. When entering an affected number, the cursor will jump to the date field after completing the first three blocks of numbers instead of continuing to type in the . 4147 2589 1247 1216 is an example of an afflicted card number. (Not a real number, but passes the Luhn test so valid for purposes of this test. 4012888888881881 is another example, one of the Stripe sample cards.

As a user, I can tap on the card number to force the cursor to jump back to card entry, but the cursor should not be jumping forward to begin with.

I'm not sure how many card numbers this bug affects, but I could find failing numbers fairly easily, so I don't think it's a tiny outlier (and even if it is, still a major issue).

There are no code changes between the two versions in my recordings. This bug also occurs in the Stripe Custom example project in the repo.

Correctly working on 6.2.0

Failing on 7.0.1

Most helpful comment

OK @chrismanderson @RonKliffer - this should be fixed as of #339. I've also pushed a 7.0.2 version containing the fix. Thanks again for the bug report, and your patience!

All 4 comments

Thanks for the bug report, @chrismanderson. We added support for 13-digit Visa numbers (which are apparently a thing) in version 7.0.0. Unfortunately it seems that Visa numbers whose first 13 digits are themselves luhn valid will prematurely validate here.

I'm going to look and see if there are any additional identifying features of a 13-digit Visa card that would allow us to distinguish between these two cases. That'll inform what we can do about this.

Hi @jflinter
I'm experiencing this bug as well, in production.
Any eta for a fix or should I roll back to 6.2?

Hey @chrismanderson and @RonKliffer,
I think we've figured out a way to fix this on our end, and are aiming to have a fix by the end of the week. Thanks for your patience, and sorry for the trouble!

OK @chrismanderson @RonKliffer - this should be fixed as of #339. I've also pushed a 7.0.2 version containing the fix. Thanks again for the bug report, and your patience!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sumitmundra picture sumitmundra  路  5Comments

xuzhe picture xuzhe  路  3Comments

todesignandconquer picture todesignandconquer  路  5Comments

mansoorshahsaid picture mansoorshahsaid  路  4Comments

marcglasberg picture marcglasberg  路  7Comments