I think we store the comment as metadata in Alby Hub too. So even if it’s not set on the invoice it will still show in the transaction list

Reply to this note

Please Login to reply.

Discussion

Yeah, LNURL doesn’t specify to save the comment in the invoice. See https://github.com/lnurl/luds/blob/luds/12.md

But we do it when we can to give more context to the payment

I’m just trying to understand why the invoice that’s created this way (via NWC):

```

const response = await client.makeInvoice({1000, description: "hi"});

```

Allows me to see the description when paying the invoice, but the one that’s created this way does not.

```

const invoice = await ln.requestInvoice({ satoshi: 1000, comment: “hi”});

```

This second method is what I’m using to implement payment for an e-commerce website. Not too much of an issue, but it would be nice if the customer could see the description (e.g. “Order #21shss”) when paying the invoice.

Ah, we check the description hash first rather than the description. Would you like to do a PR to fix the check? https://github.com/getAlby/hub/blob/master/lnclient/phoenixd/phoenixd.go#L286