How to insert QRCode into PDF using receipts gem?
Hi!
I'm using receipts gem to generate pdf. Also I want to insert QRcode for the payment (for example into footer section).
Tell me please, is there any examples of doing so?
I want QRcode to consist of Partner attributes, like iban, money amount, etc. Like: charge.partner.iban
I trying to put qrcode = RQRCode::QRCode.new(self.partner.ico.to_s)
and this png = qrcode.as_png
to receipt method in Charge model
and somehow use it in the footer: footer: ActionController::Base.helpers.image_tag(png.to_data_url)
Maximum all I get is image in the form of the string