forked from stripe-samples/accept-a-payment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.html
54 lines (45 loc) · 1.51 KB
/
link.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Link</title>
<link rel="stylesheet" href="/css/base.css" />
<script src="https://js.stripe.com/v3/"></script>
<script src="/utils.js" defer></script>
<script src="/link.js" defer></script>
</head>
<body>
<main>
<a href="/">home</a>
<h1>Link</h1>
<p>
<h4>Try a <a href="https://stripe.com/docs/testing#cards" target="_blank">test card</a>:</h4>
<div>
<code>4242424242424242</code> (Visa)
</div>
<div>
<code>5555555555554444</code> (Mastercard)
</div>
<div>
<code>4000002500003155</code> (Requires <a href="https://www.youtube.com/watch?v=2kc-FjU2-mY" target="_blank">3DSecure</a>)
</div>
</p>
<p>
Use any future expiration, any 3 digit CVC, and any postal code.
</p>
<form id="payment-form">
<h3>Contact info</h3>
<div id="link-authentication-element"></div>
<!--Stripe.js injects the Link Authentication Element-->
<h3>Payment</h3>
<div id="payment-element"></div>
<!--Stripe.js injects the Payment Element-->
<!-- We'll put the error messages in this element -->
<div id="card-errors" role="alert"></div>
<button id="submit">Pay</button>
</form>
<div id="messages" role="alert" style="display: none;"></div>
</main>
</body>
</html>