From aa89fe55e08b81635b11ac148b37531cbe7534e2 Mon Sep 17 00:00:00 2001 From: Fabien 'egg' O'Carroll Date: Thu, 27 Oct 2022 11:00:21 +0700 Subject: [PATCH] Fixed Stripe Checkout not having the email prefilled from Portal (#15703) We need to pass the customerEmail param along so that Stripe Checkout will prefill it for us, this was missed in the refactor. --- ghost/members-api/lib/controllers/router.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/members-api/lib/controllers/router.js b/ghost/members-api/lib/controllers/router.js index 2914fa3958..90b3ddd5fe 100644 --- a/ghost/members-api/lib/controllers/router.js +++ b/ghost/members-api/lib/controllers/router.js @@ -259,6 +259,7 @@ module.exports = class RouterController { options.successUrl = req.body.successUrl; options.cancelUrl = req.body.cancelUrl; + options.email = req.body.customerEmail; if (!member && req.body.customerEmail && !req.body.successUrl) { options.successUrl = await this._magicLinkService.getMagicLink({