Skip to content

Commit

Permalink
* Fixes problem where card expiry would not be reset properly (see la…
Browse files Browse the repository at this point in the history
…urihy#19).

* Added main entry point for bower.
* Bumped version number.
  • Loading branch information
cubicleWar committed Apr 17, 2014
1 parent 3fdd4a0 commit 34ab8f3
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 34 deletions.
50 changes: 26 additions & 24 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{
"name": "ng-stripe-payments",
"version": "0.1.0",
"homepage": "https://github.com/cubicleWar/ng-stripe-payments",
"authors": [
"Trevor Walker <@cubicleWar>"
],
"description": "Directive for formatting and validating credit card forms, forked from laurihy/angular-payments",
"keywords": [
"stripe",
"stripe.js",
"stripejs",
"stripe-angular",
"stripeAngular",
"ng-stripe-payments",
"ngStripePayments"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
"name": "ng-stripe-payments",
"version": "0.1.1",
"homepage": "https://github.com/cubicleWar/ng-stripe-payments",
"authors": [
"Lauri Hynynen <@laurihy>",
"Trevor Walker <@cubicleWar>"
],
"main": "lib/ng-stripe-payments.js",
"description": "Directive for formatting and validating credit card forms, forked from laurihy/angular-payments",
"keywords": [
"stripe",
"stripe.js",
"stripejs",
"stripe-angular",
"stripeAngular",
"ng-stripe-payments",
"ngStripePayments"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
5 changes: 2 additions & 3 deletions lib/ng-stripe-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,6 @@ angular.module('ngStripePayments').directive('stripeForm', ['$window', '$parse',
button.prop('disabled', true);

if(form.hasClass('ng-valid')) {

$window.Stripe.createToken(_getDataToSend(scope), function() {
var args = arguments;
scope.$apply(function() {
Expand All @@ -804,8 +803,8 @@ angular.module('ngStripePayments').directive('stripeForm', ['$window', '$parse',
button.prop('disabled', false);
}

scope.expiryMonth = expMonthUsed ? scope.expMonth : null;
scope.expiryYear = expYearUsed ? scope.expMonth : null;
scope.expiryMonth = null;
scope.expiryYear = null;
});
}
};
Expand Down
Loading

0 comments on commit 34ab8f3

Please sign in to comment.