forked from remy/stripe-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 847 Bytes
/
Copy pathindex.html
File metadata and controls
26 lines (26 loc) · 847 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>My ebook</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="basic.css">
</head>
<body>
<h1><img src="book.gif">Buy "My Book"</h1>
<p>It's all about me!</p>
<p><small>Use <code>4242 4242 4242 4242</code> or <a href="https://stripe.com/docs/testing#cards">other card numbers</a>.</small></p>
<form action="/charge" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="{{process.env.STRIPE_PUBLIC}}"
data-amount="{{process.env.STRIPE_COST}}"
data-name="Company Ltd"
data-description="My Book"
data-image="book.gif"
data-locale="auto"
data-currency="{{process.env.STRIPE_CCY}}"
data-zip-code="true">
</script>
</form>
</body>
</html>