WEBVTT 00:01.810 --> 00:06.640 So it appears that the virtual terminal is working more or less the way that we want, we have our route 00:06.640 --> 00:11.620 to actually save the transaction protected, but we should probably look in the database just to make 00:11.620 --> 00:13.510 sure everything worked as expected. 00:13.580 --> 00:19.090 So let's go over to our database and we'll look at the transactions table, because that's what we're 00:19.090 --> 00:23.320 writing to on the the handler that we built over the last couple of lessons. 00:24.340 --> 00:28.830 So the last transaction when we just did that looks good. 00:28.840 --> 00:29.860 We have the correct amount. 00:29.860 --> 00:31.480 Twelve dollars and thirty four cents. 00:31.480 --> 00:33.070 We have the correct currency. 00:33.610 --> 00:35.200 We have the bank return code. 00:35.890 --> 00:38.980 But when we go over the payment, intent and payment method, those are empty. 00:38.980 --> 00:43.300 And they shouldn't be there should be when we're subscribing to a plan, but not when we're charging 00:43.300 --> 00:43.890 a credit card. 00:43.900 --> 00:44.950 So we're doing is something. 00:44.950 --> 00:46.360 Let's go over to our EDEK. 00:48.750 --> 00:56.030 So virtual terminal, terminal payment succeeded, and that's the one in handler's dash API, not handlers, 00:56.040 --> 00:56.630 don't go. 00:57.540 --> 01:01.260 So we do have the payment intent and the payment method right here. 01:01.990 --> 01:03.700 Are we actually populating them? 01:03.720 --> 01:07.400 No, we're not we're not populating them here in the models transaction. 01:07.410 --> 01:12.000 If we look at models transaction that actually has fields, as you can see, for payment, intent and 01:12.000 --> 01:13.200 payment method right there. 01:13.470 --> 01:14.560 So we just didn't add those. 01:14.670 --> 01:15.500 And that's easy enough. 01:15.510 --> 01:16.260 Let's add those. 01:18.720 --> 01:24.270 So payment intent is going to be equal to tax and data payment. 01:24.270 --> 01:24.720 Intent 01:27.840 --> 01:29.010 and payment method 01:32.580 --> 01:37.060 is going to be equal to tax and data payment method right there. 01:38.700 --> 01:46.440 So if we stop our application, make stop, make a start and run out of the transaction, we should 01:46.440 --> 01:48.470 see those populated in the database. 01:48.510 --> 01:57.000 Let's go try so back to our browser, reload this and we'll make this one for, say, forty four dollars 01:57.000 --> 02:06.840 and fifty six cents to Clark Kent Clark at Daily Planet dot com and our standard for two credit card 02:06.840 --> 02:15.420 number zero one twenty nine and anything we want for the CBC and we'll charge the card. 02:15.420 --> 02:16.710 We should get our receipt again. 02:20.130 --> 02:28.710 And we do and we go back to our database right there and refresh this, and we should have a new transaction 02:30.900 --> 02:34.160 and it should have the payment intent PPI and the payment method. 02:34.170 --> 02:35.310 P.M. Perfect. 02:35.920 --> 02:37.420 OK, so that takes care of that. 02:37.620 --> 02:38.360 Let's move on.