Rahat_Arif Posted January 9, 2022 Share Posted January 9, 2022 /* * QR Encoding Functions */ /* * QR Code */ $dataToEncode = [ [1, $companyname], [2, $taxCode], [3, $datecreated], [4, $totalPay], [5, $totalTax] ]; $__TLV = __getTLV($dataToEncode); $__QR = base64_encode($__TLV); $style = array( 'border' => 0, 'vpadding' => 'auto', 'hpadding' => 'auto', 'fgcolor' => array(0, 0, 0), 'bgcolor' => false, //array(255,255,255) 'module_width' => 1, // width of a single module in points 'module_height' => 1 // height of a single module in points ); $pdf->write2DBarcode($__QR, 'QRCODE,L', 155, $pdf->getY(), 30, 30, $style); /* * QR Code Function ends */ I was changes in invoicepdf.tpl file to generate qr in invoice pdf ...but client not accept this...he wants to use addons to call from outside this code and then generate qr both invoice pdf before download and after download invoice ..I am new in whmcs !! Please help me .... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.