tags and extras metadata in payment details dialog.

This commit is contained in:
fiatjaf
2020-10-21 09:50:45 -03:00
parent 85ec111ff0
commit a773584f6f
2 changed files with 31 additions and 2 deletions
+8 -1
View File
@@ -191,11 +191,18 @@ async def api_payments_pay_lnurl():
)
try:
extra = {}
if params.get("successAction"):
extra["success_action"] = params["successAction"]
if g.data["comment"]:
extra["comment"] = g.data["comment"]
payment_hash = pay_invoice(
wallet_id=g.wallet.id,
payment_request=params["pr"],
description=g.data.get("description", ""),
extra={"success_action": params.get("successAction")},
extra=extra,
)
except Exception as exc:
traceback.print_exc(7)