#Wiktor_P

1 messages · Page 1 of 1 (latest)

high martenBOT
obsidian trellis
#

Hello 👋
Can you share an example client-reference-id you're setting?

sharp perch
#

it is a string value

#

does that help?

obsidian trellis
#

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 🤔

sharp perch
#

It does print the correct value. it is a numerical ID as a string

#

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

high martenBOT
obsidian trellis
#

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?

sharp perch
#

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 🙂

obsidian trellis
#

NP! 🙂 Glad I could help clarify