Encode referrer url param for stripe checkout

This commit is contained in:
jahooma 2022-01-07 18:51:16 -06:00
parent af6387bbf3
commit 44fa4f263b

View File

@ -9,5 +9,7 @@ export const checkoutURL = (
? 'https://us-central1-mantic-markets.cloudfunctions.net/createCheckoutSession' ? 'https://us-central1-mantic-markets.cloudfunctions.net/createCheckoutSession'
: 'https://us-central1-dev-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
)}`
} }