This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
pay.html
68 lines (57 loc) · 2.37 KB
/
pay.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
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://js.paystack.co/v1/paystack.js"></script>
<script src="js/main.js"></script>
<style type="text/css">
input{
display:block;
}
</style>
<form id="checkout-form">
<div id="checkout-error"></div>
<input type="email" id="email" placeholder="email" required="required">
<input type="number" id="amount" placeholder="amount" required="required">
<button type="submit" data-paystack="submit">Checkout</button>
</form>
<div id="processing" style="display:none">
Please wait...
</div>
<div id="failed" style="display:none">
<div id="failed-message"></div>
</div>
<form id="card-form" style="display:none">
<div id="error"><div id="error-message"></div><div id="error-errors"></div></div>
<input type="text" id="number" data-paystack="number" placeholder="number">
<input type="text" id="cvv" data-paystack="cvv" placeholder="cvv">
<input type="text" id="expiryMonth" data-paystack="expiryMonth" placeholder="expiryMonth">
<input type="text" id="expiryYear" data-paystack="expiryYear" placeholder="expiryYear">
<button type="submit" data-paystack="submit">Pay</button>
</form>
<form id="pin-form" style="display:none">
<div>To confirm you're the owner of this card, please enter your card pin</div>
<input type="password" id="pin" data-paystack="pin" placeholder="pin">
<button type="submit" data-paystack="submit">Continue</button>
</form>
<form id="otp-form" style="display:none">
<div id="otp-message"></div>
<input type="text" id="otp" data-paystack="otp" placeholder="otp">
<button type="submit" data-paystack="submit">Continue</button>
</form>
<form id="3ds-form" style="display:none">
<div id="3ds-message"></div>
<button type="submit" data-paystack="submit">Continue</button>
</form>
<form id="phone-form" style="display:none">
<div id="phone-message"></div>
<input type="text" id="phone" data-paystack="phone" placeholder="phone">
<button type="submit" data-paystack="submit">Continue</button>
</form>
<div id="timeout" style="display:none">
<div id="timeout-message"></div>
</div>
<div id="success" style="display:none">
<div id="success-message"></div>
<div id="success-reference"></div>
<div id="success-gateway-response"></div>
<div id="verify-error"></div>
</div>
<script src="js/app.js"></script>