-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (44 loc) · 1.42 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
35
36
37
38
39
40
41
42
43
44
45
46
<head> </head>
<body>
<button id="pay">Click Me</button>
<!-- <script>
var Razorpay = {
config: {
frame:
"https://api.razorpay.com/test/checkout.html?branch=feat/3rd-party-cookie-poc",
},
};
</script> -->
<script>
window.Razorpay = {
config: {
api: "https://api-dark.razorpay.com/",
// api: "https://api.razorpay.com",
// api: "https://api-web.ext.dev.razorpay.in/",
frame:
"https://api-dark.razorpay.com/test/checkout.html?branch=feat/cookie-enabled-check",
// frame:
// "https://api.razorpay.com/test/checkout.html?branch=feat/cookie-enabled-check",
// frame:
// "https://api-web.ext.dev.razorpay.in/test/checkout.html?branch=feat/cookie-enabled-check",
},
};
</script>
<script src="https://betacdn.np.razorpay.in/checkout/builds/branch-builds/feat/cookie-enabled-check/v1/checkout.js"></script>
<script>
var options = {
// key: "rzp_test_SFNleqOkx50zPf",
key: "rzp_live_svCCnJmqJY5SpD",
// key: "rzp_test_WDbjEgaCEwT52U",
// order_id: "rzp_test_WDbjEgaCEwT52U",
remember_customer: true,
amount: 1000000,
contact: "+919902529070",
handler: (resp) => alert(resp.razorpay_payment_id),
};
const rzp = new Razorpay(options);
document.getElementById("pay").addEventListener("click", () => {
rzp.open();
});
</script>
</body>