Skip to content

2co.js should check if params are parsed before parsing #3

@bennypowers

Description

@bennypowers

2co.js' requestToken method aggressively parses it's params. If the client passes credit card or cvv number as type Number, the library will fail:

a.cvv.replace is not a function

2co.js should check if params are of type Number before parsing, then validate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions