-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdatafeed.php
More file actions
50 lines (41 loc) · 1.13 KB
/
datafeed.php
File metadata and controls
50 lines (41 loc) · 1.13 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
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
***author: Gayward S. Mendoza, E.c.E.
***mentor: Henry Kwan
***file:datafeed.php
***date: January 22, 2009
Sample Data feed Page
*/
/*
To check if there are parameters passed:
if($_POST){
print_r($_POST);
}else{
echo "There are no parameters passed";
}
*/
$src = $_REQUEST['src'];
$prc = $_REQUEST['prc'];
$Ord = $_REQUEST['Ord'];
$Holder = $_REQUEST['Holder'];
$successcode = $_REQUEST['successcode'];
$Ref = $_REQUEST['Ref'];
$PayRef = $_REQUEST['PayRef'];
$Amt = $_REQUEST['Amt'];
$Cur = $_REQUEST['Cur'];
$remark = $_REQUEST['remark'];
echo "OK. Bank processed the payment,";
if($successcode == 0){
/*
the sending of e-mail is generated by zen cart.
*/
echo "and the customer's transaction is SUCCESSFUL.";
}
else{
/*
the merchant should void the transaction whenever the transaction is failed. they can see it in the paydollar or pesopay system
Therefore should check the system regularly. or they can put codes here that send mails and notify the merchant that there is an unsuccessful transaction
*/
echo "but transaction is FAILED. Please void the merchant's payment";
}
?>