#brkbrkn
1 messages ยท Page 1 of 1 (latest)
Can you share a specific evt_xxx ID from your account your webhook has received?
how can i find evt_xx id ?
i am new to stripe
sorry
evt_1MU8rwLJbLq7rUzybCzP3vgT
it says succeed
but
there is no change in my server side. i mean "change" my code is not working. i want to send email when success for example but i cant see any email. you can review my code for details
Well, that's a checkout.session.completed event. The code you shared seems to only handle charge.succeeded events
wait
here is charge.succeed. i dont know why this not triggered but no problem. i can solve this problem buy change charge.succeed to checkout.session.completed in my code
but that's not all my problem. My second problem is that I can't pull the data I sent while creating the checkout.
Looking at your code, you're looking for line_items on the charge.succeeded event which won't exist
You need to switch the handling checkout.session.completed events first are foremost
I am sending some data while creating checkout as it can be seen here. but this data does not appear in the loop that comes with the webhook. https://prnt.sc/cPtlG4PZ_D03
i changed.
Ok, and what happened now if you trigger an event?
email successfully send. but i want to add my users credit
for this i need userdomain, product price and product name
but webhook didnt send this data
Hello ๐
Can you share the example event ID that you're looking at so that I am on the same page here?
The line_items field from the CHeckout Session object isn't included in the payload
You'll need to retrieve those separately from the API in your webhook: https://stripe.com/docs/api/checkout/sessions/line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sure, you can get it. See here: https://stripe.com/docs/payments/checkout/fulfill-orders#fulfill