diff --git a/ghost/stripe/lib/StripeAPI.js b/ghost/stripe/lib/StripeAPI.js index 009b28e051..68d98fa755 100644 --- a/ghost/stripe/lib/StripeAPI.js +++ b/ghost/stripe/lib/StripeAPI.js @@ -475,6 +475,7 @@ module.exports = class StripeAPI { automatic_tax: { enabled: this._config.enableAutomaticTax }, + customer_update: this._config.enableAutomaticTax ? {address: 'auto'} : {}, metadata, discounts, /* @@ -526,6 +527,7 @@ module.exports = class StripeAPI { automatic_tax: { enabled: this._config.enableAutomaticTax }, + customer_update: this._config.enableAutomaticTax ? {address: 'auto'} : {}, metadata, customer: customer ? customer.id : undefined, customer_email: !customer && customerEmail ? customerEmail : undefined,