diff --git a/public/ts/pricing.ts b/public/ts/pricing.ts index 8dfd6e1..38c9032 100644 --- a/public/ts/pricing.ts +++ b/public/ts/pricing.ts @@ -45,7 +45,7 @@ document.addEventListener('app-loaded', async () => { return; } - window.location.href = `${window.app.STRIPE_MONTHLY_URL}?client_reference_id=${user.id}&customer_email=${ + window.location.href = `${window.app.STRIPE_MONTHLY_URL}?client_reference_id=${user.id}&prefilled_email=${ encodeURIComponent(user.email) }`; } @@ -61,7 +61,7 @@ document.addEventListener('app-loaded', async () => { return; } - window.location.href = `${window.app.STRIPE_YEARLY_URL}?client_reference_id=${user.id}&customer_email=${ + window.location.href = `${window.app.STRIPE_YEARLY_URL}?client_reference_id=${user.id}&prefilled_email=${ encodeURIComponent(user.email) }`; }