Collect billing address on credit card operations.
This commit is contained in:
parent
4bb24e8ff9
commit
af37f44c84
1 changed files with 25 additions and 23 deletions
|
@ -277,17 +277,18 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
|
||||||
|
|
||||||
var email = planService.getEmail(orgname);
|
var email = planService.getEmail(orgname);
|
||||||
StripeCheckout.open({
|
StripeCheckout.open({
|
||||||
key: KeyService.stripePublishableKey,
|
key: KeyService.stripePublishableKey,
|
||||||
address: false,
|
email: email,
|
||||||
email: email,
|
currency: 'usd',
|
||||||
currency: 'usd',
|
name: 'Update credit card',
|
||||||
name: 'Update credit card',
|
description: 'Enter your credit card number',
|
||||||
description: 'Enter your credit card number',
|
panelLabel: 'Update',
|
||||||
panelLabel: 'Update',
|
token: submitToken,
|
||||||
token: submitToken,
|
image: 'static/img/quay-icon-stripe.png',
|
||||||
image: 'static/img/quay-icon-stripe.png',
|
billingAddress: true,
|
||||||
opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
|
zipCode: true,
|
||||||
closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
|
opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
|
||||||
|
closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -358,18 +359,19 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
|
||||||
planService.getPlan(planId, function(planDetails) {
|
planService.getPlan(planId, function(planDetails) {
|
||||||
var email = planService.getEmail(orgname);
|
var email = planService.getEmail(orgname);
|
||||||
StripeCheckout.open({
|
StripeCheckout.open({
|
||||||
key: KeyService.stripePublishableKey,
|
key: KeyService.stripePublishableKey,
|
||||||
address: false,
|
email: email,
|
||||||
email: email,
|
amount: planDetails.price,
|
||||||
amount: planDetails.price,
|
currency: 'usd',
|
||||||
currency: 'usd',
|
name: 'Quay ' + planDetails.title + ' Subscription',
|
||||||
name: 'Quay ' + planDetails.title + ' Subscription',
|
description: 'Up to ' + planDetails.privateRepos + ' private repositories',
|
||||||
description: 'Up to ' + planDetails.privateRepos + ' private repositories',
|
panelLabel: opt_title || 'Subscribe',
|
||||||
panelLabel: opt_title || 'Subscribe',
|
token: submitToken,
|
||||||
token: submitToken,
|
image: 'static/img/quay-icon-stripe.png',
|
||||||
image: 'static/img/quay-icon-stripe.png',
|
billingAddress: true,
|
||||||
opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
|
zipCode: true,
|
||||||
closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
|
opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
|
||||||
|
closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue