jondavidjohn / payform

:credit_card: A library for building credit card forms, validating inputs, and formatting numbers.
https://jondavidjohn.github.io/payform/
Other
427 stars 81 forks source link

Amex credit card validation failure #33

Closed liamfl closed 6 years ago

liamfl commented 6 years ago

Hi,

My credit card service provider has given me some test card numbers and the Amex card number is failing validation... is this an error with payform?

The number is 34343434343434

Thanks Liam

jondavidjohn commented 6 years ago

Amex card numbers are normally 16 digits, looks like you have a bad card number.

liamfl commented 6 years ago

Thanks for coming back to me so quickly - we’re the old ones 15 digit? There’s a lo of test cards on the web, and the pictures on the Amex website are all 15 digits.

Thanks Liam


From: Jonathan D. Johnson notifications@github.com Sent: Thursday, December 7, 2017 5:23:33 PM To: jondavidjohn/payform Cc: Liam Flavelle; Author Subject: Re: [jondavidjohn/payform] Amex credit card validation failure (#33)

Closed #33https://github.com/jondavidjohn/payform/issues/33.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jondavidjohn/payform/issues/33#event-1377367530, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHi5DfOnoOnH136oXsi77ObiUEpPRUjpks5s-B8VgaJpZM4Q55hr.

jondavidjohn commented 6 years ago

The card you provided is 14

liamfl commented 6 years ago

That would explain it, and thanks for not calling me a insert favoured swear word here .

Love the library BTW.

Thanks Liam


From: Jonathan D. Johnson notifications@github.com Sent: Thursday, December 7, 2017 5:38:29 PM To: jondavidjohn/payform Cc: Liam Flavelle; Author Subject: Re: [jondavidjohn/payform] Amex credit card validation failure (#33)

The card you provided is 14

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jondavidjohn/payform/issues/33#issuecomment-350040603, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHi5DUSkE3N3YEIDuhvDm5zyC1Pt9g_6ks5s-CKVgaJpZM4Q55hr.