This section of the course is all about refunds, and, of course, you can refund things from the stripe
dashboard.
So I'm logged into my stripe account right now and I'm viewing test data.
And if I go to payments, I can choose a payment like this one, click anywhere on it and say I want
a refund that and I just click the refund button and that's great.
But of course, doing it this way means that as far as we're concerned, on our own dashboard, on our
own application, that's still a valid payment and it can be refunded and we have no way of knowing
that it's been refunded.
Now, there are a number of ways of handling this.
You could set up a straight hook, which is just a web hook.
And any time a refund or a payment takes place, you fire off, request your own API and handle it that
way.
We're not going to do it that way.
What I want to do instead is for the next few lectures, implement refunds right on our own application
and it's really not that difficult.
It'll take less than one hundred lines of code.
So let's get started.