#_Hh
1 messages · Page 1 of 1 (latest)
Hi there!
We have a setting in the dashboard to automatically send email to the customer:
But if you want to customize the email or send it to a different address, then that's something that you'll have to build on your end
Can that be done through using your apis, webhook and nodemailer ?
There's not Stripe API to send email. But yes you can listen to webhook event and use a third party API to send emails to customer.
Can I use a trigger alongside it like payment succeeded ?
Yes, by listening to the payment_intent.succeeded webhook event for example.
Which event you should listen to depends on exactly what type of email you want to send.
Do I have to use ngrok with the webhooks ? Or can I used something else
Why do you want to use ngrok? You mean for testing your webhook locally?
We have the Stripe CLI for this: https://stripe.com/docs/cli
In production you create a real webhook endpoint in your dashboard https://dashboard.stripe.com/test/webhooks