JezK
Edit File: bookingSucess.php
<?php include('mainHeader.php'); // if((!isset($_REQUEST['transactionid']) || $_REQUEST['transactionid']=='') && ($_REQUEST['status']=='success' || $_REQUEST['status']=="")) // { // echo "<script>alert('Invalid Details');window.location='index.php'</script>"; // } $successfail=''; if($_REQUEST['status']=='success') { // print_r($_REQUEST);exit; $bookingDet=$users->getUserTransactionDet($_REQUEST['transactionid']); // print_r($bookingDet);exit; $currencySymbol ="$"; if($bookingDet['currency'] =="INR"){ $currencySymbol ="Rs."; } $successfail='<div class="col-12 col-xl-12 col-sm-6 col-md-8 py-4 "> <div class="book-success pt-4" style="text-align: center;"> <p class="book-success-p">Your Transaction Was Successfully Completed.Below are the transaction details</p> <p>Transaction ID : '.$bookingDet['transaction_id'].'</p> <p>Order ID : KRKKD'.$bookingDet['id'].'</p> <p>Paid Amount : '.$currencySymbol.' '.$bookingDet['amount'].'</p> <a href="index.php" class="pt-2 pb-3"><button class="btn basic-btn-color w-100">Back to Home</button></a> </div> </div>'; }else{ $successfail='<div class="col-12 col-xl-12 col-sm-6 col-md-8 py-4 "> <div class="book-success pt-4" style="text-align: center;"> <p class="book-success-p">Your Transaction Was Failed</p> <a href="index.php" class="pt-2 pb-3"><button class="btn basic-btn-color w-100">Back to Home</button></a> </div> </div>'; } ?> <section class="mt-5 pt-4 pb-3 loginUser-margin"> <div class="container-fluid bg-white text-dark border"> <div class="row py-4"> <?php echo $successfail;?> <!-- <div class="col-12 col-xl-4 col-sm-6 col-md-4"> --> <!-- <div class=""> <form action="" method="POST"> <h6>Confirm Appointment</h6> <div class="form-group"> <label for="clientName" class="fieldName">Client Name</label> <input type="text" class="form-control formField-control" name="clientName" id="clientName"> </div> <div class="form-group"> <label for="email" class="fieldName">Email</label> <input type="text" class="form-control formField-control" name="email" id="email"> </div> <div class="form-group"> <label for="mobileNo" class="fieldName">Mobile</label> <input type="text" class="form-control formField-control" name="mobileNo" id="mobileNo"> <span class="text-warning error-msg">You will receive an with SMS with verification code on this number</span> </div> <div class="form-group pt-2 pb-2"> <label></label> <img src="img/amount.png"><span> $ 500</span> </div> <div class="form-group mb-5"> <button class="btn basic-btn-color w-100">Proceed to Pay</button> </div> </form> </div> --> <!-- </div> --> </div> </div> </section> <?php include('mainFooter.php')?>