-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaywall.html
55 lines (48 loc) · 1.83 KB
/
paywall.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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Upi PayWall</title>
<style>
button{
padding:10px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
}
button:hover{
background-color: rgb(27, 225, 50);
color:white;
}
</style>
</head>
<body>
<center>
<H1><i>LocalX Payment Page!</i></H1><i>
<p>Payment is for <b id="message">${message}</b></p>
</i><img id="qrupi"
src="https://upiqr.in/api/qr/?name=Healer&vpa=sigmachad@ibl&amount=150¬e=Paywall&format=png"
width="25%"><i>
<p>Scan using any upi app</p>
</i><br>
<button onclick="upi()">Click if your are on mobile</button>
<h4>You can also pay using <a href="https://paypal.me/stfuadi?country.x=IN&locale.x=en_GB">Paypal</a> and amount of ₹<b id="mo">amount</b></h4>
</center>
<script type="text/javascript">
//https://localhost:5500/paywall.html?pa=sigmachad@ibl&am=1500&ms=PaywallDonation
const params = new URLSearchParams(document.location.search);
var amount = params.get("am");
var message = params.get("ms");
var upi_id = params.get("pa");
var upilink = `upi://pay?pa=${upi_id}&pn=Healer&tn=${message}&am=${amount}`
var qrlink = `https://upiqr.in/api/qr/?name=Healer&vpa=${upi_id}&amount=${amount}¬e=${message}&format=png`
document.getElementById("message").innerText=message
document.getElementById("qrupi").src = qrlink
document.getElementById("mo").innerHTML = amount
function upi(){
window.location.href = upilink
}
</script>
</body>
</html>