-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
257 lines (197 loc) · 13 KB
/
index.html
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html data-wf-domain="" data-wf-page="61aab61912d3903d888eff09" data-wf-site="61a5510ec38d7b858814894b">
<head>
<meta charset="utf-8" />
<title>Pay for Melford International Institute of Digital Learning</title>
<meta content="Pay for Melford International Institute of Digital Learning" property="og:title" />
<meta content="Pay for Melford International Institute of Digital Learning" property="twitter:title" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="Pay for Melford International Institute of Digital Learning" name="generator" />
<link href="./index.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js" type="text/javascript"></script><![endif]-->
<script type="text/javascript">
! function(o, c) {
var n = c.documentElement,
t = " w-mod-";
n.className += t + "js", ("ontouchstart" in o || o.DocumentTouch && c instanceof DocumentTouch) && (n.className += t + "touch")
}(window, document);
</script>
<link href="./1logo-removebg-preview.png" rel="shortcut icon" type="image/x-icon" />
<link href="./1logo-removebg-preview.png" rel="apple-touch-icon" />
<style type="text/css">
body {
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<div data-animation="default" data-collapse="medium" data-duration="400" data-easing="ease" data-easing2="ease" role="banner" class="navbar w-nav">
<div class="container w-container">
<div class="nav-wrap"><a href="/" id="w-node-_6f3e45eb-b947-9dad-c293-cae332f2a0d3-32f2a0d0" class="w-nav-brand"><img src="./logo-removebg-preview.png" loading="lazy" alt=""/></a>
</div>
</div>
</div>
<div class="section light-background background-swirl no-padd-bottom wf-section">
<div class="container w-container">
<div class="split">
<div id="w-node-_81174a48-43f3-84fd-d94b-1103872c5b1e-888eff09" class="limit">
<h5 class="yellow-text">Pay for Melford International Institute of Digital Learning | Short-Term Certification Courses.</h5>
<br>
<h1>Trusted Payment Gateway </h1>
<br>
<div class="contact-details">
<div>
<div class="small-title">FIND US AT</div>
<div class="space-top-tiny">www.melfordintl.com</div>
</div>
<div>
<div class="small-title">EMAIL TO US</div>
<div class="space-top-tiny">educations@melfordintl.com</div>
</div>
<br>
</div>
<br>
<div>
<div class="small-title">REACH OUT TO US</div>
<div class="space-top-tiny">+254719231999 | +918971911715 | +918867656752 | +918147299337 | +918097956093 | +919036196722</div>
</div>
<div class=" limit space-top-medium">
<h5>Don’t hesitate to contact our support for quick assistance.</h1>
<!-- <p>+254719231999 | +918971911715 | +918867656752 | +918147299337 | +918097956093 | +919036196722</p> -->
</div>
</div>
<div id="smart-button-container" id="w-node-_670ed146-38de-1465-60df-0541e94bbae7-888eff09" class="form-block space-top-large w-form" class="split-inputs">
<h5 style="text-align: center; color: #f6b141;"><b>Payment Gateway</b></h5>
<br>
<div style="text-align: center"><label for="description">Reason for your payment </label><input type="text" name="descriptionInput" id="description" maxlength="127" value="" name="First-name" data-name="First name" placeholder="Enter Reason for your Payment" class="input w-input"></div>
<p id="descriptionError" style="visibility: hidden; color:red; text-align: center;">Please enter a description</p>
<div style="text-align: center"><label for="amount">Amount </label><input name="amountInput" type="number" id="amount" value="" name="First-name" data-name="First name" placeholder="Enter amount in USD" class="input w-input"></div>
<p id="priceLabelError" style="visibility: hidden; color:red; text-align: center;">Please enter a price </p>
<div id="invoiceidDiv" style="text-align: center; display: none;"><label for="invoiceid">Full Name </label><input name="invoiceid" maxlength="127" type="text" id="invoiceid" value="" name="First-name" data-name="First name" placeholder="Enter Payee Full Name" class="input w-input"></div>
<p id="invoiceidError" style="visibility: hidden; color:red; text-align: center;">Please enter an Invoice ID</p>
<div style="text-align: center; margin-top: 0.625rem;" id="paypal-button-container"></div>
</div>
<script src="https://www.paypal.com/sdk/js?client-id=ARr4qVyqXdvs4NoHZeSH2N32CRVBBzI7tiBsRuCJvm0qoPmxx_L0WPYXoa7tIFaTEbBK1D_wcD144lS-&enable-funding=venmo¤cy=USD" data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
var description = document.querySelector('#smart-button-container #description');
var amount = document.querySelector('#smart-button-container #amount');
var descriptionError = document.querySelector('#smart-button-container #descriptionError');
var priceError = document.querySelector('#smart-button-container #priceLabelError');
var invoiceid = document.querySelector('#smart-button-container #invoiceid');
var invoiceidError = document.querySelector('#smart-button-container #invoiceidError');
var invoiceidDiv = document.querySelector('#smart-button-container #invoiceidDiv');
var elArr = [description, amount];
if (invoiceidDiv.firstChild.innerHTML.length > 1) {
invoiceidDiv.style.display = "block";
}
var purchase_units = [];
purchase_units[0] = {};
purchase_units[0].amount = {};
function validate(event) {
return event.value.length > 0;
}
paypal.Buttons({
style: {
color: 'gold',
shape: 'pill',
label: 'pay',
layout: 'vertical',
},
onInit: function (data, actions) {
actions.disable();
if(invoiceidDiv.style.display === "block") {
elArr.push(invoiceid);
}
elArr.forEach(function (item) {
item.addEventListener('keyup', function (event) {
var result = elArr.every(validate);
if (result) {
actions.enable();
} else {
actions.disable();
}
});
});
},
onClick: function () {
if (description.value.length < 1) {
descriptionError.style.visibility = "visible";
} else {
descriptionError.style.visibility = "hidden";
}
if (amount.value.length < 1) {
priceError.style.visibility = "visible";
} else {
priceError.style.visibility = "hidden";
}
if (invoiceid.value.length < 1 && invoiceidDiv.style.display === "block") {
invoiceidError.style.visibility = "visible";
} else {
invoiceidError.style.visibility = "hidden";
}
purchase_units[0].description = description.value;
purchase_units[0].amount.value = amount.value;
if(invoiceid.value !== '') {
purchase_units[0].invoice_id = invoiceid.value;
}
},
createOrder: function (data, actions) {
return actions.order.create({
purchase_units: purchase_units,
});
},
onApprove: function (data, actions) {
return actions.order.capture().then(function (orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
// element.innerHTML = '<h3>Thank you for your payment!</h3>';
element.innerHTML = '<h3>PAYMENT PROCESSED SUCCESSFULLY! Your Payment was processed and received successfully. Thank for choosing Melford International Business Group. For future reference, take a screenshot of this information as a proof of your remittance, and immediately contact us for further services and extention.!</h3>';
// actions.redirect('https://melfordintl.com/succcess/index.html');
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function (err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();
</script>
<div class="success-message w-form-done">
<div>Thank you! Your submission has been received!</div>
</div>
<div class="error-message w-form-fail">
<div>Oops! Something went wrong while submitting the form.</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer wf-section">
<div class="footer-bottom">
<div class="container w-container">
<div class="footer-bottom-wrapper">
<div class="footer-bottom-left">
<div class="footer-bottom-content">
<div>Copyright © 2022 Melford International Express Gateway. All Rights Reserved.</div> <br>
</div>
<div> Designed by <a href="#" class="footer-link">Gemechu Taye.</a></div>
</div>
<div class="footer-top">
<div class="social-logos-wrapper"><a href="#" class="social-icon-wrapper w-inline-block"><img src="https://assets.website-files.com/61a5510ec38d7b858814894b/61a81e2b77ffccc9884cde49_Facebook.svg" loading="lazy" alt=""/></a><a href="#" class="social-icon-wrapper w-inline-block"><img src="https://assets.website-files.com/61a5510ec38d7b858814894b/61a81e2b77ffcc86854cde4a_social-media-social-media-logo-twitter.svg" loading="lazy" alt=""/></a>
<a
href="#" class="social-icon-wrapper w-inline-block"><img src="https://assets.website-files.com/61a5510ec38d7b858814894b/61a81e2b77ffcc6cde4cde48_instagram-logo.svg" loading="lazy" alt="" /></a>
</div>
</div>
<div class="footer-bottom-content horizontal"><a href="#" class="footer-link">Security</a><a href="#" class="footer-link bottom">Terms</a><a href="#" class="footer-link bottom">Privacy</a></div>
</div>
</div>
</div>
</div>
<!--[if lte IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script><![endif]-->
</body>
</html>