Allow comments for LNURL-PAY invoices #65

Merged
raucao merged 3 commits from feature/lnurlp_memos into master 2022-03-02 14:13:40 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 4c70600d1f - Show all commits

View File

@ -37,7 +37,8 @@ class LnurlpayController < ApplicationController
payment_request = @user.ln_create_invoice({
amount: amount, # we create invoices in sats
memo: memo
memo: memo,
description_hash: Digest::SHA2.hexdigest(metadata(address)),
})
render json: {

View File

@ -49,7 +49,8 @@ class Lndhub
def addinvoice(payload)
invoice = post "addinvoice", {
amt: payload[:amount],
memo: payload[:memo]
memo: payload[:memo],
description_hash: payload[:description_hash]
}
invoice["payment_request"]