Added link to open UPI apps directly from web app
This commit is contained in:
parent
9bb8ad39eb
commit
a8f3787041
@ -64,6 +64,7 @@ a {
|
|||||||
a:focus-visible {
|
a:focus-visible {
|
||||||
box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset;
|
box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.button {
|
a.button {
|
||||||
padding: 0.4rem 0.6rem;
|
padding: 0.4rem 0.6rem;
|
||||||
border-radius: 0.3rem;
|
border-radius: 0.3rem;
|
||||||
@ -103,7 +104,7 @@ button:not(:disabled) {
|
|||||||
background-color: rgba(var(--text-color), 0.06);
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
}
|
}
|
||||||
.button--primary, .button--danger {
|
.button--primary, .button--danger {
|
||||||
color: rgba(var(--background-color), 1);
|
color: rgba(var(--background-color), 1) !important;
|
||||||
}
|
}
|
||||||
.button--primary .icon, .button--danger .icon {
|
.button--primary .icon, .button--danger .icon {
|
||||||
fill: rgba(var(--background-color), 1);
|
fill: rgba(var(--background-color), 1);
|
||||||
|
|||||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -97,7 +97,7 @@ button {
|
|||||||
background-color: rgba(var(--text-color), 0.06);
|
background-color: rgba(var(--text-color), 0.06);
|
||||||
&--primary,
|
&--primary,
|
||||||
&--danger {
|
&--danger {
|
||||||
color: rgba(var(--background-color), 1);
|
color: rgba(var(--background-color), 1) !important;
|
||||||
.icon {
|
.icon {
|
||||||
fill: rgba(var(--background-color), 1);
|
fill: rgba(var(--background-color), 1);
|
||||||
}
|
}
|
||||||
|
|||||||
15
index.html
15
index.html
@ -155,11 +155,11 @@
|
|||||||
</header>
|
</header>
|
||||||
<section id="home" class="inner-page hide">
|
<section id="home" class="inner-page hide">
|
||||||
<div id="user" class="hide grid user-element">
|
<div id="user" class="hide grid user-element">
|
||||||
|
<div class="grid">
|
||||||
|
<h5>My FLO ID</h5>
|
||||||
|
<sm-copy class="logged-in-user-id" style="font-size: 0.9rem;"></sm-copy>
|
||||||
|
</div>
|
||||||
<div id="wallet_section" class="grid gap-1">
|
<div id="wallet_section" class="grid gap-1">
|
||||||
<div class="grid">
|
|
||||||
<h5>My FLO ID</h5>
|
|
||||||
<sm-copy class="logged-in-user-id" style="font-size: 0.9rem;"></sm-copy>
|
|
||||||
</div>
|
|
||||||
<h4>My wallet</h4>
|
<h4>My wallet</h4>
|
||||||
<div class="grid gap-0-5">
|
<div class="grid gap-0-5">
|
||||||
<h5>Balance</h5>
|
<h5>Balance</h5>
|
||||||
@ -745,7 +745,12 @@
|
|||||||
<div id="topup_wallet__qr_code"></div>
|
<div id="topup_wallet__qr_code"></div>
|
||||||
</div>
|
</div>
|
||||||
<sm-copy id="topup_wallet__upi_id" style="font-weight: 700;"></sm-copy>
|
<sm-copy id="topup_wallet__upi_id" style="font-weight: 700;"></sm-copy>
|
||||||
<a href="upi://pay?pa=UPIID@oksbi&cu=INR">Pay Now !</a>
|
<div class="grid">
|
||||||
|
<a id="topup_wallet__app_link" class="button button--primary">Pay with
|
||||||
|
supported
|
||||||
|
UPI apps</a>
|
||||||
|
<p>*Requires UPI apps installed on device</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>After sending money, please enter the transaction ID of completed transaction.</p>
|
<p>After sending money, please enter the transaction ID of completed transaction.</p>
|
||||||
<sm-input id="topup_wallet__txid" minlength="12" maxlength="12"
|
<sm-input id="topup_wallet__txid" minlength="12" maxlength="12"
|
||||||
|
|||||||
@ -44,6 +44,7 @@ function continueWalletTopup() {
|
|||||||
let amount = parseFloat(getRef('request_cashier_amount').value.trim());
|
let amount = parseFloat(getRef('request_cashier_amount').value.trim());
|
||||||
getRef('topup_wallet__details').innerHTML = `Send <b>${formatAmount(amount)}</b> to UPI ID below`;
|
getRef('topup_wallet__details').innerHTML = `Send <b>${formatAmount(amount)}</b> to UPI ID below`;
|
||||||
getRef('topup_wallet__upi_id').value = cashierUPI[cashier];
|
getRef('topup_wallet__upi_id').value = cashierUPI[cashier];
|
||||||
|
getRef('topup_wallet__app_link').href = `upi://pay?pa=${cashierUPI[cashier]}&cu=INR`;
|
||||||
fetch(`https://upiqr.in/api/qr?name=cashier&vpa=${cashierUPI[cashier]}`).then(res => {
|
fetch(`https://upiqr.in/api/qr?name=cashier&vpa=${cashierUPI[cashier]}`).then(res => {
|
||||||
res.text().then(data => getRef('topup_wallet__qr_code').innerHTML = data)
|
res.text().then(data => getRef('topup_wallet__qr_code').innerHTML = data)
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user