mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
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:
parent
6c204b4c42
commit
aa89fe55e0
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user