Skip to content

Commit

Permalink
[FEAT] PIN in payment description (#23)
Browse files Browse the repository at this point in the history
* PIN in payment description
Added PIN in payment description to make it easier to find failed payment for example

---------

Co-authored-by: dni ⚡ <[email protected]>
  • Loading branch information
supiiik and dni authored Sep 26, 2023
1 parent 37b0daf commit dacf5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def lnurl_params(
"k1": p,
"minWithdrawable": price_msat * 1000,
"maxWithdrawable": price_msat * 1000,
"defaultDescription": device.title,
"defaultDescription": f"{device.title} - pin: {str(lnurldevicepayment.pin)}",
}
price_msat = int(price_msat * ((device.profit / 100) + 1) / 1000)

Expand Down

0 comments on commit dacf5ca

Please sign in to comment.