File: D:/HostingSpaces/SBogers44/ledubtoernooi.nl/wwwroot/minikamp/sisow/payment.php
<?php
ini_set('session.bug_compat_warn',0);
session_start();
include("../all_kms_con.php");
require_once "sisow.cls5.php";
$testurl = $_SESSION['testurl'];
$q_cases = sprintf("SELECT kms_minikamp.inschrijving_id FROM kms_minikamp WHERE kms_minikamp.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.ledubtoernooi.nl/minikamp/succes.php";
$sisow->notifyUrl = "http://www.ledubtoernooi.nl/minikamp/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, false);
}
?>
<!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="Ledub Minikamp Budel Cranendonck" />
<meta name="Description" content="Inschrijving Ledub Minikamp Budel Cranendonck" />
<meta name="Language" content="Nederlands" />
<meta name="Expires" content="14" />
<meta name="Robots" content="All" />
<title>Inschrijving Ledûb Minikamp | Ledû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 verwerken wij al onze betalingen direct via iDEAL. Wanneer u betaling geslaagd is wordt uw inschrijving definitief.</p>
<img src="http://ideal.nl/img/234x60.gif" width="234" height="60" border="0" /><br /><br />
<p>Selecteer hieronder uw bank en druk op "ga verder". U wordt dan doorgestuurd naar de betaalpagina van uw eigen bank.</p>
<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>€ <?php echo $_SESSION['prijs'] ?>,-</td>
</tr>
<tr>
<td>Bank:</td><td><?php echo $select ?></td>
</tr>
<tr>
<td><br /><br /><input type="button" onclick="this.disabled=true;document.body_form.submit()" value="Ga verder" title="Betaal" /></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>