Collect billing address on credit card operations.

This commit is contained in:
Jake Moshenko 2016-07-08 10:32:08 -04:00
parent 4bb24e8ff9
commit af37f44c84

View file

@ -278,7 +278,6 @@ 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',
@ -286,6 +285,8 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
panelLabel: 'Update', panelLabel: 'Update',
token: submitToken, token: submitToken,
image: 'static/img/quay-icon-stripe.png', image: 'static/img/quay-icon-stripe.png',
billingAddress: true,
zipCode: true,
opened: function() { $scope.$apply(function() { callbacks['opened']() }); }, opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
closed: function() { $scope.$apply(function() { callbacks['closed']() }); } closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
}); });
@ -359,7 +360,6 @@ 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,
amount: planDetails.price, amount: planDetails.price,
currency: 'usd', currency: 'usd',
@ -368,6 +368,8 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
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,
zipCode: true,
opened: function() { $scope.$apply(function() { callbacks['opened']() }); }, opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
closed: function() { $scope.$apply(function() { callbacks['closed']() }); } closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
}); });