[insert_php]
$id = $_POST[‘gtpay_tranx_id’];
$title = “”;
$msg = “”;
$amt = $_POST[‘gtpay_tranx_amt’];
$curr = $_POST[‘gtpay_tranx_curr’];
$code = $_POST[‘gtpay_tranx_status_code’];

switch($code){
case “G000”:
$title = “Transaction Error”;
$msg = “Error occured during transaction initiation. Please retry”;
break;

case “00”:
$title = “Donation Successfull”;
$msg = “Thank you for your support.”;
break:

case “G101”:
$title = “Invalid customer id”;
$msg = “It appears you are not logged in. Log in and retry donation. Register if you do not have an account yet”;
break;

case “G102”:
$title = “Missing transaction amount”;
$msh = “Amount missing. Kindly repeat the process including the amount (without comma (,) or a decimal point(.))”;
break;

case “G103”:
$title = “Invalid transaction amount”;
$msg = “Please use a value that is numeric, positive and without a comma (,) or a decimal point.”;
break;

default:
$title = “Transaction not completed”;
$msg = “Please try again”;
}
[/insert_php]

[insert_php]echo $title; [/insert_php]
[insert_php]echo $msg; [/insert_php]
Amount: [insert_php]($curr == ‘566’ ? echo “₦” : “$”); echo $amt/100; [/insert_php]