-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.html
38 lines (36 loc) · 954 Bytes
/
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RCBilling Example</title>
<script src="./dist/rcbilling-js.iife.js"></script>
<style>
/* Some basic styling for our Stripe form */
#payment-form {
width: 300px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 5px;
}
</style>
</head>
<body>
<div id="payment-form"></div>
<script>
document.addEventListener("DOMContentLoaded", function () {
var billing = new RCBilling(
"web_tFpmIVwEGKNprbMOyiRRzZAbzIHX",
"test_rcbilling",
);
setTimeout(() => {
billing.renderForm(
document.getElementById("payment-form"),
"monthly.product_1234",
);
}, 3000);
});
</script>
</body>
</html>