GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("session.php"); include("connect.php"); include("libs.php"); mysqli_set_charset($conn,'utf8'); date_default_timezone_set('Asia/Kolkata'); $sqlC="SELECT * FROM `my_cart` WHERE `user_id`='".$_COOKIE["user_id"]."' ORDER BY `sr` DESC"; $rsC=mysqli_query($conn,$sqlC); $chkC=mysqli_num_rows($rsC); if($chkC==0) { echo '<script>window.location.href="dashboard.php";</script>'; } ?> <!DOCTYPE html> <html> <?php include'head.php'; ?> <body> <section> <div class="container"> <div class="row d-flex justify-content-center"> <div class="col-xs-5 col-sm-8 col-md-8 col-lg-6 col-xl-4"> <h5 class="text-center fw-light mt-3">Select Payment Method</h5> <div class="row bg-light rounded p-1 m-0 border border-success"> <div class="col-2 p-0"> <div class="form-group text-center py-3"> <input class="form-check-input" type="radio" name="radio" id="radio1" value="Prepaid"> </div> </div> <div class="col-10"> <img src="assest/images/paymethod.png" class="mx-auto mt-2 d-inline" style="height:auto ; max-width: 100%"> <p class="text-muted">If you Don't have Rozarpay Account, it doesn,t matter. You can also pay via Rozar with you Credit card,Bank Debit card, Net Banking, Paytm, Google Pay, Phone Pay etc.<br> Payment can be submitted in any currency</p> </div> </div> <div class="row bg-light rounded p-1 mt-4 border border-success"> <div class="col-1"> <div class="form-group text-center py-3"> <input class="form-check-input" type="radio" name="radio" id="radio2" value="COD"> </div> </div> <div class="col-11"> <h6 class="fw-light">Would you like to pay by Cash on Delivery?</h6> </div> </div> </div> </div> </div> <?php $cartAmount=totalCart_amount($conn,$_COOKIE["user_id"]); $deliveryCharge=cartdeliveryCharge($conn,$_COOKIE["user_id"]); $coupon=findCoupon(); $amount=$cartAmount+$deliveryCharge-$coupon; $order_id='OD'.mt_rand(1111,9999).mt_rand(222,888).date('s'); $user_name=profile($conn,$_COOKIE["user_id"],"user_name"); $mobb=profile($conn,$_COOKIE["user_id"],"mobb"); $email=profile($conn,$_COOKIE["user_id"],"emailid"); ?> <div class="container-fluid fixed-bottom mb-5"> <div class="row"> <div class="col-12 d-grid"> <button type="button" class="btn btn-success fs-6 fw-light rounded-pill" onclick="selectPay('<?php echo $amount; ?>','<?php echo $order_id; ?>','<?php echo $user_name; ?>','<?php echo $mobb; ?>','<?php echo $email; ?>')">Pay</button> </div> </div> </div> </section> </body> </html> <div id="snackbar"><span id="snack_msgg" style="color: white"></span></div>