Closed lauterry closed 5 years ago
Yes. This seems wrong. Arguably there is no sense in calling the method at all in these scenarios, but the code needs to be more defensive about this. I'll have it fixed.
Do you mean that I should not use this method for my scenario ?
Until it's fixed, it's indeed better to check for empty string and undefined in your own integration before calling the method.
Yes this is what I have done until the fix is shipped :)
Hi
Any news on this issue ?
Hello
In the file
addOns.adyen.cardType.js
line 61Cards.determine("")
andCards.determine(undefined)
returns "mc".I think this is not the expected behavior, right ?
If I'm wrong, please explain me why ?
I use this method to detect the cardType and show an icon in the input field depending on the credit card number
Best regards