-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
131 lines (116 loc) · 4.93 KB
/
index.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
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
<?php
include 'config.php';
$db = new DbConnect;
$conn = $db->connect();
$sql = "SELECT * FROM settings";
$result = $conn->query($sql);
while($row = $result->fetch_assoc()) {
$_SESSION['siteCode'] = $row["siteCode"];
$_SESSION['siteName'] = $row["siteName"];
$_SESSION['apiKey'] = $row["apiKey"];
//echo "id: " . $row["siteCode"]. " - Name: " . $row["siteCode"]. " " . $row["siteCode"]. "<br>";
}
?>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>OzPay</title>
<!-- CSS files -->
<link rel="shortcut icon" href="https://dev.geniusocean.net/genius_wallet/assets/images/5480339181644482400.png">
<link rel="stylesheet" href="style/font-awsome.min.css">
<link href="style/tabler-vendors.min.css" rel="stylesheet"/>
<link href="style/demo.min.css" rel="stylesheet"/>
<link href="style/custom.css" rel="stylesheet"/>
<link href="style/table.io.mini.css" rel="stylesheet"/>
</head>
<body>
<div class="wrapper">
<header class="navbar navbar-expand-xl navbar-light d-print-none">
<div class="container-xl">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu">
<span class="navbar-toggler-icon"></span>
</button>
<h1 class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
<a href="check_all_trans.php">
<h4> View All Transactions </h4>
</a>
</h1>
</div>
</header>
<div class="page-wrapper">
<div class="container-xl">
<!-- Page title -->
<div class="page-header text-white d-print-none">
<div class="row align-items-center">
<div class="col">
<h2 class="page-title"> Checkout Page</h2>
</div>
<!-- Page title actions -->
<div class="col-auto ms-auto d-print-none">
<div class="btn-list">
</div>
</div>
</div>
</div>
</div>
<div class="page-body">
<div class="container-xl">
<div class="row row-deck row-cards">
<div class="col-6">
<div class="card">
<div class="card-body">
<form action="<?php echo BASE_URL."payment.php"; ?>" id="form" method="get">
<div class="row">
<div class="col-md-6 mb-3">
<div class="form-label">Customer Name <span class="ms-2 check"></span></div>
<div class="input-group">
<input type="text" value="Dingaan" name="cname" id="cname" class="form-control shadow-none" required>
</div><br>
<div class="form-label">Referrence <span class="ms-2 check"></span></div>
<div class="input-group">
<input type="text" value="Savings" name="ref" id="ref" class="form-control shadow-none" required>
</div><br>
<div class="form-label">Enter Amount <span class="ms-2 check"></span></div>
<div class="input-group">
<input type="text" value="0.50" name="amount" id="amount" class="form-control shadow-none" required>
</div><br>
</div>
<div class="col-md-6 mb-3">
<div class="form-label"> </div>
<button type="submit" class="btn btn-success w-50 transfer">
Pay with Ozow </button><br><br>
<button type="submit" class="btn btn-success w-50 transfer">
Donate with Ozow</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-6">
<div class="container">
<div class="card">
<div class="card-body">
<h1> Where to use this Script </h1>
<p> All developers looking to implement Ozow.com Payment gateway in their Project to accept payment online with
ozow are welcome to re-use this script/source code.
</p>
<p> This is a checkout page, you can direct re-use this in your project or study the codes and implement it in your project</p>
<h3> Popular Website using Ozow </h3>
<ul>
<li>Takealot</li>
<li>Betway</li>
<li>Suparbalist</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>