-
Notifications
You must be signed in to change notification settings - Fork 1
/
checkout.php
128 lines (114 loc) · 3.55 KB
/
checkout.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
<?php
include('express-stk.php');
?>
<!DOCTYPE html>
<html>
<head>
<style>
@import url(https://fonts.googleapis.com/css?family=Lato:400,100,300,700,900);
@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:400,200,300,500,600,700,900);
.container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
flex-direction: column; }
* {
box-sizing: border-box; }
html {
background-color: #171A3D;
font-family: 'Lato', sans-serif; }
.price h1 {
font-weight: 300;
color: #18C2C0;
letter-spacing: 2px;
text-align:center;
}
.card {
margin-top: 30px;
margin-bottom: 30px;
width: 520px; }
.card .row {
width: 100%;
padding: 1rem 0;
border-bottom: 1.2px solid #292C58; }
.card .row.number{
background-color: #242852;
}
.cardholder .info, .number .info {
position: relative;
margin-left: 40px; }
.cardholder .info label, .number .info label {
display: inline-block;
letter-spacing: 0.5px;
color: #8F92C3;
width: 40%; }
.cardholder .info input, .number .info input {
display: inline-block;
width: 55%;
background-color: transparent;
font-family: 'Source Code Pro';
border: none;
outline: none;
margin-left: 1%;
color: white; }
.cardholder .info input::placeholder, .number .info input::placeholder {
font-family: 'Source Code Pro';
color: #444880; }
#cardnumber, #cardnumber::placeholder {
letter-spacing: 2px;
font-size:16px; }
.button button {
font-size: 1.2rem;
font-weight: 400;
letter-spacing: 1px;
width: 520px;
background-color: #18C2C0;
border: none;
color: #fff;
padding: 18px;
border-radius: 5px;
outline: none;
cursor:pointer;
transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.button button:hover {
background-color: #15aeac; }
.button button:active {
background-color: #139b99; }
.button button i {
font-size: 1.2rem;
margin-right: 5px; }
</style>
</head>
<body>
<div class="container">
<form action='<?php echo $_SERVER['PHP_SELF'] ?>' method='POST'>
<div class="price">
<h1>Awesome, that's KES 100</h1>
</div>
<div class="card__container">
<div class="card">
<div class="row">
<img src="mpesa.png" style="width:30%;margin: 0 35%;">
<p style="color:#8F92C3;line-height:1.7;">1. Enter the <b>phone number</b> and press "<b>Confirm and Pay</b>"</br>2. You will receive a popup on your phone. Enter your <b>MPESA PIN</b></p>
<?php if ($errmsg != ''): ?>
<p style=" background: #cc2a24;padding: .8rem;color: #ffffff;"><?php echo $errmsg; ?></p>
<?php endif; ?>
</div>
<div class="row number">
<div class="info">
<input type="hidden" name="orderNo" value="#O2JDI2I3R" />
<label for="cardnumber">Phone number</label>
<input id="cardnumber" type="text" name="phone_number" maxlength="10" placeholder="0700000000"/>
</div>
</div>
</div>
</div>
<div class="button">
<button type="submit"><i class="ion-locked"></i> Confirm and Pay</button>
</div>
</form>
<p style="color:#8F92C3;line-height:1.7;margin-top:5rem;">Copyright 2022 | All Rights Reserved | Made by MediaForce</p>
</div>
</body>
</html>