From 7e9b2d4883c3c287d2cff78a30a7b29df2573b10 Mon Sep 17 00:00:00 2001 From: Sag Date: Thu, 3 Aug 2023 22:45:57 +0200 Subject: [PATCH] Fixed donations checkout for logged-off readers (#17589) closes https://github.com/TryGhost/Product/issues/3663 --- ghost/stripe/lib/StripeAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/stripe/lib/StripeAPI.js b/ghost/stripe/lib/StripeAPI.js index 34caa99bb2..1b2b2c5b39 100644 --- a/ghost/stripe/lib/StripeAPI.js +++ b/ghost/stripe/lib/StripeAPI.js @@ -519,7 +519,7 @@ module.exports = class StripeAPI { }, metadata, customer: customer ? customer.id : undefined, - customer_email: customer ? undefined : customerEmail, + customer_email: !customer && customerEmail ? customerEmail : undefined, submit_type: 'donate', invoice_creation: { enabled: true,