-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgateway.php
More file actions
169 lines (141 loc) · 4.83 KB
/
gateway.php
File metadata and controls
169 lines (141 loc) · 4.83 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
include_once ("z_db.php");
if(isset($_GET["username"]))
$userid=mysqli_real_escape_string($con,$_GET["username"]);
?>
<!DOCTYPE html>
<html lang="en" class="app">
<head>
<style>html {
overflow-y: scroll;
}</style>
<meta charset="utf-8" />
<title>Select Payment Gateway</title>
<meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="css/app.v1.css" type="text/css" />
<!--[if lt IE 9]> <script src="js/ie/html5shiv.js"></script> <script src="js/ie/respond.min.js"></script> <script src="js/ie/excanvas.js"></script> <![endif]-->
<div id="google_translate_element" align="right"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</head>
<body style="overflow: scroll;" class="">
<section id="content" class="m-t-lg wrapper-md animated fadeInDown">
<div> <a class="navbar-brand block" href="#">Thank You, but your account is not active yet ... ;)</a>
<section class="m-b-lg">
<header class="wrapper text-center"> <strong>You Order has been received and now select available payment gateway(s) to Pay amount: </strong> </header>
<?php $query="SELECT id,fname,email,doj,active,username,address,pcktaken,tamount FROM affiliateuser where username = '$userid'";
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
$aid="$row[id]";
$regdate="$row[doj]";
$name="$row[fname]";
$address="$row[address]";
$acti="$row[active]";
$pck="$row[pcktaken]";
$ear="$row[tamount]";
}
?>
<?php $query="SELECT * FROM packages where id = $pck";
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
$id="$row[id]";
$pname="$row[name]";
$pprice="$row[price]";
$pcur="$row[currency]";
$ptax="$row[tax]";
$gatewayid="$row[gateway]";
$total=$pprice+$ptax;
// "<option value='$id'>$pname | Price - $pcur $total </option>";
}
?>
<form action="gatewayck.php" method="post" name="gatewaysend">
<input type="hidden" value= <?php print $userid;?> name="username">
<div class="list-group-item">
<label>
Payment Option :
<select name="paymentgateway" align="centre">
<?php
if($gatewayid=="1")
{
$query="SELECT * FROM paymentgateway where id='1'";
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
$pgid="$row[id]";
$pgname="$row[Name]";
$pgstatus="$row[status]";
//$pprice="$row[price]";
//$pcur="$row[currency]";
//$ptax="$row[tax]";
//$total=$pprice+$ptax;
print "<option value='$pgid'>$pgname</option>";
}
}
if($gatewayid=="2")
{
$query="SELECT * FROM paymentgateway where id='2'";
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
print $pgid="$row[id]";
$pgname="$row[Name]";
$pgstatus="$row[status]";
//$pprice="$row[price]";
//$pcur="$row[currency]";
//$ptax="$row[tax]";
//$total=$pprice+$ptax;
print "<option value='$pgid'>$pgname</option>";
}
}
if($gatewayid=="3")
{
$query="SELECT * FROM paymentgateway ";
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
print $pgid="$row[id]";
$pgname="$row[Name]";
$pgstatus="$row[status]";
//$pprice="$row[price]";
//$pcur="$row[currency]";
//$ptax="$row[tax]";
//$total=$pprice+$ptax;
print "<option value='$pgid'>$pgname</option>";
}
}
?>
</select>
</label>
</div>
<div style="width:100%;height:100%;position:absolute;vertical-align:middle;text-align:center;">
<input type="submit" class="btn btn-lg btn-primary btn-block" value="Click me to make payment of <?php print $pcur; print $pprice+$ptax ?> for order id #<?php print $aid ?> and your username - <?php print $userid ?>" >
</div>
</form>
</section>
</div>
</section>
<!-- footer -->
<footer id="footer">
<div class="text-center padder clearfix">
<p> <small><?php $query="SELECT footer from settings where sno=0";
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
$footer="$row[footer]";
print $footer;
}
?></small> </p>
</div>
</footer>
<!-- / footer -->
<!-- Bootstrap -->
<!-- App -->
<script src="js/app.v1.js"></script>
<script src="js/app.plugin.js"></script>
</body>
</html>