2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
13 $_user_location = 'users';
14 define('AT_INCLUDE_PATH', '../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16 require('include/payments.lib.php');
18 $amount = floatval($_GET['trnAmount']);
19 $id = intval($_GET['ref2']);
20 $approved = intval($_GET['trnOrderNumber']);
21 $ordernumber = intval($_GET['trnOrderNumber']);
22 $trans_id = intval($_GET['trnId']);
24 if ($_config['ec_contact_email']){
25 $contact_admin_email = $_config['ec_contact_email'];
27 $contact_admin_email = $_config['contact_email'];
29 //$contact_admin_email .= ",ineher@ocad.ca"; //uncomment and add comma separated list, starting with a comma, of additional email addresses that should receive notification of payments made
31 if($_GET['trnApproved'] == 1 && $_GET['trnId']){
32 approve_payment($ordernumber,$trans_id);
35 require (AT_INCLUDE_PATH.'header.inc.php');
36 require (AT_INCLUDE_PATH.'footer.inc.php');