mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05: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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue