Skip to content

Commit

Permalink
Update pay.html
Browse files Browse the repository at this point in the history
  • Loading branch information
healer-op authored Aug 11, 2024
1 parent 34e5659 commit 1b6903e
Showing 1 changed file with 36 additions and 13 deletions.
49 changes: 36 additions & 13 deletions pay.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=upi://pay?pa=sigmachad@ibl&pn=Healer&tn=LocalMinerDonation&am=99">
<script type="text/javascript">
window.location.href = "upi://pay?pa=sigmachad@ibl&pn=Healer&tn=LocalMinerDonation&am=99"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow this <a href='upi://pay?pa=sigmachad@ibl&pn=Healer&tn=LocalMinerDonation&am=99'>link to example</a>.
</body>
</html>

<head>
<meta charset="UTF-8">
<title>Upi PayWall</title>
</head>

<body >
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
<div id="root1"></div>
<script type="text/javascript">
//upi://pay?pa=sigmachad@ibl&pn=Healer&tn=LocalMinerDonation&am=99
var amount = 99;
var message = "LocalMinerDonation";
var upi_id = "sigmachad@ibl";
var upilink = `upi://pay?pa=${upi_id}&pn=Healer&tn=${message}&am=${amount}`
let root = document.getElementById("root1")

function isMobile() {
const regex = /Mobi|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;
return regex.test(navigator.userAgent);
}

if (isMobile()) {
console.log("Mobile device detected");
root.innerHTML = `If you are not redirected automatically, follow this <a id="link"
href='upi://pay?pa=sigmachad@ibl&pn=Healer&tn=LocalMinerDonation&am=99'>link to example</a>.`
window.location.href = upilink
document.getElementById("link").href = upilink

} else {
console.log("Desktop device detected");
root.innerHTML = `<center><H1><i>This Payment Page Works Best on Mobile Devices</i></H1><i><p>Payment is for <b>${message}</b> to <b>${upi_id}</b></p></i><img src="https://cdn.discordapp.com/attachments/1058239742434619454/1271374132549914666/image.png?ex=66b9bdee&is=66b86c6e&hm=7cbeac418fee7a28420cc1c1914c44f36dc0ac1b52512ea490508da1b7654b01&" width="50%"><i><p>You Can Scan this qr code and pay a sum of <b>${amount}₹</b></p></i></center>`
}
</script>
</body>

0 comments on commit 1b6903e

Please sign in to comment.