Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding QR Code with certain CRC code failing #13

Open
mamalisyes opened this issue Dec 7, 2023 · 0 comments
Open

Decoding QR Code with certain CRC code failing #13

mamalisyes opened this issue Dec 7, 2023 · 0 comments

Comments

@mamalisyes
Copy link

Hi,

In case of QR string with CRC code starting with '0' or '00' or '000', for example
sample_qr_string = "00020201021126580014A000000615000101065887340212MBBQR1666987031000000000005204581253034585802MY5908TAKOYAKI6006PAHANG630400D7"

when I'm using

emvqr.decode(sample_qr_string),

its failing at validateChecksum because variable expectedCRC return 'D7' while variable checksum return '00D7'.

Is there any way to configure on this issue?

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

No branches or pull requests

1 participant