changed git call from https to git readonly
[atutor.git] / mods / ecomm / success_beanstream.php
1 <?php
2 /************************************************************************/
3 /* ATutor                                                                                                                               */
4 /************************************************************************/
5 /* Copyright (c) 2002-2010                                              */
6 /* Inclusive Design Institute                                           */
7 /* http://atutor.ca                                                     */
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 /************************************************************************/
12
13 $_user_location = 'users';
14 define('AT_INCLUDE_PATH', '../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16 require('include/payments.lib.php');
17
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']);
23
24 if ($_config['ec_contact_email']){
25         $contact_admin_email = $_config['ec_contact_email'];
26 } else {
27         $contact_admin_email = $_config['contact_email'];
28 }
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
30
31 if($_GET['trnApproved'] == 1 && $_GET['trnId']){
32         approve_payment($ordernumber,$trans_id);
33 }
34
35 require (AT_INCLUDE_PATH.'header.inc.php');
36 require (AT_INCLUDE_PATH.'footer.inc.php');
37 ?>