Browse Source

lnurlp: store description as memo.

aiosqlite
fiatjaf 4 years ago
parent
commit
96b80fb3fc
  1. 2
      lnbits/extensions/lnurlp/views_api.py

2
lnbits/extensions/lnurlp/views_api.py

@ -121,7 +121,7 @@ def api_lnurl_callback(link_id):
_, payment_request = create_invoice(
wallet_id=link.wallet,
amount=link.amount,
memo=None,
memo=link.description,
description_hash=hashlib.sha256(link.lnurlpay_metadata.encode("utf-8")).digest(),
)
resp = LnurlPayActionResponse(pr=payment_request, success_action=None, routes=[])

Loading…
Cancel
Save