#Timo-event
1 messages · Page 1 of 1 (latest)
Hi! To be notified when an event happens on your Stripe account (like someone paying), you should use webhook. You can learn more about this here: https://stripe.com/docs/webhooks
I've read that, but I don't understand how to set up a webhook or how to use the provided code in my code because I can't import all the stuff from that code.
Have you seen the interactive webhook builder? There's one version in Java: https://stripe.com/docs/webhooks/quickstart
No
So I don't have to setup webhooks outside of my application?
If you want to be notified of Stripe events, you need to setup a webhook event handler on your servers. The link I shared is an interactive tutorials showing you how to set one up in Java.
Oh so if I understand you correctly, I can just setup a server in my java application?
Yes! You need a webserver (so that Stripe can send you the events). And you can do that in Java (or Ruby, Node, PHP, etc.)
I recommend reading the link I shared to you earlier to better understand how this works: https://stripe.com/docs/webhooks/quickstart