You were able to get that payment model to appear, but now we need an actual credit card to enter in
there to actually test out this entire flow.
Well, luckily, Stripe has our back and the stripe documentation, which you can find at stripe dot
com docs slash testing.
We can scroll down on this page a little bit and they're going to list out some credit card numbers
right here that are always going to work for any given charge on a stripe account.
While the stripe account is in the test mode and ours is definitely the test mode right now.
So in other words, if we enter in a credit card number of four to four to four to any three digits
CBC and any future date, the charge will work as expected.
So let's try that out right now.
I'm going to once again recreate my order because it already has expired.
Purchase and then pay with card.
By the way, when we click on Pay with Card, you might see a ton of Eyre's pop up right here and even
a couple of warnings.
All those errors, all the warnings really, truly can be ignored.
We are not using Stripe in such a critical way that these errors or warnings are going to cause any
issue whatsoever.
It's now inside this motel.
I got to put in or two for two for two for two.
A future date and then any three digits CBC.
Well, then click on paid twenty dollars and we'll see a console log right there.
This is our token object.
This is the thing that's going to allow us to charge a user's credit card.
The most important piece of information of this is the I.D. That idea right there is the real token.
We want to take that value and send it off to our payment API.
Our payment API can then do a follow up and charge the user's credit card for this amount of money.
That's pretty much it.
Oh, if I do now is take that idea, make a post request and we are pretty much good to go.
All right, so let's take that idea, the next video, make sure we do that poster cost off to the payments
API.
We also need to make sure that we handle the case in which a user pays for this thing before the order
expires.
They're pretty close here to getting this entire flow wrapped up.
Just a couple more steps.