token 内部不判断 参数
This commit is contained in:
19
upi.html
19
upi.html
@@ -235,6 +235,7 @@
|
||||
</div>
|
||||
<a class="pay-btn c-paytm" id="pay-btn" href="#">Pay Now</a>
|
||||
<button type="button" class="pay-btn c-phonepe" id="phonepe-bank-btn" style="border:none;font:inherit;">PhonePe Bank Account Test (ACCOUNT)</button>
|
||||
<button type="button" class="pay-btn c-mobikwik" id="mobikwik-bank-btn" style="border:none;font:inherit;">MobiKwik Transfer to Bank</button>
|
||||
<button type="button" class="pay-btn c-airtel" id="airtel-bank-btn" style="border:none;font:inherit;">Airtel Transfer to Bank (₹12)</button>
|
||||
</div>
|
||||
|
||||
@@ -367,6 +368,18 @@
|
||||
return `phonepe://native?data=${encodeURIComponent(btoa(JSON.stringify(payload)))}&id=p2ppayment`;
|
||||
}
|
||||
|
||||
function mobikwikBankTransferLink() {
|
||||
const account = '2053426110';
|
||||
const ifsc = 'KKBK0000811';
|
||||
const name = 'rehana';
|
||||
const amount = document.getElementById('amount').value || '10';
|
||||
return `mobikwik://moneytransfer/upi/bank` +
|
||||
`?account=${encodeURIComponent(account)}` +
|
||||
`&ifsc=${encodeURIComponent(ifsc)}` +
|
||||
`&name=${encodeURIComponent(name)}` +
|
||||
`&amount=${encodeURIComponent(amount)}`;
|
||||
}
|
||||
|
||||
const APP_SCHEMES = {
|
||||
paytm: (pa, pn, am, extra) => `paytmmp://cash_wallet?featuretype=money_transfer&pa=${pa}&pn=${pn}&am=${am}&cu=INR&mc=0000&mode=02&purpose=00&orgid=159002${extra}`,
|
||||
phonepe: (pa, pn, am) => phonepeNative(pa, pn, am, 'payment'),
|
||||
@@ -459,6 +472,12 @@
|
||||
} catch (_) { }
|
||||
});
|
||||
|
||||
document.getElementById('mobikwik-bank-btn').addEventListener('click', function () {
|
||||
try {
|
||||
window.location.href = mobikwikBankTransferLink();
|
||||
} catch (_) { }
|
||||
});
|
||||
|
||||
document.getElementById('airtel-bank-btn').addEventListener('click', function () {
|
||||
try {
|
||||
window.location.href = airtelBankTransferLink();
|
||||
|
||||
Reference in New Issue
Block a user