Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add extra metadata for payments (POC) #247

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Jan 8, 2025

Closes #246
Closes #203

This adds much more context to the transaction list than was there before (normally you pay to a lightning address and afterwards see an empty transaction with no info about it except the amount)

Needs planning on how the data should be structured, there are some new concepts here. I am just showing what is possible with being able to set metadata when paying. This PR also includes showing a lud-18 payer name for received payments.

image

image

image

metadata: {
recipient_data: {
identifier: recipientIdentifier,
description: recipientDescription,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the naming and where description is set here is not great. It comes from the LUD-06 metadata for the invoice. I don't really think this should be in recipient_data?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just remove this from the PR.

@rolznz
Copy link
Contributor Author

rolznz commented Apr 9, 2025

TODOs:

  • use typings from Alby JS SDK once it LNClient is merged
  • remove description from recipient data
  • cleanup how components are rendered based on what metadata we have (design it so we can easily display different types of data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display payer_data for received payments Pass metadata to pay_invoice when paying to a lightning address
1 participant