WEBVTT 00:02.000 --> 00:07.730 This section of the course is all about refunds, and, of course, you can refund things from the stripe 00:07.730 --> 00:08.320 dashboard. 00:08.330 --> 00:11.680 So I'm logged into my stripe account right now and I'm viewing test data. 00:11.690 --> 00:17.390 And if I go to payments, I can choose a payment like this one, click anywhere on it and say I want 00:17.390 --> 00:20.720 a refund that and I just click the refund button and that's great. 00:21.260 --> 00:27.200 But of course, doing it this way means that as far as we're concerned, on our own dashboard, on our 00:27.200 --> 00:33.260 own application, that's still a valid payment and it can be refunded and we have no way of knowing 00:33.260 --> 00:34.320 that it's been refunded. 00:35.180 --> 00:37.280 Now, there are a number of ways of handling this. 00:37.280 --> 00:40.670 You could set up a straight hook, which is just a web hook. 00:40.670 --> 00:47.510 And any time a refund or a payment takes place, you fire off, request your own API and handle it that 00:47.510 --> 00:47.740 way. 00:47.960 --> 00:49.020 We're not going to do it that way. 00:49.040 --> 00:54.890 What I want to do instead is for the next few lectures, implement refunds right on our own application 00:54.890 --> 00:56.460 and it's really not that difficult. 00:56.480 --> 00:58.490 It'll take less than one hundred lines of code. 00:58.700 --> 00:59.570 So let's get started.