-
Notifications
You must be signed in to change notification settings - Fork 3
/
pp_nganluong.php
56 lines (42 loc) · 1.58 KB
/
pp_nganluong.php
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
#################################################################
## MyPHPAuction 2009 ##
##-------------------------------------------------------------##
## Copyright ©2009 MyPHPAuction. All rights reserved. ##
##-------------------------------------------------------------##
#################################################################
session_start();
define ('IN_SITE', 1);
include_once ('includes/global.php');
include_once ('includes/class_fees.php');
(string) $active_pg = 'nganluong';
(string) $error_output = null;
$pg_enabled = $db->get_sql_field("SELECT checked FROM " . DB_PREFIX . "payment_gateways WHERE
name='" . $active_pg . "' LIMIT 0,1", "checked");
if (!$pg_enabled) { die(GMSG_NOT_AUTHORIZED); }
function get_var($name, $default = 'none')
{
return (isset($_GET[$name])) ? $_GET[$name] : ((isset($_POST[$name])) ? $_POST[$name] : $default);
}
list($custom, $fee_table) = explode('TBL',get_var('transactionID');
$transaction_info = get_var('transaction_info');
$order_code = get_var('order_code');
$payment_type = get_var('payment_type');
$error_text = get_var('error_text');
$secure_code = get_var('secure_code');
$txn_id = get_var('payment_id');
$payment_gross = get_var('price');
$payment_currency = 'VND';
if ($error_text ='')
{
$process_fee = new fees();
$process_fee->setts = &$setts;
$process_fee->callback_process($custom, $fee_table, $active_pg, $payment_gross, $txn_id, $payment_currency);
$redirect_url = SITE_PATH . 'payment_completed.php';
}
else
{
$redirect_url = SITE_PATH . 'payment_failed.php';
}
header_redirect($redirect_url);
?>