Skip to content

Commit

Permalink
Fix payment link prefilled email argument
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Sep 12, 2023
1 parent 08e661e commit 4222b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/ts/pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}`;
}
Expand All @@ -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)
}`;
}
Expand Down

0 comments on commit 4222b61

Please sign in to comment.