payment-receipt

[php]
include_once ‘payments/db.php’;
global $allow_php;
$allow_php->_shared[‘d2’] = GetDetailsByTrackId($_GET[“ResTrackId”]);
$allow_php->_shared[‘trackidpresent’] = (isset($_GET[‘ResTrackId’]) ? true : false);
$allow_php->_shared[‘errortext’] = (!empty($allow_php->_shared[‘d2’][“ResErrorText”])? $allow_php->_shared[‘d2’][“ResErrorText”] : $_GET[‘ResErrorText’]);
[/php]

[php]
global $allow_php;
if(empty($allow_php->_shared[‘errortext’])) {
echo “Payment – ID: “.$_GET[“ResTrackId”];
}else{
echo “Payment Error – ID: “.$_GET[“ResTrackId”];
}
[/php]

[php]
global $allow_php;
if(empty($allow_php->_shared[‘errortext’])) {
if($allow_php->_shared[‘d2’][“ResResult”]==CANCELED){
echo “Uh Oh! Your payment has failed. Please try again.<br /><br />In case you are unable to successfully complete the payment, give us a call on 022 61419595. Alternatively, an Imarticus representative will reach out to you within 48 hours to help you complete the payment.<br /><br />We wish you success in your learning endeavor with Imarticus.”;
}
else{
echo “Congratulations! The payment has been successful.<br /><br />An Imarticus representative will reach out to you within 48 hours to help you take the next steps.<br />Alternatively, you can call on 022 61419595. The below transaction details have been emailed to you, but we recommend keeping a note.
Congratulations on taking the first step towards your chosen career! We look forward to sharing a great learning experience with you.
“;}
}
else{
echo “Uh Oh! Your payment has failed. Please try again.<br /><br />In case you are unable to successfully complete the payment, give us a call on 022 61419595. Alternatively, an Imarticus representative will reach out to you within 48 hours to help you complete the payment.<br /><br />We wish you success in your learning endeavor with Imarticus.”;
}
[/php]

[php] global $allow_php;
if(!empty($allow_php->_shared[‘errortext’])) {
echo “<tr>”;
echo “<td>Transaction Error</td>”;
echo “<td>”.$allow_php->_shared[‘errortext’].”</td>”;
echo “</tr>”;
}
[/php]

Imarticus Reference No [php]global $allow_php;if($allow_php->_shared[‘d2’][“TrackId”]){echo $allow_php->_shared[‘d2’][“TrackId”];}[/php]
Transaction PaymentID [php]global $allow_php;echo $allow_php->_shared[‘d2’][“ResPaymentId”];[/php]
Transaction Reference No [php]global $allow_php;echo $allow_php->_shared[‘d2’][“ResRef”];[/php]
Transaction Amount [php]global $allow_php;echo $allow_php->_shared[‘d2’][“ResAmount”];[/php]