Welcome back.
Now we have a problem, which is whenever you go to the payment page and there there, there is nothing
to pay for.
You will get an error.
And this is a big, big problem.
And I'm going to assure you of the fix to this problem in the payment that BHP and in any page in your
project, whenever you are echoing something before echoing some something, always.
As a rule of thumb, you need to check whether that thing exists or not.
So here we have two things we are going.
We are echoing the order status and the session total.
So before echoing anything always at this cut, always say is is set.
If is set, get, get and then.
Status.
Order status.
Then Echo at this point.
We just need to echo this gut.
We just need to echo the order status.
Similarly with this session, we need to say if.
Is said.
Session.
Session two hotel.
Then at this point, we need to echo the decision.
And it's also important.
It's also better to say if it's not empty.
So this is this is going to get the job done.
Also, the button we need to hide the button whenever whenever the session is, is nothing.
We need to hide the.
So we need to say here is.
First BHP.
BHP and then.
If.
Section F is set only a set.
Session.
And then total.
Then we can display this button.
We can here say Caleb Brackett, and then we can say we can close the speech screen and that's it.
This button will only be displayed.
A decision is decision, total is set.
And you can also add other other code if you want to check the order status, for example, if you want
to check the order status if it's set or not, you can also say you can copy this code and you can here
say if order status is set, get.
Your order underscore status.
And then.
And.
Get.
Order.
Order underscore.
Status.
Is equal to.
Not paid.
So at this point, we need to display the important.
Otherwise we shouldn't be displaying the butter.