perawallet / pera-wallet

Source code for Pera Wallet, simply the best Algorand wallet.
https://perawallet.app
Other
178 stars 62 forks source link

Payment Prompt - QR code paring behaviour #33

Closed ghost closed 11 months ago

ghost commented 2 years ago

When using an Algorand payment prompt, we are noticing two different behaviours when buyers try to scan the QR code.

Scan from Homepage

The Algorand wallet scans the QR code with the asset id specifed but still asks the user to select an asset. Is this the expected behaviour?

Scan from Send Transaction Screen

The Algorand wallet scans the QR code from the "Scan QR" button but silently ignores the amount and asset id mismatch. This has caused buyers to accidentally send the wrong amount or use a different asset than the one specified.

Is it possible to warn the user and ask them to re-scan the QR code from the homepage? The current behavior is causing some users to make mistakes and they have to create support tickets to manually resolve the issue.

Sample Payment Prompt

Payment Prompt: algorand://7Y5T5MWBJP6OPY6NULXYBKXBWTWVMEGPO7GD7FE3TRPIEZC4UX3BOC76NU?amount=949069539&xnote=dXdK26WiTeSh3tZ8yDjcCg&asset=10458941

QR Code, image

yigitguler commented 11 months ago

This issue is fully functional at the moment.