-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsuccess_beanstream.php
More file actions
38 lines (34 loc) · 1.46 KB
/
success_beanstream.php
File metadata and controls
38 lines (34 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/************************************************************************/
/* ATutor */
/************************************************************************/
/* Copyright (c) 2002 - 2013 */
/* ATutorSpaces */
/* https://atutorspaces.com */
/* This program is free software. You can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation. */
/************************************************************************/
$_user_location = 'users';
define('AT_INCLUDE_PATH', '../../include/');
require(AT_INCLUDE_PATH.'vitals.inc.php');
require('include/payments.lib.php');
$amount = floatval($_GET['trnAmount']);
$id = intval($_GET['ref2']);
$approved = intval($_GET['trnOrderNumber']);
$ordernumber = intval($_GET['trnOrderNumber']);
$trans_id = intval($_GET['trnId']);
if ($_config['ec_contact_email']){
$contact_admin_email = $_config['ec_contact_email'];
} else {
$contact_admin_email = $_config['contact_email'];
}
if($_GET['trnApproved'] == 1 && $_GET['trnId']){
approve_payment($ordernumber,$trans_id);
}
log_requests($trans_id);
unset($_SESSION['payment_id']);
unset($_SESSION['seats_requested']);
require (AT_INCLUDE_PATH.'header.inc.php');
require (AT_INCLUDE_PATH.'footer.inc.php');
?>