#Wiktor_P
1 messages · Page 1 of 1 (latest)
Hello 👋
Can you share an example client-reference-id you're setting?
have you tried logging out $store.state.settings.user.pk and see if that prints the correct value in your console?
Also, the pricing table passes it to the Checkout Session’s client_reference_id property. Possible you're looking at the wrong object 🤔
It does print the correct value. it is a numerical ID as a string
that second part - https://stripe.com/docs/payments/checkout/pricing-table
It states here that client-reference-id is an id of a user in the backend structure. That's exactly what I am passing there
I am using djstripe for Django backend
I can clearly see that within the event that is creating a customer which is then passed into the webhook there is no metadata with that parameter
I think there's some misunderstanding here, I don't think client-reference-id is automatically added to customer metadata! It's only added to the Checkout Session object
Do you have an example checkout session ID?
Let me have a look in the dashboard
So it doesn't automatically create a Customer object if there isn't one with that client-reference-id as a "backend" model identifier?
I have just checked checkout.session.completed event and that client_reference_id is there! Finally I understand.
cs_test_a10mYWWZrSSgyYVs0fvulf6A1XctHt2VFASVLzfzut9G5OeITMNisxdoMw
thats the id
Ok I think I got it now
Thank you so much 🙂
NP! 🙂 Glad I could help clarify