ACINQ / phoenix

Phoenix is a self-custodial Bitcoin wallet using Lightning to send/receive payments.
https://phoenix.acinq.co
Apache License 2.0
644 stars 97 forks source link

Error using BIP21 URI with BOLT 11 invoice #346

Open notmandatory opened 1 year ago

notmandatory commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

dpad85 commented 1 year ago

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 commented 1 year ago

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