title: generate qrcode with base64 php html
body: <p>so I have this PHP code to generate QR code in WordPress but some tax roles required the code to be in base64 so I want to make my code work with Hexadecimal Encode 64 and utf8
  any help?
  my code</p>
  <pre><code>&lt;?php
          $barcodetype = (get_option('plugindistrict_orderbarcodes_barcodetype') == '' ? 'qrcode' : get_option('plugindistrict_orderbarcodes_barcodetype'));
  
  ?&gt;
          &lt;div class=&quot;pd_order_barcode_div&quot; style=&quot;text-align: right; margin: 40px; &quot;&gt;
           
                   &lt;img class=&quot;pd_order_barcode&quot; style=&quot;margin-top: -155; margin-right: 50; width:20%  &quot; src=&quot;https://2tfh7u96zl.execute-api.us-east-1.amazonaws.com/added-jest-tests/barcode?type=&lt;?php echo $barcodetype.'&amp;value='.(($barcodetype == 'qrcode') ? $checkinpath .'Name:Sleep Blue'.'%0A'.'Tax No:302188012300003'.'%0A'.'Bill NO:'.$this-&gt;get_formatted_number().'%0A'.'Date-Time:'.$this-&gt;get_formatted_date().'%0A'.'Bill Amt With Vat:'.$order-&gt;get_total().'%0A'.'Vat Amt:'.$order-&gt;get_total_tax(): $order).'&amp;includeText='.(get_option('plugindistrict_orderbarcodes_showtextupc') == 1 ? 'true' : 'false'); ?&gt;&quot; /&gt;
  
  ``
  </code></pre>