GaloyMoney/blink-mobile

Unified QR -- Default to Lightning

Opened this issue · 3 comments

Currently scanning a Unified QR with Blink defaults to onchain, with no way to change it.

Priority task: default to lightning
Ideal state: let the user choose

Details: bitcoinqr.dev

example of string returned from https://donate.hub21.rs/:

bitcoin:BC1QZLPWJXVYJGTGSH7QHNSYL6PR06FKUG43A0UZL8?amount=0.00001739&pj=https://donate.hub21.rs/BTC/pj&lightning=LNURL1DP68GURN8GHJ7ER0DESHGEFWDP6KYV339EE8XT6Z23PJ742FF38925JV9ACXZ7F0DYH4GMJEXFZ4JCJNWANXVENFDUUNGDPKT9H8JKGV3L8N3

example of string returned from https://pay.pavlenex.com:

bitcoin:BC1QUZ8NQRJ3UX86QEHT4F6QQNC75XMNRGCE06ASCH?amount=0.00025885&pj=https://pay.pavlenex.com/BTC/pj&lightning=LNBC258850N1PJKUC3KSP5DKXUDY39Z3PAG74FGE6LGCWA6UHAN084MUU3SRPLXML4NY8FSLPSPP58JJ3Q9A6C9EQ2CTPRCUNGF5RNPQ6A9TRCLSD6GFSQ0JRWZWAX3PQDRQ2PSKJEPQW3HJQ5RPWEKX2MN90QSYGMMWV96XJMMWYQ5Y7UNYV4EZQJ2Y8GS9V5RTXVCNY7PKVEV8Q6262DPN2DJPD5UNXJEFXQR3J0CQPJRZJQTTFTVQU0F5SNECKEP3LKWDUT7MMHHPCYJMLMNJN4HZE8ED7PQ88XRRTWYQQ9USQQYQQQZNDQQQQQXCQ2Q9QXPQYSGQKYWUNGZ5TNRDXKLRHW968GMW3TUECTSSU4STH3MRWLJDUEG9JNVRNFYMJJZN8J5GAWEURCFRW6477MZTVZQAAQX5678NP8TPGPM6EPCQ9NWAGG

so I think the problem is because you are returning a lnurl and not a invoice in the "fallback" of the lightning param.

I'm wondering why not returning an invoice? this is what the bip21 spec suggests as a standard practice. I don't see any example where it's returning a lnurl