2 $_user_location = 'users';
3 define('AT_INCLUDE_PATH', '../../include/');
4 require(AT_INCLUDE_PATH.'vitals.inc.php');
5 require('include/payments.lib.php');
6 $transaction_id = $addslashes($_REQUEST['tx']);
7 $payment_id = intval($_REQUEST['item_number']);
9 if ($_GET['st'] == "Completed"){
11 approve_payment($payment_id, $transaction_id);
12 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
14 } else if ($_GET['st'] == "Pending"){
15 approve_payment($payment_id, $transaction_id);
16 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
17 $msg->addFeedback('ACTION_PENDING_CC_CONFIRM');
20 $msg->addError('EC_PAYMENT_FAILED');
24 header('Location: index.php');