Jump to content

Not acceptable!!!!!!!!!!!


Rahat_Arif

Recommended Posts

/*
 * 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 ....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated