#Believe-webhook
1 messages · Page 1 of 1 (latest)
evt_3L8alpLH0FBzmoBK1vh0Zimd
Thanks, this event was not delivered successful. Your endpoint responds 500 instead of 200, you should check you endpoint.
yeah. my code accesses the metadata tag and there's nothing in it
so it's throwing an error
The paymentIntent doesn't carry the price info. I'd suggest you to set it to the metadata hash
i've tried editing the metadata of both the product and the payment link and they're not showing up in the event
that's in the product
Are you using paymentLink or checkoutsession?
are you talking about the event type?
Nope, I mean where did you set the metadata to?
i just went to where i made the product and edited the metadata
OK. I see you are using paymentLink
Then you should listen to checkout.session.completed event, from there you can get the line_items, and the price.
Based on the price you will know what product someone has paid for.
all the prices are the same though
i also don't see key in checkout.session.completed that is called 'line_items'
WAIT
the metadata is in there
i got it
thank you
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
this is the line_items that I'm talking about
btw, is the metadata in checkout.session.completed from payment link or from product?
Can you send me the event ID?