#brkbrkn

1 messages ยท Page 1 of 1 (latest)

golden ermineBOT
charred aurora
#

Can you share a specific evt_xxx ID from your account your webhook has received?

tawny sinew
#

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

charred aurora
#

Well, that's a checkout.session.completed event. The code you shared seems to only handle charge.succeeded events

tawny sinew
#

wait

tawny sinew
#

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.

charred aurora
#

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

tawny sinew
#

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

Lightshot

Captured with Lightshot

charred aurora
#

Ok, and what happened now if you trigger an event?

tawny sinew
#

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

fresh eagle
#

Hello ๐Ÿ‘‹
Can you share the example event ID that you're looking at so that I am on the same page here?

charred aurora
#

The line_items field from the CHeckout Session object isn't included in the payload

tawny sinew
#

but i need this datas

#

when user successfully pay, i need add credit

charred aurora