#Peter504-emails
1 messages · Page 1 of 1 (latest)
I can help! When you say Checkout, are you referring to Stripe's Checkout feature, or your own custom solution?
stripes checkout feature
Gotcha, you can find the customer's email at customer_email on the Checkout Session object. https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_email
If you wanted to send an email after payment is complete you could listen for the checkout.session.completed webhook event, and then grab the customer_email from the Checkout Session object in the event
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok thanks, but my website needs to be uploaded to the internet to use webhooks and I still just developing it
You can always test out webhooks locally - you can find a guide on how to do so here: https://stripe.com/docs/webhooks/test