• I want to generate QR Code with Google chart api & want to print that on Invoice (invoice.php)

    <img src="https://chart.googleapis.com/chart?chs=125x125&cht=qr&chl=upi://pay?pn=ArunKumar&pa=siradhana@upi&tn=OrderID645&am=250.00&cu=INR&choe=UTF-8&chld=L|0" />

    but its generating wrong QR Code, Later on i Found that & symbol is ignored from value of &chal= variable. this is why its ignoring everything after

    &chl=upi://pay?pn=ArunKumar

    from &chl= variable.

    Also,

    when i tried to add a text with Indian rupees symbol ( ? ), it is not able to print on invoice and showing a small box rather than currency symbol.

    why its not supporting this symbol??

    • This topic was modified 5 years, 2 months ago by formalxcom.
    • This topic was modified 5 years, 2 months ago by formalxcom.
    • This topic was modified 5 years, 2 months ago by formalxcom.
    • This topic was modified 5 years, 2 months ago by formalxcom.
    • This topic was modified 5 years, 2 months ago by formalxcom.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    I think if you need to include an ampersand in the URL that the QR Code should hold, you need to urlencode it, otherwise it’s processed as part of the image URL rather than the URL that should be used for the QR code.

    To display the ? symbol for the prices, you need to enable “Extended currency support” in the general plugin settings (normally it autodetects your currency upon installation of the plugin, I’m sorry if that didn’t work on your site).

Viewing 1 replies (of 1 total)
  • The topic ‘Not able to generate & print QR Code using Google chart Api’ is closed to new replies.