credit-card-type icon indicating copy to clipboard operation
credit-card-type copied to clipboard

Remove spaces to accurately match a unionpay card type

Open radar opened this issue 5 months ago • 0 comments

I noticed an issue today where a card entered with the prefix 6222 8212, that is including spaces, matched as a maestro card, but should've instead matched as a union pay card. I suspect this might be a wider issue than just these two types. I think to accurately match the types we should be removing the spaces, as they have no bearing on card type.

radar avatar Aug 29 '24 01:08 radar