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
|
@ -278,7 +278,6 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
|
|||
var email = planService.getEmail(orgname);
|
||||
StripeCheckout.open({
|
||||
key: KeyService.stripePublishableKey,
|
||||
address: false,
|
||||
email: email,
|
||||
currency: 'usd',
|
||||
name: 'Update credit card',
|
||||
|
@ -286,6 +285,8 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
|
|||
panelLabel: 'Update',
|
||||
token: submitToken,
|
||||
image: 'static/img/quay-icon-stripe.png',
|
||||
billingAddress: true,
|
||||
zipCode: true,
|
||||
opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
|
||||
closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
|
||||
});
|
||||
|
@ -359,7 +360,6 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
|
|||
var email = planService.getEmail(orgname);
|
||||
StripeCheckout.open({
|
||||
key: KeyService.stripePublishableKey,
|
||||
address: false,
|
||||
email: email,
|
||||
amount: planDetails.price,
|
||||
currency: 'usd',
|
||||
|
@ -368,6 +368,8 @@ function(KeyService, UserService, CookieService, ApiService, Features, Config) {
|
|||
panelLabel: opt_title || 'Subscribe',
|
||||
token: submitToken,
|
||||
image: 'static/img/quay-icon-stripe.png',
|
||||
billingAddress: true,
|
||||
zipCode: true,
|
||||
opened: function() { $scope.$apply(function() { callbacks['opened']() }); },
|
||||
closed: function() { $scope.$apply(function() { callbacks['closed']() }); }
|
||||
});
|
||||
|
|
Reference in a new issue