#zerosodium_pricing-table-traffic-attribution
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1305664530684186764
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello. All the potential parameters that will be copied over to the Checkout Session are documented here: https://docs.stripe.com/no-code/pricing-table
Although they are split out among different potential optional features. I do wish we had those organized in a way that is easier to see. Unfortunately utm-source is not a parameter we accept
ok bummer, not seeing a good attribute for this - is there anything else you reccomend?
const session = await stripe.customerSessions.create({
customer: user.stripe_customer_id,
components: {
pricing_table: {
enabled: true,
},
},
});
probably here I assume?
Unfortuntaly no, we don't allow passing other details in the Customer Session either: https://docs.stripe.com/api/customer_sessions/create
I will flag this for a feature request. I think we should allow metadata
cool, that would be great. I can prob do some janky things and pass query params on my customer inside client-reference-id but that's all I got right now
As a work-around for you, what I would do is record the clientReferenceId value along with the value from localStorage.getItem('isFromGoogleAds') so you can link that back to the Checkout Session
yep sounds good. thx! hope ya'll get around to this ๐