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.
This commit is contained in:
Fabien 'egg' O'Carroll 2022-10-27 11:00:21 +07:00 committed by GitHub
parent 6c204b4c42
commit aa89fe55e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({