From 44fa4f263b3389e0cdaf92ec59a5a8ed25916288 Mon Sep 17 00:00:00 2001 From: jahooma Date: Fri, 7 Jan 2022 18:51:16 -0600 Subject: [PATCH] Encode referrer url param for stripe checkout --- web/lib/service/stripe.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/lib/service/stripe.ts b/web/lib/service/stripe.ts index a5f6c4a0..3d69c284 100644 --- a/web/lib/service/stripe.ts +++ b/web/lib/service/stripe.ts @@ -9,5 +9,7 @@ export const checkoutURL = ( ? 'https://us-central1-mantic-markets.cloudfunctions.net/createCheckoutSession' : 'https://us-central1-dev-mantic-markets.cloudfunctions.net/createCheckoutSession' - return `${endpoint}?userId=${userId}&manticDollarQuantity=${manticDollarQuantity}&referer=${referer}` + return `${endpoint}?userId=${userId}&manticDollarQuantity=${manticDollarQuantity}&referer=${encodeURIComponent( + referer + )}` }