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

added sample invoice #65

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

Conversation

pseudozach
Copy link
Contributor

This adds a sample invoice field that can be clicked to retrieve an invoice from the lnurlp enpoints, this can make it easier for wallets/services that do not support the spec fetch quick invoices.

Screenshot from 2021-09-30 12-16-32

I tested to make sure it doesn't break anything, I hope I didn't miss something.

@vercel
Copy link

vercel bot commented Sep 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/andrerfneves/lightning-decoder/7n6cNUx2cyCz4YrZFt8zbD5u4xJb
✅ Preview: https://lightning-decoder-git-fork-pseudozach-master-andrerfneves.vercel.app

@andrerfneves
Copy link
Owner

@pseudozach not sure how this got missed for so long, my fault. I just tried it and landed on this after typing [email protected] for example. Maybe something needs changing?

Screen Shot 2022-07-02 at 4 06 57 PM

@pseudozach
Copy link
Contributor Author

@andrerfneves to be honest I get an error even on the live instance with your zbd address:
Screen Shot 2022-07-13 at 12 26 24 PM

meanwhile, it works in both versions with my ln address. I think it's due to zbd ln address returning bunch of additional fields:

[email protected]

{
"status": "OK",
"callback": "https://pay.pseudozach.com/.well-known/lnurlp/me",
"tag": "payRequest",
"maxSendable": 100000000,
"minSendable": 1000,
"metadata": "[["text/identifier","[email protected]"],["text/plain","Satoshis to [email protected]."]]",
"commentAllowed": 0,
"domain": "pay.pseudozach.com",
"username": "me"
}

[email protected]

{
"minSendable": 10000,
"maxSendable": 150000000,
"commentAllowed": 150,
"tag": "payRequest",
"metadata": "[["text/plain","andre - Welcome to ZEBEDEE! ;)"],["text/identifier","[email protected]"],["image/png;base64","/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyY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8hLjlIUeDcpP9akPkjm3XPid8/OmYZB//9k="]]",
"callback": "https://api.zebedee.io/v0/process-static-charges/d0f2c3da-e836-480a-bf8c-f5d5b167d6f8",
"payerData": {
"name": {
"mandatory": false
},
"identifier": {
"mandatory": false
}
},
"disposable": false,
"domain": "zbd.gg",
"username": "andre"
}

@vercel
Copy link

vercel bot commented Jul 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lightning-decoder ✅ Ready (Inspect) Visit Preview Jul 13, 2022 at 8:39PM (UTC)

@pseudozach
Copy link
Contributor Author

@andrerfneves ok I've fixed the issue you were seeing, it was due to payerData object sent by zbd.gg lnaddress.
should be ok to merge now.

@pseudozach
Copy link
Contributor Author

@andrerfneves sir friendly reminder. I've 2 PRs pending. Let me know any issues.

@andrerfneves andrerfneves changed the base branch from master to main October 2, 2023 01:26
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