boo1ean/casual

Invalid Cardtype Leads to Crash for card_number()

Atlowell opened this issue · 0 comments

Specifying an invalid card type (such as "visa" rather than "Visa") causes a crash. This is due to the statement on line 41 of payment.js not correctly checking for invalid parameters:

var mask = this.random_element(this.card_params[vendor]);