#Senhor-checkout-webhook

1 messages · Page 1 of 1 (latest)

cursive widget
#

hello

#

you listen to the checkout.session.completed webhook event right?

you're doing a one time payment, is that right? or a Subscription?

mild jacinth
#

@dawn pewter Hi! I reopened your thread.

dawn pewter
#

hi

#

thanks

#

i am doing a subscription by the way

mild jacinth
dawn pewter
#

Perfect

#

thank you very much

#

i am listening to the event but the data is undefined

mild jacinth
dawn pewter
#

so i listen for the webhook event but i don't read the data from the webhook payload, but i have to fetch it by get call?

#

what's the use of the webhook data ?

mild jacinth
#

so i listen for the webhook event but i don't read the data from the webhook payload, but i have to fetch it by get call?
In this case, yes

#

what's the use of the webhook data ?
In many cases the webhook payload contains what you need. Unfortunately it doesn't contain the line_items so you need to make an extra API call in this case

dawn pewter
#

Ok so i had a bug in my code where i was accessing data in the wrong way

#

i see it gives me the id of the session

#

and from this point on i'll use your solution