I got help on stackoverflow, but I can't post the link.
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:
Maximum all I get is image in the form of the string