WEBVTT 00:01.820 --> 00:06.410 In this section of the course, we're going to start with something really simple, a virtual terminal, 00:06.440 --> 00:10.520 the sort of thing you might use if someone was to phone you and give you a credit card number over the 00:10.520 --> 00:10.870 phone. 00:11.330 --> 00:15.740 And we're going to build this locally and we're not going to bother with authentication or login. 00:15.740 --> 00:17.270 So we're not going to protect this form. 00:17.270 --> 00:21.260 So clearly, this isn't something you would deploy to a live server, but we're going to be doing it 00:21.260 --> 00:23.680 locally and only using test credit card numbers. 00:23.690 --> 00:24.650 So it's very simple. 00:25.070 --> 00:30.440 I would click on the amount field and put some amount in, say, ten dollars cardholder name. 00:30.440 --> 00:33.230 I might go with Jack, be nimble. 00:34.130 --> 00:40.940 And the email address Jack at nimble dot com and then a credit card number and I'll put it in one of 00:40.940 --> 00:45.020 Stripe's test credit card numbers which is always approved for two. 00:45.020 --> 00:45.500 For two. 00:45.500 --> 00:50.690 And you can see a change to visa there in the left hand side of this input, four two four to four to 00:50.690 --> 00:52.400 four to four two four two. 00:53.120 --> 00:58.280 And I'll put in any valid expiry date in the future, say zero one twenty nine. 00:58.700 --> 01:04.220 Any any numbers for the security code three three three and any zip code. 01:04.220 --> 01:08.900 And stripe is smart enough that if you put it in an American credit card number, it will show zip. 01:08.900 --> 01:14.210 But if you put in, for example, Canadian credit card number, it will actually put postal code there 01:14.210 --> 01:16.310 and require you to enter it in the correct format. 01:16.310 --> 01:21.710 So I'll put in any postal code or any zip code nine one two and I click charge card. 01:22.340 --> 01:28.760 And this will call a back end, which we've written and go and it will process the credit card through 01:28.760 --> 01:30.460 Stripe's Test Payment Gateway. 01:30.950 --> 01:32.810 So there goes validated locally. 01:32.810 --> 01:35.540 We have our little spinner and it passed muster. 01:36.320 --> 01:38.810 Now if I was to put in a credit card number that failed. 01:38.870 --> 01:43.130 So let I go back to the terminal and we'll put some new information in here, say one hundred dollars 01:43.130 --> 01:50.000 this time John Smith, John at Smith dot com. 01:50.000 --> 01:53.930 And this time I'll put in a credit card number that is designed to fail every time. 01:57.360 --> 02:04.710 Too, and again, a valid date in the future, say twenty eight this time five five five nine one 020 02:05.190 --> 02:06.750 and this time it should decline. 02:09.340 --> 02:09.980 And it does. 02:10.000 --> 02:13.990 Your card was declined, so that's the sort of thing we'll be doing in this section of the course and 02:13.990 --> 02:14.680 let's get started.