So in this section of the course, we're going to build a simple form that allows someone to buy a widget
and as you can see right here, we have our page up where someone can buy a widget and enter their first
name.
So I'll put it in.
Bruce last name, Wayne.
Email Bruce at Wayne Enterprises dot com.
The name on the card is Bruce Wayne.
And we put in a test credit card number, which doesn't really charge a credit card, but it takes us
through the steps as though a real credit card was entered and I put an expiry date and a security code
and charged the card.
And when that happens, it does some client side validation.
It calls straight from the back and authorizes the payment and then gives us a payment, succeeded page
a receipt, which seems pretty straightforward.
And when I go to my stripe dashboard and look at test transactions and reload this page, you can see
that Bruce Wayne was actually charged ten dollars.
So there's our transaction.
So there's quite a few steps necessary to make this happen and to make it secure.
And just so you know, in this section of the course, we're going to build this form and we're going
to do it largely on the front end.
There's some calls to the back end, but for the most part, we're going to be using the front end to
make this transaction in the next section.
When we actually subscribe to a monthly recurring payment, we buy a subscription.
In other words, we'll do it the other way where the front end is purely cosmetic.
It's some JavaScript and some HTML and all of the logic is done on the back end.
That way you'll get experience doing it both ways.
Let's get started.