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
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -136,8 +136,8 @@ async def lnurl_callback(
)
return {"status": "OK"}
except:
return {"status": "ERROR", "reason": f"Payment failed"}
except Exception as exc:
return {"status": "ERROR", "reason": f"Payment failed - {exc}"}
# /boltcards/api/v1/auth?a=00000000000000000000000000000000
@@ -215,6 +215,7 @@
emit-value
v-model="cardDialog.data.wallet"
:options="g.user.walletOptions"
:disable="cardDialog.data.id != null"
label="Wallet *"
>
</q-select>