-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkkpay.php
50 lines (38 loc) · 1.28 KB
/
kkpay.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
<?php
require 'config.php';
require 'checkuser.php';
?>
<!DOCTYPE html>
<html>
<head>
<style></style>
</head>
<body>
<br></br>
<br></br>
<script src="js/jquery.min.js"></script>
<script src="js/sha256.js"></script>
<script src="https://js.paystack.co/v1/inline.js"></script>
<div style="width:100%;max-width:600px;margin:auto;position:relative;font-family:arial;">
<br></br>
<br></br>
<a href="orders.php" style="color:blue;text-decoration:none;">« Go back</a>
<object data="kk.svg" style="display:block;width:80px;height:80px;margin:auto"></object>
<h4 style='display:block;color:grey;text-align:center;'>KlosetKollect Payment System</h4>
<div id="paystackEmbedContainer" style="width:100%;max-width:500px;margin:auto;"></div>
</div>
<script type="text/javascript">
PaystackPop.setup({
key: 'pk_test_93fb92867c0aa8d20be9f6ba2be7bdb96a75d4e3',
email: '<?php echo $_SESSION['email'];?>',
amount: <?php echo $_SESSION['amount'];?>,
container: 'paystackEmbedContainer',
callback: function(response){
var token =
window.location.href='verifypay.php?transaction=success&ref=' + response.reference+'&token='+sha256_digest('<?php echo $_SESSION['token'];?>'+response.reference);
},
});
</script>
</script>
</body>
</html>