-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrowser-test.html
116 lines (96 loc) · 2.39 KB
/
browser-test.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!doctype html>
<html lang="en" translate="no">
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=0, initial-scale=1, minimum-scale=1, width=device-width, height=device-height">
<title>Payment button demo</title>
</head>
<body>
<style>
* {
color: gray !important;
font-family: "Open Sans", sans-serif;
}
h3.next {
margin-top: 80px;
}
div {
margin-top: 30px;
}
</style>
<h3>Payment buttons</h3>
<div id="smartypay"></div>
<script src="./dist/esbuild/smartypay-client-sdk-v1.js"></script>
<noscript><a href="https://smartypay.io">Web3 Payments</a> are currently not supported without JavaScript enabled.</noscript>
<script>
new SmartyPayButton({
target: 'smartypay',
apiKey: 'YOUR_API_KEY',
amount: '1.99',
token: 'bUSDT',
lang: 'en',
})
</script>
<div id="smartypay2"></div>
<script>
new SmartyPayButton({
target: 'smartypay2',
apiKey: 'YOUR_API_KEY',
amount: '1.99',
token: 'bUSDT',
lang: 'en',
theme: 'dark',
})
</script>
<h3 class="next">Donation buttons</h3>
<div id="smartypay3"></div>
<script>
new SmartyPayDonation({
target: 'smartypay3',
donationId: 'some',
lang: 'en',
})
</script>
<div id="smartypay4"></div>
<script>
new SmartyPayDonation({
target: 'smartypay4',
donationId: 'some',
lang: 'en',
theme: 'dark',
})
</script>
<h3 class="next">Recharge Payment buttons</h3>
<div id="smartypay5"></div>
<script>
new SmartyPayRechargePayment({
target: 'smartypay5',
address: 'some',
lang: 'en',
})
</script>
<div id="smartypay6"></div>
<script>
new SmartyPayRechargePayment({
target: 'smartypay6',
address: 'some',
lang: 'en',
theme: 'dark',
})
</script>
<h3 class="next">Open Subscription Widget by SDK</h3>
<div id="smartypay-new-sub"></div>
<button id="openSubWidget">Open subscription widget</button>
<script>
const subSdk = new SmartyPaySubscriptions();
document.getElementById('openSubWidget').addEventListener('click', ()=>{
subSdk.newSubscriptionWidget({
sessionId: 'Place Session Id',
planId: 'Place plan id',
target: 'smartypay-new-sub'
})
});
</script>
<br/><br/><br/><br/><br/><br/><br/><br/>
</body>
</html>