-
Notifications
You must be signed in to change notification settings - Fork 0
/
pay.php
146 lines (75 loc) · 2.45 KB
/
pay.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
require('controller/config.php');
require('controller/stripe.php');
$id = $_GET['id'];
//check already paid
$get = mysqli_query($con,"SELECT * FROM orders WHERE order_id='$id'");
$getdata = mysqli_fetch_array($get);
$chk_page = mysqli_num_rows($get);
$email = $getdata['email'];
$price = $getdata['price'];
$order_id = $getdata['order_id'];
if($chk_page > 0){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Kwiki Sweepstakes Website | Design By Developer Bazaar Technology</title>
<!-- site favicon -->
<link rel="shortcut icon" type="image/png" href="assets/images/favicon.png">
<!-- main style css link -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- responsive css link -->
<link rel="stylesheet" href="assets/css/responsive.css">
<!-- Twitter Meta Property Started -->
<meta property="twitter:image" content="assets/images/favicon.png" />
<meta property="twitter:image:width" content="350" />
<meta property="twitter:image:height" content="597" />
<meta name="twitter:domain" content="Kwiki Sweepstakes" />
</head>
<body>
<section class="pay-section bg-light">
<div class="container">
<div class="row justify-content-center">
<div class="col-4">
<div class="shadow pb-3">
<img src="assets/images/payment_image.jpg">
<form action="controller/charge.php" method="post">
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="<?php echo $publishableKey?>"
data-amount= "<?php echo $price."00"; ?>"
data-name="kwikisweeps"
data-description="Kwiki Sweepstake Entry"
data-image="https://kwikisweeps.com/assets/images/logo.png"
data-currency="usd"
data-email = "<?php echo $email; ?>"
>
</script>
<input type="hidden" name="order_id" value="<?php echo $order_id; ?>">
</form>
</div>
</div>
</div>
</section>
</body>
</html>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
$(document).ready(function() {
function disableBack() {
window.history.forward()
}
window.onload = disableBack();
window.onpageshow = function(e) {
if (e.persisted)
disableBack();
}
});
</script>
<?php } else{
header('Location : https://kwikisweeps.com/404.php');
}
?>