#modestmouse1
1 messages · Page 1 of 1 (latest)
hello
i hope this is the right place to ask. When a payment fails. I want Stripe to send an email to my business address.
Pretty much in the exact same way, when a new customer signs up i get an email saying "new customer signed up". I would like to notification through email when a customer has failed all their payment retries so i can send them an email asking them to sign up again
what is the technical difficulty to this?
Hi, this is the correct place, welcome.
fantastic
is this something that can be solved by myself or will i need an expert?
I am willing to look through user guides but could not find anything that seemed to match this requests, some recommendations on articles to read / youtube videos to watch to help solve this problem
if you feel this is too difficult, what would it cost to get a programmer to do this for me
i feel like it is a small job but i could be wrong 😛
I think what you're looking for is going to be solved by you setting a webhook endpoint for certain events. Here is the guidance, https://stripe.com/docs/webhooks/quickstart and here are the list of events you could listen to: https://stripe.com/docs/api/events/list
Particularly, you'd want to listen to Payment Intent failed event; https://stripe.com/docs/api/events/types#event_types-payment_intent.payment_failed
Then from these webhooks, you can trigger an email from your end.
yes i have set that up
i have on my stripe on the developer tab "listening for 2 events" these events are the ones that i am looking for
invoice.payment_action_required
invoice.payment_failed
How would i / where could i learn how to create a trigger to email me when this comes up
That would be on your own code and you'd build this on your end. Once you receive these events, you can add that logic.
is there any guides on how to do that?
or get in contact with people who know how
I have code snippets in PHP but i dont know how to make it work with stripe
There is not. This is outside of Stripe product offering