Hello,
can anybody tell me what is rong whit this callback code, we have blank page after payment
Thaks
<?php
# Required File Includes
include("../../../dbconnect.php");
include("../../../includes/functions.php");
include("../../../includes/gatewayfunctions.php");
include("../../../includes/invoicefunctions.php");
$gatewaymodule = "template"; # Enter your gateway module name here replacing template
$GATEWAY = getGatewayVariables($gatewaymodule);
if (!$GATEWAY["type"]) die("Module Not Activated"); # Checks gateway module is active before accepting callback
# Get Returned Variables - Adjust for Post Variable Names from your Gateway's Documentation
$status = $_GET["STATUS"];
$invoiceid = $_GET["TX_ID"];
$transid = $_GET["TX_ID"];
$amount = $_GET["VALUE"];
$fee = $_GET["FEE"];
$invoiceid = checkCbInvoiceID($invoiceid,$GATEWAY["template"]); # Checks invoice ID is a valid invoice number or ends processing
checkCbTransID($transid); # Checks transaction number isn't already in the database and ends processing if it does
var_dump($_GET);
if ($status=="SUCCESS") {
# Successful
addInvoicePayment($invoiceid,$transid,$amount,$fee,$gatewaymodule); # Apply Payment to Invoice: invoiceid, transactionid, amount paid, fees, modulename
logTransaction($GATEWAY["template"],$_GET,"Successful"); # Save to Gateway Log: name, data array, status
} else {
# Unsuccessful
logTransaction($GATEWAY["template"],$_GET,"Unsuccessful"); # Save to Gateway Log: name, data array, status
}
?>