- Get QR Code
Get the
qr_codevalue from the API response. - Basic Decode
Decode the
qr_codedata, which is encoded using Base64. Example, in JS: - Convert to QR Image URL
Use any known method in your programming language, or an external library, to convert
decodedQrCodeinto a QR image URL. Example using the qrcode npm package (ES6/ES7): - Render QR Image
Set
qr_urlas thesrcattribute of an image element in HTML. Example:
Appendix
Converting the QR code to image
Steps to convert the API qr_code response into a renderable image