In this section of the course, we're going to start with something really simple, a virtual terminal,
the sort of thing you might use if someone was to phone you and give you a credit card number over the
phone.
And we're going to build this locally and we're not going to bother with authentication or login.
So we're not going to protect this form.
So clearly, this isn't something you would deploy to a live server, but we're going to be doing it
locally and only using test credit card numbers.
So it's very simple.
I would click on the amount field and put some amount in, say, ten dollars cardholder name.
I might go with Jack, be nimble.
And the email address Jack at nimble dot com and then a credit card number and I'll put it in one of
Stripe's test credit card numbers which is always approved for two.
For two.
And you can see a change to visa there in the left hand side of this input, four two four to four to
four to four two four two.
And I'll put in any valid expiry date in the future, say zero one twenty nine.
Any any numbers for the security code three three three and any zip code.
And stripe is smart enough that if you put it in an American credit card number, it will show zip.
But if you put in, for example, Canadian credit card number, it will actually put postal code there
and require you to enter it in the correct format.
So I'll put in any postal code or any zip code nine one two and I click charge card.
And this will call a back end, which we've written and go and it will process the credit card through
Stripe's Test Payment Gateway.
So there goes validated locally.
We have our little spinner and it passed muster.
Now if I was to put in a credit card number that failed.
So let I go back to the terminal and we'll put some new information in here, say one hundred dollars
this time John Smith, John at Smith dot com.
And this time I'll put in a credit card number that is designed to fail every time.
Too, and again, a valid date in the future, say twenty eight this time five five five nine one 020
and this time it should decline.
And it does.
Your card was declined, so that's the sort of thing we'll be doing in this section of the course and
let's get started.