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

Error using BIP21 URI with BOLT 11 invoice #346

Open
notmandatory opened this issue Mar 6, 2023 · 4 comments
Open

Error using BIP21 URI with BOLT 11 invoice #346

notmandatory opened this issue Mar 6, 2023 · 4 comments

Comments

@notmandatory
Copy link

notmandatory commented Mar 6, 2023

I'm trying to pay a $1.00 invoice generated by a BTCPay server with my Phoenix wallet by scanning a BIP21 URI QR code. I get the app pop-up asking if I want to pay on-chain or lightning. If I select lightning I get the error "Amount must be at least 10,000 sat". My payment channel has 431,721 local, 2,354,390 remote. I get the same error if I select paying on-chain. The decoded QR code value is:

bitcoin:BC1Q8D8H28YQ235K2Z686GU4YQJKGDPFDPR8PU6SPW?amount=0.0000445&lightning=LNBC44500N1PJQVS02PP5W8XQRAD5WP37KX98SFRF8LEEXFU50D9P2FQDSCL4AXM3XU7AQJFQDR02PSKJEPQW3HJQSNFW33K76TWYPGXZUNTYQ5Y7UNYV4EZQJ2Y8GS8QMMN94SHQUZLX3892SF3W9J8GNTZXUU4SE6XF4GHG3TTDA95VCMDGSMHY2GCQZPGXQZUYSP575VKA7AEUE0NQSMVL8S2LQ8PWUJ3HNT4EL24DCC2Y98R8H9VJQ5S9QYYSSQD4CTS0FXANDRN0QF4Y3Y89PGU6XDEHE4L3L5A856V8U9R2WHL039VZ86ZCTR37R0P336S9FJA2WMMM2Y7M04X6RZU0F42ENQCNW6SMGQNP0F5V

OS: iOS 16.3.1
Pheonix version: 1.5.6
BIP21 URI / QR Code creator: BTCPayServer

QR code screen shot:

IMG_3066

@remyers
Copy link

remyers commented Mar 7, 2023

When I scan the invoice with Phoenix on Android version 1.4.26 (41) I also see the options "Pay on-chain" and "Pay with Lightning". If I select the latter option, then it properly brings up the lightning payment screen. If I try to pay it, it's rejected because it was already paid. But this shows it was trying to make a lightning payment at least and not an on-chain payment.

@remyers
Copy link

remyers commented Mar 7, 2023

This looks like a duplicate of Issue PR #321 - @notmandatory you should check if this works for you too.

@dpad85
Copy link
Member

dpad85 commented Mar 7, 2023

Thanks for the ping @remyers it's indeed a duplicate of an error on iOS, and the fix is not available yet on the current production version (version 1.5.6). It will be with version 1.6.0. I'll leave this issue open until 1.6.0 is released.

Note that there's a workaround as mentioned in #321 (change the amount, the 10k sat error will be dismissed). Sorry for the inconvenience.

@notmandatory
Copy link
Author

Thanks, yes I can confirm this is a duplicate of #321 and the same work around worked for me.

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

No branches or pull requests

3 participants