seandesmond / angular-payment

Native AngularJS (Angular) directives based heavily on Stripe's jQuery payment library. No 3rd party JS dependencies (jQuery, Stripe.js, etc.) required! http://seandesmond.github.io/angular-payment/
MIT License
51 stars 26 forks source link

Ability to bypass validation for a certain list of credit card numbers. #5

Open aalavandhan opened 9 years ago

aalavandhan commented 9 years ago

Certian services like Braspag require a test credit card number "0000 0000 0000 0001" to be used in their sandbox enviroment. I was unable to acomplish this with the current version of the plugin.

It would be great if the plugin supported this usecase.

<input card-number-validator 
           data-whitelist="['0000 0000 0000 0001']" 
           data-ng-model="ccNumber"  />