forked from stripe-samples/github-pages-stripe-checkout
-
Notifications
You must be signed in to change notification settings - Fork 3
/
success.html
58 lines (55 loc) · 1.57 KB
/
success.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Stripe Checkout</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/global.css" />
<script src="https://js.stripe.com/v3/"></script>
</head>
<body>
<div class="sr-root">
<div class="sr-main">
<header class="sr-header">
<a href="./" class="sr-header__logo"></a>
</header>
<div class="sr-payment-summary completed-view">
<h1>Your payment succeeded</h1>
<h4>Checkout Session ID: <span id="session"></span></h4>
</div>
<div class="sr-content">
<div class="pasha-image-stack">
<img
src="https://picsum.photos/280/320?random=1"
width="140"
height="160"
/>
<img
src="https://picsum.photos/280/320?random=2"
width="140"
height="160"
/>
<img
src="https://picsum.photos/280/320?random=3"
width="140"
height="160"
/>
<img
src="https://picsum.photos/280/320?random=4"
width="140"
height="160"
/>
</div>
</div>
</div>
<script>
var urlParams = new URLSearchParams(window.location.search);
if (urlParams.has("session_id")) {
document.getElementById("session").textContent = urlParams.get(
"session_id"
);
}
</script>
</body>
</html>