forked from stripe-samples/accept-a-payment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
afterpay-clearpay.html
121 lines (100 loc) · 3.21 KB
/
afterpay-clearpay.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Afterpay / Clearpay</title>
<link rel="stylesheet" href="css/base.css" />
<script src="https://js.stripe.com/v3/"></script>
<script src="/utils.js" defer></script>
<script src="/afterpay-clearpay.js" defer></script>
</head>
<body>
<main>
<a href="/">home</a>
<h1>Afterpay / Clearpay</h1>
<form id="payment-form">
<fieldset>
<legend>Billing</legend>
<label for="name">
Name
</label>
<input id="name" value="Jenny Rosen" required />
<label for="email">
Email
</label>
<input type="email" id="email" value="[email protected]" required />
<label for="line1">
Line 1
</label>
<input id="line1" value="123 Main St." required />
<label for="line2">
Line 2
</label>
<input id="line2" value="" />
<label for="city">
City
</label>
<input id="city" value="San Francisco" />
<label for="state">
State
</label>
<input id="state" value="CA" />
<label for="postal_code">
Postal code
</label>
<input id="postal_code" value="94111" />
<label for="country">
Country
</label>
<select id="country">
<option value="AU">Australia</option>
<option value="CA">Canada</option>
<option value="NZ">New Zealand</option>
<option value="UK">United Kingdom</option>
<option value="US">United States</option>
</select>
</fieldset>
<fieldset>
<legend>Shipping</legend>
<label for="name">
Name
</label>
<input id="shipping_name" value="Jenny Rosen" required />
<label for="shipping_line1">
Line 1
</label>
<input id="shipping_line1" value="123 Main St." required />
<label for="shipping_line2">
Line 2
</label>
<input id="shipping_line2" value="" />
<label for="shipping_city">
City
</label>
<input id="shipping_city" value="San Francisco" />
<label for="shipping_state">
State
</label>
<input id="shipping_state" value="CA" />
<label for="shipping_postal_code">
Postal code
</label>
<input id="shipping_postal_code" value="94111" />
<label for="shipping_country">
Country
</label>
<select id="shipping_country">
<option value="AU">Australia</option>
<option value="CA">Canada</option>
<option value="NZ">New Zealand</option>
<option value="UK">United Kingdom</option>
<option value="US">United States</option>
</select>
</fieldset>
<button id="submit">Pay</button>
</form>
<div id="messages" role="alert" style="display: none;"></div>
</main>
</body>
</html>