#romas
1 messages · Page 1 of 1 (latest)
hi! what specific field are you looking at and not seeing a value that you expect?
I'am setting user_id in checkout_session metadata. After payment complete, I expect that this metadata value persist in .completed hook
it should overall. Do you have an example evt_xxx event ID where that didn't happen so I can have a look?
hold on
Here is what I see in Webhook log. we_1MdW4TIv69CWvx5UzQ2zvQzw
evt_1MdYdVIv69CWvx5UTlF6gY8C
you did not set the metadata on the CheckoutSession, you set it on the Price
https://dashboard.stripe.com/test/logs/req_4lbV3Bcqm831mW it's a field of the Product created under the Price, so to get that you will need to retrieve the line_items and Price/Product
this blog has some good docs on doing that https://dev.to/stripe/purchase-fulfilment-with-checkout-or-wait-what-was-i-paid-for-335d