pull down to refresh
0 sats \ 2 replies \ @SwapMarket 1h
Very sleek, thanks for sharing! For NFC to work, what does the client need to run on his phone? Any writeup on how all this works?
reply
0 sats \ 1 reply \ @SwapMarket 1h
like this? https://www.atlasrfidstore.com/rfid-insider/how-to-write-a-url-to-an-nfc-tag-and-use-it-in-the-office
Not clear how the POS communicates the amount to pay with a static URL. The database behind merchant's account at Coinos awaits one payment at a time?
reply
0 sats \ 0 replies \ @asoltys2 OP 48m
All our Coinos users get a static LNURL like this: https://coinos.io/p/bob
If you visit that URL when there's an active invoice for "bob" created in the last 5 minutes, it will have the minSendable and maxSendable amounts set to the amount of the invoice, otherwise the sender gets to choose how much to pay.
The NFC tag has a URL that looks like this: https://coinos.io/ln/lnurl1dp68gurn8ghj7cm0d9hx7uewd9hj7up0vfhkysuzmtk
The lnurl at the end there is the encoded version of the static LNURL from above. By passing it at the end of that /ln path we're telling Coinos that we want to pay it.
If you're logged into Coinos with auto-pay turned on for that recipient, it'll just get paid immediately
If you're logged into Coinos but without auto-pay, you'll see a confirmation screen and a "send" button
If you're not logged into Coinos at all, you'll see a QR code and a button to "open wallet" which should launch your Lightning wallet app of choice.
So users don't need to have anything special on their phone to tap the NFC tag. They just have to have NFC enable (which is always the case in iOS) and the link should open in their web browser.
reply
0 sats \ 0 replies \ @0xbitcoiner 4h
@remindme in 4 hours
reply