wangjohn / creditly

An intuitive credit card form
http://wangjohn.github.io/creditly/
MIT License
299 stars 59 forks source link

Allow to pass null as cvvSelector, cardTypeSelector parameter #9

Closed gyugyu closed 10 years ago

gyugyu commented 10 years ago

TypeError is thrown when null is passed as cvvSelector. So, allow to pass null as cvvSelector and cardTypeSelector parameter.

var creditly = Creditly.initialize(
    '.creditly-wrapper .expiration-month-and-year',
    '.creditly-wrapper .credit-card-number',
    null,
    '.creditly-wrapper .card-type'
);
wangjohn commented 10 years ago

Thanks for the PR!