IC-Pay-Protocol

I plan to implement QR code payments when I make a mobile version of my Grind Wallet.
I like this initiative:
https://github.com/LEEKOHCHING/ICP-Pay-Protocol
because they created a format almost identical to what I made for myself.

I see on the forum that this is not the first such initiative and I am afraid that if we do not standardize this in the ICRC, there will soon be a lot of competing formats that are not compatible with each other.

The improvements I would add to the presented format are:

  1. amount=e8s not float (or rather not 8, just as much as the given token has).
  2. adding a checksum, even though the QR code has some sum, when it comes to payments it is a serious matter
  3. it should rather be a URI, so that it can be registered in iOS/Android and read directly from the camera application, which will then automatically launch the wallet application

Thereā€™s an ongoing discussion for a ICRC payment url standard in the Tokenization WG and NFT WG.

Weā€™re currently re-organizing and updating the standards and processes in these WG(s). Iā€™ll post an update here when there are any updates.

2 Likes

Ok thank you. I didnā€™t found it on the ICRC list. Iā€™ll read it.

Maybe it is better to use double shashes in scheme:// ?
Launching a wallet app from native camera app will be critical for best user experience.
Iā€™m not mobile expert but GPT says that iOS and Android generally accept URI without double slashes but it is not preffered, and some OEM Android producers with their custom camera apps could not support it.
Worth to test anyway.

Yeah I remember this came up in the meeting, if I remember correctly itā€™s one of the todo items to be checked and adjusted if needed.

1 Like