From 68c9582ff46665e2de723e634e592fdfb26e03ff Mon Sep 17 00:00:00 2001 From: Holly Stotelmyer Date: Fri, 28 Apr 2023 11:41:52 -0500 Subject: [PATCH] Clarify design decision on UnionPay This came out of #112, I thought we might document our design decision a little better. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 573de72..cf654bc 100644 --- a/README.md +++ b/README.md @@ -386,6 +386,7 @@ valid.creditCardType.addCard({ - The default maximum expiration year is 19 years from now. - `valid.expirationDate` will only return `month:` and `year:` as strings if the two are valid, otherwise they will be `null`. - Since non-US postal codes are alpha-numeric, the `postalCode` will allow non-number characters to be used in validation. +- Not all UnionPay cards are luhn valid; therefore we opted to accept as many UnionPay cards by ignoring luhn checks by default ## Development