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: allow passing metadata in nwc pay_invoice and multi_pay_invoice #270

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Nov 27, 2024

Alby Hub can store this data, enabling interesting applications to be developed, and finally enable a nice way to store payment metadata.

@@ -127,6 +127,7 @@ export type Nip47Notification =

export type Nip47PayInvoiceRequest = {
invoice: string;
metadata?: unknown;
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of unknown couldn't be an empty object or something?

Copy link
Contributor

Choose a reason for hiding this comment

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

i had this demo website to pass lud 18 metadata to extension:https://github.com/pavanjoshi914/Buy-Songs might be outdated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pavanjoshi914 an empty object won't work, it will create issues when you actually try to pass an object with properties set.

@rolznz rolznz merged commit ee07a4c into master Nov 28, 2024
3 checks passed
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.

2 participants