HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/ledub.komma.pro/wwwroot/sisow/payment.php
<?php

session_start();
include("../all_kms_con.php");
require_once "sisow.cls5.php";


$testurl = $_SESSION['testurl'];

$q_cases = sprintf("SELECT kms_inschrijvingen.inschrijving_id FROM kms_inschrijvingen WHERE kms_inschrijvingen.url='%s'", $testurl);
$r_cases = mysql_query($q_cases);
$rec_cases = mysql_fetch_array($r_cases);

$id = $rec_cases['inschrijving_id'];
$_SESSION['kenmerk'] = $id;

$sisow = new Sisow("2537723439", "58a69f47656a8ab496e199b51917b9b5941f920f");
if (isset($_POST["issuerid"])) {
    $sisow->purchaseId = $_POST["purchaseid"];
    $sisow->description = $_POST["description"];
    $sisow->amount = $_POST["amount"];
    $sisow->payment = $_POST["payment"];
    $sisow->issuerId = $_POST["issuerid"];
    $sisow->returnUrl = "http://www.ledub.komma.pro/original/ledub/succes.php";
    $sisow->notifyUrl = "http://www.ledub.komma.pro/original/ledub/notify.php";
    $sisow->cancelUrl = "";
    if (($ex = $sisow->TransactionRequest()) < 0) {
        header("Location: payment.php?ex=" . $ex . "&ec=" . $sisow->errorCode . "&em=" . $sisow->errorMessage);
        exit;
    }
    header("Location: " . $sisow->issuerUrl);
}
else if (isset($_GET["trxid"])) {
    $sisow->StatusRequest($_GET["trxid"]);
    // if ($sisow->status == Sisow::statusSuccess) {
    //     echo $sisow->consumerAccount;
    //     echo $sisow->consumerName;
    // }
    header("Location: payment.php?status=" . $sisow->status);
    exit;
}
else {
    // there are 2 methods for filling the available issuers in the select/dropdown
    // below, the REST method DirectoryRequest is used
    $sisow->DirectoryRequest($select, true, true);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="Author" content="Komma, (c) Komma Mediadesign, 2013. All Rights Reserved." />
    <meta name="Subject" content="LedubToernooi Budel Cranendonck" />
    <meta name="Description" content="Inschrijving LedubToernooi Budel Cranendonck" />
    <meta name="Language" content="Nederlands" />
    <meta name="Expires" content="14" />
    <meta name="Robots" content="All" />
    <title>Inschrijving Led&ucirc;btoernooi 2014 | Led&ucirc;b Volleybal Budel Cranendonck</title>
    <link href="../css-js/screen.css" rel="stylesheet" type="text/css" media="screen" />
</head>

<body <?php if($bodyWidth){ echo("style=\"width:480px;\""); } ?> >

<div id="centerAlign">
    <div id="mainframe">
        <div class="logo"><img src="../img/logo.jpg" width="250" height="111" /></div>

        <h1>Let Op! U dient meteen te betalen door middel van iDEAL.</h1>
        <p>Vanaf dit jaar werken we bij Ledub met betalingen via iDEAL, uw inschrijving kan u hieronder direct afronden door te betalen.</p>
        <br /><br /><br /><br /><br /> <br />
        <form name="body_form" method="post" xaction="pay.php" id="body_form">

        <input type="hidden" name="purchaseid" value="<?php echo ($_SESSION['kenmerk']); ?>" maxlength="16" />
        <input type="hidden" name="description" value="<?php echo ($_SESSION['omschrijving']); ?>" maxlength="32" />
        <input type="hidden" name="amount" value="<?php echo ($_SESSION['prijs']); ?>" maxlength="10" />

        <table>
            <tr>
                <td>Bedrag:</td><td>&euro;<?php echo $_SESSION['prijs'] ?>,-</td>
            </tr>
            <tr>
                <td>Bank:</td><td><?php echo $select ?></td>
            </tr>
            <tr>
                <td><input type="button" onclick="this.disabled=true;document.body_form.submit()" value="Ga verder" title="Betaal" /></td>
            </tr>
        </table>
        </form>
        </div>
    </div>
</body>

</html>