So it appears that the virtual terminal is working more or less the way that we want, we have our route
to actually save the transaction protected, but we should probably look in the database just to make
sure everything worked as expected.
So let's go over to our database and we'll look at the transactions table, because that's what we're
writing to on the the handler that we built over the last couple of lessons.
So the last transaction when we just did that looks good.
We have the correct amount.
Twelve dollars and thirty four cents.
We have the correct currency.
We have the bank return code.
But when we go over the payment, intent and payment method, those are empty.
And they shouldn't be there should be when we're subscribing to a plan, but not when we're charging
a credit card.
So we're doing is something.
Let's go over to our EDEK.
So virtual terminal, terminal payment succeeded, and that's the one in handler's dash API, not handlers,
don't go.
So we do have the payment intent and the payment method right here.
Are we actually populating them?
No, we're not we're not populating them here in the models transaction.
If we look at models transaction that actually has fields, as you can see, for payment, intent and
payment method right there.
So we just didn't add those.
And that's easy enough.
Let's add those.
So payment intent is going to be equal to tax and data payment.
Intent
and payment method
is going to be equal to tax and data payment method right there.
So if we stop our application, make stop, make a start and run out of the transaction, we should
see those populated in the database.
Let's go try so back to our browser, reload this and we'll make this one for, say, forty four dollars
and fifty six cents to Clark Kent Clark at Daily Planet dot com and our standard for two credit card
number zero one twenty nine and anything we want for the CBC and we'll charge the card.
We should get our receipt again.
And we do and we go back to our database right there and refresh this, and we should have a new transaction
and it should have the payment intent PPI and the payment method.
P.M. Perfect.
OK, so that takes care of that.
Let's move on.