From 4222b61b7ca32acaa1d3c8890fa9ab6c122767f7 Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Tue, 12 Sep 2023 18:48:11 +0100 Subject: [PATCH] Fix payment link prefilled email argument --- public/ts/pricing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }`; }