Skip to content

Invalid Cardtype Leads to Crash for card_number() #91

@Atlowell

Description

@Atlowell

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]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions