update: payment link
This commit is contained in:
parent
9cf70ab8dd
commit
a7f56c69d3
|
|
@ -122,6 +122,7 @@ export const routes = new Elysia()
|
||||||
expires_at: payment.expires_at,
|
expires_at: payment.expires_at,
|
||||||
txs: [],
|
txs: [],
|
||||||
qr_url: await fetchQrBase64(uri),
|
qr_url: await fetchQrBase64(uri),
|
||||||
|
pay_uri: uri,
|
||||||
coin_label: coinInfo.label,
|
coin_label: coinInfo.label,
|
||||||
coin_ticker: coinInfo.ticker,
|
coin_ticker: coinInfo.ticker,
|
||||||
};
|
};
|
||||||
|
|
@ -171,6 +172,7 @@ export const routes = new Elysia()
|
||||||
paid_at: payment.paid_at,
|
paid_at: payment.paid_at,
|
||||||
txs: txs.map((t: any) => ({ txid: t.txid, amount: t.amount, confirmed: t.confirmed, detected_at: t.detected_at })),
|
txs: txs.map((t: any) => ({ txid: t.txid, amount: t.amount, confirmed: t.confirmed, detected_at: t.detected_at })),
|
||||||
qr_url: await fetchQrBase64(uri),
|
qr_url: await fetchQrBase64(uri),
|
||||||
|
pay_uri: uri,
|
||||||
coin_label: coinInfo?.label,
|
coin_label: coinInfo?.label,
|
||||||
coin_ticker: coinInfo?.ticker,
|
coin_ticker: coinInfo?.ticker,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@
|
||||||
<% } else if (inv.status !== 'paid') { %>
|
<% } else if (inv.status !== 'paid') { %>
|
||||||
<!-- QR -->
|
<!-- QR -->
|
||||||
<div>
|
<div>
|
||||||
<img src="<%= inv.qr_url %>" alt="QR Code" class="w-48 h-48 mx-auto rounded-lg bg-white p-2" id="pay-qr">
|
<a href="<%= inv.pay_uri %>"><img src="<%= inv.qr_url %>" alt="QR Code" class="w-48 h-48 mx-auto rounded-lg bg-white p-2" id="pay-qr"></a>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue