It uses the same code though. That’s weird.

I checked yours against mine and only mine has the description set. Probably we have an issue in the Phoenix backend

https://getalby.com/lnurlp/bullish/callback?amount=1000&comment=hi

https://getalby.com/lnurlp/rolznz/callback?amount=1000&comment=hi

Reply to this note

Please Login to reply.

Discussion

Yeah I don’t see the description on the sender side but I do see it on the receiver side. 🤔

1. Your invoice in Primal

2. My invoice in Primal

3. My payment receipt in Alby Go

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

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