diff --git a/ghost/members-api/lib/services/stripe-webhook.js b/ghost/members-api/lib/services/stripe-webhook.js index eadd03165b..8b615bc8d1 100644 --- a/ghost/members-api/lib/services/stripe-webhook.js +++ b/ghost/members-api/lib/services/stripe-webhook.js @@ -155,6 +155,9 @@ module.exports = class StripeWebhookService { * @returns {Promise} */ async invoiceEvent(invoice) { + if (!invoice.subscription) { + return; + } const subscription = await this._stripeAPIService.getSubscription(invoice.subscription, { expand: ['default_payment_method'] });