Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

AMEX CVC authentication #15

Closed
mrmonopoly237 opened this issue Jun 17, 2013 · 7 comments
Closed

AMEX CVC authentication #15

mrmonopoly237 opened this issue Jun 17, 2013 · 7 comments

Comments

@mrmonopoly237
Copy link

The AMEX CVC authentication completes after the entry of the 3rd number.

@maccman
Copy link
Contributor

maccman commented Jun 18, 2013

3 digit Amex CVCs are valid. Amex CVCs can be 3 or 4 digits.

@maccman maccman closed this as completed Jun 18, 2013
@mrmonopoly237
Copy link
Author

Totally didn't know that, thank you.

However, it appears that the delegate call back on PKView only happens after the third digit is entered. If the user enters a 4th digit there is no call-back or indication that this has happened.

@sebbean
Copy link

sebbean commented Jul 29, 2013

3 digit amex's are valid - but stopping at the 3rd digit makes 4 digit amex' cvc's impossible to type in.

the keyboard is dismissed at the 3rd digit even if it's an amex (and could possibly have a 4th digit)

This is definitely still an open issue

@sebbean
Copy link

sebbean commented Jul 29, 2013

Also, are you sure AmEx currently issues cards with 3 digit codes?

Light googling returned:

http://www.cvvnumber.com/cvv.html

American Express® cardholders:
Look for the 4-digit code printed on the front of your card just above and to the right of your main credit card number. This 4-digit code is your Card Identification Number (CID). The CID is the four-digit code printed just above the Account Number.

@maccman
Copy link
Contributor

maccman commented Jul 30, 2013

However, it appears that the delegate call back on PKView only happens after the third digit is entered. If the user enters a 4th digit there is no call-back or indication that this has happened.

@michaelvillar ?

@maccman maccman reopened this Jul 30, 2013
@sebbean
Copy link

sebbean commented Jul 30, 2013

this seems to fix it (in PKView.m ~line 266)

Sorry - new to pull-requests n what not, meant to do it that way.

- (BOOL)isValid
{    
    return [self.cardNumber isValid] && [self.cardExpiry isValid] &&
           [self.cardCVC isValidWithType:[[PKCardNumber cardNumberWithString:cardNumberField.text] cardType]];
}

@michaelvillar
Copy link
Contributor

@sebbean AMEX have 3 digits code as well.

Here is the fix d6f9f94

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

No branches or pull requests

4 participants