forked from stripe-samples/accept-a-payment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apple-pay.html
40 lines (32 loc) · 1.63 KB
/
apple-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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Apple Pay</title>
<link rel="stylesheet" href="css/base.css" />
<script src="https://js.stripe.com/v3/"></script>
<script src="/utils.js" defer></script>
<script src="/apple-pay.js" defer></script>
</head>
<body>
<main>
<a href="/">home</a>
<h1>Apple Pay</h1>
<p>
Before you start, you need to:
<ul>
<li><a href="https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-testing" target="_blank">Add a payment method to your browser.</a> For example, add a card to your Wallet for Safari.</li>
<li>Serve your application over HTTPS. This is a requirement both in development and in production. One way to get up and running is to use a service like <a href="https://ngrok.com/" target="_blank">ngrok</a>.</li>
<li><a href="https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay" target="_blank">Verify your domain with Apple Pay</a>, both in development and production.</li>
</ul>
</p>
<a href="https://stripe.com/docs/stripe-js/elements/payment-request-button" target="_blank">Stripe Documentation</a>
<div id="payment-request-button">
<!-- A Stripe Element will be inserted here if the browser supports this type of payment method. -->
</div>
<div id="messages" role="alert"></div>
<p> <a href="https://youtu.be/5KcdQboA7Gc" target="_blank">Watch a demo walkthrough</a> </p>
</main>
</body>
</html>