1 00:00:00,510 --> 00:00:01,170 Welcome back. 2 00:00:01,830 --> 00:00:08,220 Now we have a problem, which is whenever you go to the payment page and there there, there is nothing 3 00:00:08,220 --> 00:00:09,120 to pay for. 4 00:00:09,660 --> 00:00:10,590 You will get an error. 5 00:00:10,590 --> 00:00:12,060 And this is a big, big problem. 6 00:00:12,420 --> 00:00:19,050 And I'm going to assure you of the fix to this problem in the payment that BHP and in any page in your 7 00:00:19,050 --> 00:00:25,050 project, whenever you are echoing something before echoing some something, always. 8 00:00:25,650 --> 00:00:31,200 As a rule of thumb, you need to check whether that thing exists or not. 9 00:00:31,770 --> 00:00:34,020 So here we have two things we are going. 10 00:00:34,080 --> 00:00:37,080 We are echoing the order status and the session total. 11 00:00:37,080 --> 00:00:44,460 So before echoing anything always at this cut, always say is is set. 12 00:00:45,150 --> 00:00:50,280 If is set, get, get and then. 13 00:00:52,220 --> 00:00:52,880 Status. 14 00:00:55,530 --> 00:00:56,190 Status. 15 00:00:57,000 --> 00:00:57,900 Order status. 16 00:01:04,110 --> 00:01:05,670 Then Echo at this point. 17 00:01:05,670 --> 00:01:09,000 We just need to echo this gut. 18 00:01:09,270 --> 00:01:11,550 We just need to echo the order status. 19 00:01:11,940 --> 00:01:14,400 Similarly with this session, we need to say if. 20 00:01:17,330 --> 00:01:18,710 Is said. 21 00:01:19,880 --> 00:01:20,480 Session. 22 00:01:24,440 --> 00:01:26,590 Session two hotel. 23 00:01:28,520 --> 00:01:31,010 Then at this point, we need to echo the decision. 24 00:01:32,670 --> 00:01:34,080 And it's also important. 25 00:01:34,200 --> 00:01:36,900 It's also better to say if it's not empty. 26 00:01:37,380 --> 00:01:39,360 So this is this is going to get the job done. 27 00:01:39,390 --> 00:01:44,640 Also, the button we need to hide the button whenever whenever the session is, is nothing. 28 00:01:45,240 --> 00:01:46,590 We need to hide the. 29 00:01:46,920 --> 00:01:49,350 So we need to say here is. 30 00:01:51,740 --> 00:01:52,670 First BHP. 31 00:01:54,720 --> 00:01:55,920 BHP and then. 32 00:01:58,340 --> 00:01:58,850 If. 33 00:02:01,400 --> 00:02:06,650 Section F is set only a set. 34 00:02:09,610 --> 00:02:10,270 Session. 35 00:02:17,760 --> 00:02:20,940 And then total. 36 00:02:23,260 --> 00:02:24,870 Then we can display this button. 37 00:02:24,880 --> 00:02:33,940 We can here say Caleb Brackett, and then we can say we can close the speech screen and that's it. 38 00:02:33,970 --> 00:02:35,560 This button will only be displayed. 39 00:02:35,560 --> 00:02:38,470 A decision is decision, total is set. 40 00:02:38,980 --> 00:02:46,390 And you can also add other other code if you want to check the order status, for example, if you want 41 00:02:46,390 --> 00:02:52,990 to check the order status if it's set or not, you can also say you can copy this code and you can here 42 00:02:53,020 --> 00:02:58,450 say if order status is set, get. 43 00:03:01,080 --> 00:03:04,950 Your order underscore status. 44 00:03:07,560 --> 00:03:08,220 And then. 45 00:03:08,880 --> 00:03:09,600 And. 46 00:03:12,030 --> 00:03:12,630 And. 47 00:03:14,110 --> 00:03:14,710 Get. 48 00:03:18,320 --> 00:03:18,920 Order. 49 00:03:20,890 --> 00:03:22,300 Order underscore. 50 00:03:23,090 --> 00:03:23,830 Status. 51 00:03:27,510 --> 00:03:29,340 Is equal to. 52 00:03:30,180 --> 00:03:31,200 Not paid. 53 00:03:32,370 --> 00:03:33,270 Not paid. 54 00:03:35,310 --> 00:03:37,200 So at this point, we need to display the important. 55 00:03:37,210 --> 00:03:38,970 Otherwise we shouldn't be displaying the butter.