#omaradelp4er
1 messages · Page 1 of 1 (latest)
hey
you know that in my webhook i get the session th check its status right?
??
are you still here
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
Hi, sorry, Discord is busy right now.
ok
Could you please rephrase the question and give more context?
ok
in pic number 1 my webhook and you can see my code i get the session to make sure its status i logg it as you see in pic 2 and 3 is there any way i got the email and the data in the metadata from the session data in pic 2 and 3 to use it and store it in my data base?
So you want the Customer email and Checkout Sessions metadata from the checkout.session.completed event?
yes
You can access session.metadata: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-metadata
ok thanks
And you can expand the customer property to get the email: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer
Please, let me know if you have any other questions.