forked from SamsungInternet/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (34 loc) · 1.96 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A PaymentRequest demo">
<meta name="theme-color" content="#f4f2ff">
<title>PaymentDemo</title>
<link rel="stylesheet" href="styles.css">
<link rel="manifest" href="manifest.json">
<link rel="icon" href="images/favicon.png" type="image/png"/>
</head>
<body>
<h1>Payment Demo</h1>
<h2>A simple example of the <a href="https://www.w3.org/TR/payment-request/">Payment Request API</a></h2>
<div id="donate">
<p>Press the button to make a test payment. <strong>It won't actually charge you!</strong></p>
<p>You can enter fake details. Here are some example <a href="https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm">card numbers</a>.</p>
<button id="donate-button">Try it now!</button>
<p id="success">Success! We simulated the payment 😉</p>
<p id="error">Aw, unable to complete the payment simulation! 😫</p>
</div>
<div id="unsupported">
<p class="warning">Sorry your browser does not appear to support the Payment Request API.</p>
<p class="description">Normally we would practise progressive enhancement and use another payment UI here,
but this is just a Payment Request demonstration!</p>
</div>
<p>For more information, see the <a href="https://github.com/SamsungInternet/examples/tree/master/payment-request-demo-simple">README</a> and the <a href="https://medium.com/samsung-internet-dev/how-to-take-real-payments-on-the-web-with-the-payment-request-api-a523f6fc7c1f">blog post</a>.</p>
<footer>
By <a href="https://twitter.com/poshaughnessy">@poshaughnessy</a> from <a href="https://github.com/SamsungInternet/examples/tree/master/payment-request-demo-simple">Source code on Github</a>.
</footer>
<script type="text/javascript" src="index.js"></script>
</body>
</html>