Skip to content

scan deep link QR from send page#430

Merged
n13 merged 2 commits into
mainfrom
scanner_fix
Mar 31, 2026
Merged

scan deep link QR from send page#430
n13 merged 2 commits into
mainfrom
scanner_fix

Conversation

@n13

@n13 n13 commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

fixes #429

  • if deep link, scan and populate fields
  • if valid quantus address, populate address
  • if anything else - keep scanning (imagine many QR codes on a page, we don't want to fail if we pick up a bad one, we scan until we find a valid one)

if (payment != null) {
_recipientController.text = payment.to;
_amountController.text = payment.amount;
} else {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we set text as result? Seems at this point result is malformed

@n13 n13 Mar 31, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case it's a plain QR code

we validate the input now so we either get a valid payment link or a valid QUAN address as a result from the scanner - the scanner returns null for anything that's not one of these things.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question though, I had to go through the code

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh I see, okay looks good!

@dewabisma dewabisma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looking good, one thing to confirm

@dewabisma dewabisma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ship!

@n13 n13 merged commit f45bf3d into main Mar 31, 2026
1 check passed
@n13 n13 deleted the scanner_fix branch March 31, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

POS scan URL should work within the app

2 participants