<?php
//error_reporting(E_ALL); 
//ini_set('display_errors', 1);
include('functions/userfunctions.php');
include('config/dbcon.php');
include('authenticate.php');
include('includes/header.php');

    ?>

<div class="container py-5">
    <div class="card">
        <div class="card-body shadow">
                <div class="row">

                    <div class="col-12">
                            <h5>PAYMENT ERROR</h5>
                            <hr>
                            <div class="row">
                                <div class="col-md-12">
                                    <?php
                                           
                                
                                            //$mdStatus = $_POST["mdstatus"];
                                            //$errmsg = $_POST["errmsg"];
                                            //$mderrormessage = $_POST["mderrormessage"];
                                            //$response = $_POST["response"];
                                            //$txntype = $_POST["txntype"];
                                            //$txnamount = $_POST["txnamount"];
                                            //$oid = $_POST["oid"];
                                            //$clientid = $_POST["clientid"];
                                            //echo $mdStatus;
                                            //echo ' - ';
                                            //echo $errmsg;
                                            //echo ' - ';
                                            //echo $mderrormessage;
                                            //echo ' - ';
                                            //echo $response;
                                            //echo ' - ';
                                            //echo $txntype;
                                            //echo ' - ';
                                            //echo $txnamount;
                                            //echo ' - ';
                                            //echo $oid;
                                            //echo ' - ';
                                            //echo $clientid;

                                            //print "Bankadan dönen cevap:" . json_encode($_POST);
                                            $errmsg = $_POST["errmsg"];
                                            $response = $_POST["response"];
                                    ?>
                                    <p class="mb-3 mt-3">Error : <?= $errmsg;?></p>
                                    <p>Information : <?= $response;?></p>
                                            
                                </div>
                                <div class="text-center">
                                    <a href="checkout.php"><button class="btn btn-primary px-4"><i class="fa fa-shopping-cart me-2"></i>Checkout Page</button></a>
                                </div>
                            </div>
                    </div>
                </div>
        </div>
    </div>
</div>
<?php include('includes/footer.php');?>