From 156dca5fe74b3cdf82d52fd32b244dc6671813f2 Mon Sep 17 00:00:00 2001 From: Arc Date: Wed, 6 May 2026 00:38:24 +0100 Subject: [PATCH] fix: atm --- static/js/tpos.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/static/js/tpos.js b/static/js/tpos.js index 0eb7696..eeb3d3c 100644 --- a/static/js/tpos.js +++ b/static/js/tpos.js @@ -857,13 +857,16 @@ window.app = Vue.createApp({ const url = `${window.location.origin}/tpos/api/v1/lnurl/${this.atmToken}/${this.sat}` const bytes = new TextEncoder().encode(url) const bech32 = NostrTools.nip19.encodeBytes('lnurl', bytes) - this.invoiceDialog.data = { + this.openInvoiceDialog({ + payment_hash: `atm-withdraw-${this.atmToken}-${this.sat}`, payment_request: bech32.toUpperCase(), + lightning_payment_request: bech32.toUpperCase(), fallback: - window.location.hostname + '?lightning=' + bech32.toUpperCase() - } - this.invoiceDialog.show = true - this.readNfcTag() + window.location.hostname + '?lightning=' + bech32.toUpperCase(), + payment_method: 'lightning', + payment_options: ['lightning'] + }) + this.invoiceDialog.dismissMsg() this.invoiceDialog.dismissMsg = Quasar.Notify.create({ timeout: 0, message: 'Withdraw...'