angular-payments icon indicating copy to clipboard operation
angular-payments copied to clipboard

removed stripe.js dep

Open boxxxie opened this issue 11 years ago • 2 comments

can we just $http? from what I understand your code that deals with stripe is only making 1 http call. stripe has a documented HTTP API.

would you accept a PR that replaces the $window.Stripe with $http?

i'm interested in this for testing purposes using $httpbackend.

boxxxie avatar Feb 27 '14 19:02 boxxxie

Actually, I'm in need of payment validators (credit card, cvc, expiry etc) and seeing that this requires stripe.js and adds a directive for that. I have no idea what stripe is and will never use it and wonder if perhaps this project can be split into two. I'm sure there are many people who just want card validation etc. All I'm seeing regarding StripeJS is the one form directive.

intellix avatar Apr 09 '14 15:04 intellix

On that note, I've added a validator library that takes the card/cvc validators from here. https://github.com/intellix/angular-validators. I suppose still to do is take the formatters (spacing between each 4-digits etc)... but it's properly jshinted, tested and isn't littered to hell with globals

intellix avatar Sep 02 '14 13:09 intellix