Add configurable LNbits invoice memos and pubkey metadata
Read INVOICE_MEMO_YEARLY and INVOICE_MEMO_LIFETIME from the environment and pass the user pubkey in LNbits payment extra for invoice creation.
This commit is contained in:
@@ -102,6 +102,8 @@ func run() error {
|
||||
YearlySats: cfg.Lightning.PriceYearlySats,
|
||||
LifetimeSats: cfg.Lightning.PriceLifetimeSats,
|
||||
ExpiryMins: cfg.Lightning.InvoiceExpiryMins,
|
||||
MemoYearly: cfg.Lightning.InvoiceMemoYearly,
|
||||
MemoLifetime: cfg.Lightning.InvoiceMemoLifetime,
|
||||
}, cfg.Domain)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user