return a reason of failed payment to the pos; disable a change of wallet in the form

This commit is contained in:
Gene Takavic 2022-10-24 11:48:34 +02:00 committed by GitHub
parent 5c6cd70d3b
commit 49c58cc8d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -136,8 +136,8 @@ async def lnurl_callback(
) )
return {"status": "OK"} return {"status": "OK"}
except: except Exception as exc:
return {"status": "ERROR", "reason": f"Payment failed"} return {"status": "ERROR", "reason": f"Payment failed - {exc}"}
# /boltcards/api/v1/auth?a=00000000000000000000000000000000 # /boltcards/api/v1/auth?a=00000000000000000000000000000000

View file

@ -215,6 +215,7 @@
emit-value emit-value
v-model="cardDialog.data.wallet" v-model="cardDialog.data.wallet"
:options="g.user.walletOptions" :options="g.user.walletOptions"
:disable="cardDialog.data.id != null"
label="Wallet *" label="Wallet *"
> >
</q-select> </q-select>