See the documentation of the QRCoder and QRCoder Payload libraries, but both libaries and the demo should be pretty self-explaining.