SwiftLuhn icon indicating copy to clipboard operation
SwiftLuhn copied to clipboard

Support Unionpay

Open limsangjin12 opened this issue 5 years ago • 1 comments

The PR should summarize what was changed and why. Here are some questions to help you if you're not sure:

  • What behavior was changed? Added Unionpay card type.

Checklist - While not every PR needs it, new features should consider this list:

  • [x] Does this have tests?
  • [ ] Does this have documentation?
  • [ ] Does this break the public API (Requires major version bump)?
  • [x] Is this a new feature (Requires minor version bump)?

limsangjin12 avatar Apr 04 '19 13:04 limsangjin12

Hi @limsangjin12 thanks for the PR, sorry I didn't see this sooner. I can't find much in terms of validation methods for this kind of card other than it starting with 62 and being 16-19 digits long, which doesn't match the regex that you supplied. Please could you confirm?

Ref: https://www.getnewidentity.com/unionpay-credit-card.php https://www.six-payment-services.com/dam/download/datasheets/110004302_DS_SecurityFeatures_UnionPay_INT_EN_opt.pdf

maxkramer avatar May 24 '19 11:05 maxkramer