“;
$rtlo=111735;
$description=”Donatie transactie ICCW”;
//$amount=100;
$reporturl=”http://www.moskeewoerden.nl/public/ideal/”;
$returnurl=”http://www.moskeewoerden.nl/public/ideal/”;
// Bank has been selected, Now we start the transaction
if( isset ($_GET[‘bank’]) && $_GET[‘bank’]<>“” ){
$amount=$_GET[‘amount’]*100;
$url = StartTransaction($rtlo, $_GET[‘bank’], $description, $amount, $returnurl, $reporturl);
// echo “..”.$url.”
“;
echo ‘‘;
exit;
}
// The returnurl is called, now we check the transaction status
if( isset($_GET[‘ec’]) && isset($_GET[’trxid’])){
// 000000 OK means Status is successful. We deliver the product
if( ($status = CheckReturnurl( $rtlo, $_GET[’trxid’] )) == “000000 OK” ){
// Update the orderinfo to success
// Echo( “Uw donatie is succesvol overgemaakt…. Bedankt hiervoor!!”);
Echo (“Bedankt voor uw donatie!
“);
Echo(“We hebben uw donatie ontvangen! Moge Allah u rijkelijk belonen voor uw bijdrage aan Moskee Woerden.
“);
//exit;
}
//In all other cases do not delever(yet)
// Update the orderinfo to failed
else echo( “Banktransactie is helaas mislukt, Probeer u het nogmaals! [Status: “.$status. ” ]
” );
}
// The reporturl is called from the Targetpay server
if ( isset($_POST[‘rtlo’])&&isset($_POST[’trxid’])&& isset($_POST[‘status’])) {
HandleReporturl($_POST[‘rtlo’], $_POST[’trxid’], $_POST[‘status’] );
}
// Start with the bank selection
SelectBank();
// paragraph 2: Bank selection
function SelectBank(){
$url=”https://www.targetpay.com/ideal/getissuers.php”;
$strResponse = httpGetRequest($url);
// echo “strRsponse=”.$strResponse;
echo “
“;
echo “
“;
// echo “