SwiftLuhn
SwiftLuhn copied to clipboard
Support Unionpay
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)?
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