Visa Developer Community

Highlighted
Helper

CRC Value In QR

Hello,

I'm working on QR generation for Mvisa. Which contains TLV(Tag Length and Value). I'm facing difficulties while generating CRC value (tag number:63) and its length is 4. Can you please help me with the java code to generate the CRC value? 

Looking forward to your reply. 

Thanks in advance.

4 REPLIES 4
Highlighted
Community Manager

Re: CRC Value In QR

Hey @nikhilp  - there is one jar we have which you can use to generate QR. You don't need code, just use that jar and relevant class in jar. You can find this in your assets tab - it has all the documentation you may need in there. 

 

You can find the assets tab in your project dashboard - more here: https://community.developer.visa.com/t5/Developer-Tools/Tutorial-How-to-Create-a-Project-w-Visa-Deve...

 

Let me know if you find what you are looking for. 

 

Thanks,

Ricardo 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Highlighted
Helper

Re: CRC Value In QR

Hello,

 Thank you for your valuable reply.

I'm not able to use this jar file in my java code. Can you please help with the code to generate the CRC value.

Highlighted
Community Manager

Re: CRC Value In QR

What SDK asset are you using to generate QR code? 

 

If you are using Generator SDK jar, there is a method named generateQrCodeData which you can use to generate QR tlv string. In this method, user can put all the needed tags except crc tag values. This method will generate tlv string along with crc value in it.

 

Want to try this out and let me know what you get?

 

 

 

 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Highlighted
Community Manager

Re: CRC Value In QR

Hey @nikhilp  - were you able to figure it out?

 

 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.