Skip to content

Commit 06cba74

Browse files
authored
fix: atm (#224)
1 parent 3aa791f commit 06cba74

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

static/js/tpos.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -857,13 +857,16 @@ window.app = Vue.createApp({
857857
const url = `${window.location.origin}/tpos/api/v1/lnurl/${this.atmToken}/${this.sat}`
858858
const bytes = new TextEncoder().encode(url)
859859
const bech32 = NostrTools.nip19.encodeBytes('lnurl', bytes)
860-
this.invoiceDialog.data = {
860+
this.openInvoiceDialog({
861+
payment_hash: `atm-withdraw-${this.atmToken}-${this.sat}`,
861862
payment_request: bech32.toUpperCase(),
863+
lightning_payment_request: bech32.toUpperCase(),
862864
fallback:
863-
window.location.hostname + '?lightning=' + bech32.toUpperCase()
864-
}
865-
this.invoiceDialog.show = true
866-
this.readNfcTag()
865+
window.location.hostname + '?lightning=' + bech32.toUpperCase(),
866+
payment_method: 'lightning',
867+
payment_options: ['lightning']
868+
})
869+
this.invoiceDialog.dismissMsg()
867870
this.invoiceDialog.dismissMsg = Quasar.Notify.create({
868871
timeout: 0,
869872
message: 'Withdraw...'

0 commit comments

Comments
 (0)