#Daniele-metadata-checkout

1 messages ยท Page 1 of 1 (latest)

hexed maple
#

Hello ๐Ÿ‘‹
do you have a request id that I can take a look at?

scarlet matrix
#

session object

#

webhook example: we_1K1zOgGGvSAAHahBqLLu3Py6

#

(it's live)

#

in the checkout session response i can also see the metadata being there, but they're nowhere in the webhooks

hexed maple
#

hmm interesting!
looking into it

#

can you share the event ids for those webhook events?

#

should look something like evt_123

scarlet matrix
#

evt_1KEFbgKb2X7rAeMbo8t7qA80

hexed maple
#

thanks

scarlet matrix
#

also the subscription created has no metadata itself

#

we're looking to launch subscriptions with stripe and we process over 25.000$ daily, i'm not sure how this can happen as it seemed to be working fine a few days ago

hexed maple
#

looking into it

scarlet matrix
#

@hexed maple found the reason
the metada is available only on the line object when passed through the session create subscription_data

#

every other field seems to be not used for some reason, so the only way to pass metadata through a checkout session is by using the session.subscription_data.metadata object

#

so yeah, just changed the field to that

hexed maple
#

I was reading about that when you figured it out ๐Ÿ˜„ haha
glad you found it

scarlet matrix
#

thanks, have a great day