WEBVTT 00:00.710 --> 00:06.980 So in the last lecture, I said, I talk about this part, the bronze plan and our MICRA service in 00:06.980 --> 00:10.160 the next lecture, and this time around, I want to give you a bit of a challenge. 00:10.550 --> 00:15.680 If you recall in the last lecture, I said, well, I'm going to make that function, create and send 00:15.680 --> 00:18.350 invoice in the handler's file. 00:18.620 --> 00:22.310 I'm going to make that a function because I'm going to call it again when we subscribe to the bronze 00:22.310 --> 00:22.580 plan. 00:22.610 --> 00:23.950 But of course, that's not accurate. 00:24.710 --> 00:28.910 When we did the bronze plan, we actually did everything on the back end. 00:28.910 --> 00:34.190 And that's OK, because in the front end, you might be calling that create and send invoice micro service 00:34.190 --> 00:34.940 from somewhere else. 00:34.940 --> 00:36.880 And it makes sense to put it in its own function. 00:37.700 --> 00:43.220 But this time around, I'm going to ask you to implement that same functionality on our back end. 00:43.250 --> 00:49.070 So when someone completes the purchase of this bronze plan, they pay, they click the button and of 00:49.070 --> 00:53.210 course, they're going to get charged twenty dollars right away and then twenty dollars the next month 00:53.210 --> 00:55.130 and the month after that and so on and so forth. 00:55.550 --> 00:56.690 But we'll send them an invoice. 00:56.720 --> 01:00.920 I'm going to ask you to implement that functionality on our backend. 01:00.920 --> 01:02.290 And it's not terribly difficult. 01:02.960 --> 01:08.270 The one thing I will draw to your attention, of course, is that when you're filling out the type which 01:08.270 --> 01:12.830 I called invoice on the front end and you're filling in the amount, you're just going to want to type 01:13.010 --> 01:19.820 20 dollars, 20 zero zero because it's in sense, because we're not actually passing that value to the 01:19.820 --> 01:20.330 back end. 01:20.780 --> 01:22.970 We don't have to because we know what the price of the plan is. 01:22.970 --> 01:25.720 So you might want a hard code that you might want to look it up from the database. 01:25.730 --> 01:29.000 It's entirely up to you, but give that a whirl. 01:29.000 --> 01:31.480 And in the next lecture, I'll show you how I did it. 01:32.000 --> 01:32.510 Good luck.