So in the last lecture, I said, I talk about this part, the bronze plan and our MICRA service in
the next lecture, and this time around, I want to give you a bit of a challenge.
If you recall in the last lecture, I said, well, I'm going to make that function, create and send
invoice in the handler's file.
I'm going to make that a function because I'm going to call it again when we subscribe to the bronze
plan.
But of course, that's not accurate.
When we did the bronze plan, we actually did everything on the back end.
And that's OK, because in the front end, you might be calling that create and send invoice micro service
from somewhere else.
And it makes sense to put it in its own function.
But this time around, I'm going to ask you to implement that same functionality on our back end.
So when someone completes the purchase of this bronze plan, they pay, they click the button and of
course, they're going to get charged twenty dollars right away and then twenty dollars the next month
and the month after that and so on and so forth.
But we'll send them an invoice.
I'm going to ask you to implement that functionality on our backend.
And it's not terribly difficult.
The one thing I will draw to your attention, of course, is that when you're filling out the type which
I called invoice on the front end and you're filling in the amount, you're just going to want to type
20 dollars, 20 zero zero because it's in sense, because we're not actually passing that value to the
back end.
We don't have to because we know what the price of the plan is.
So you might want a hard code that you might want to look it up from the database.
It's entirely up to you, but give that a whirl.
And in the next lecture, I'll show you how I did it.
Good luck.