#Believe-webhook

1 messages · Page 1 of 1 (latest)

tall acorn
#

Hi there, can you share with me the webhook event ID?

onyx marten
#

evt_3L8alpLH0FBzmoBK1vh0Zimd

tall acorn
#

Thanks, this event was not delivered successful. Your endpoint responds 500 instead of 200, you should check you endpoint.

onyx marten
#

yeah. my code accesses the metadata tag and there's nothing in it

#

so it's throwing an error

tall acorn
#

The paymentIntent doesn't carry the price info. I'd suggest you to set it to the metadata hash

onyx marten
#

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

tall acorn
#

Are you using paymentLink or checkoutsession?

onyx marten
#

are you talking about the event type?

tall acorn
#

Nope, I mean where did you set the metadata to?

onyx marten
#

i just went to where i made the product and edited the metadata

tall acorn
#

OK. I see you are using paymentLink

onyx marten
#

i did that too

#

i tried that first and it didn't seem to work

tall acorn
#

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.

onyx marten
#

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

tall acorn
#

this is the line_items that I'm talking about

onyx marten
#

btw, is the metadata in checkout.session.completed from payment link or from product?

tall acorn
#

Can you send me the event ID?