Jump to content

How to Add Payment Details to your WHMCS PDF Invoices


Recommended Posts

Goood day

 

I am trying to check if the client has selected the bank transfer so that on the invoice it will populate with banking details but i get the error below

 

BANK TRANSFER PAYMENTS

if ($paymentmethod=="Bank Transfer") {
$pdf->SetXY(15, 88);
$pdf->SetFont('$pdfFont','B',10);
$pdf->Cell(180,15,"Payment Due Via Bank Transfer",0,0,'R');
$pdf->Ln(10);
$pdf->SetFont('$pdfFont','',9);
$pdf->Cell(0, 4, "Bank: Standard Bank", 0, 1, 'R');
$pdf->Cell(0, 4, "Name: MOLTEQ BUSINESS SOLUTIONS (PTY) LTD", 0, 1, 'R');
$pdf->Cell(0, 4, "Branch code: 6105", 0, 1, 'R');
$pdf->Cell(0, 4, "Account No: 10 15 336 681 6", 0, 1, 'R');
$pdf->Cell(0, 4, "SWIFT code: 123456789", 0, 1, 'R');
$pdf->Cell(0, 4, "Reference: #$invoicenum", 0, 1, 'R');
$pdf->Ln(10);
}

but i get this errror

TypeError: Argument 1 passed to WHMCS\Order\Order::add() must be of the type int, null given, called in /home/ftsmnyjc/clients.virtualcollab.co.za/includes/orderfunctions.php on line 0 and defined in /home/ftsmnyjc/clients.virtualcollab.co.za/vendor/whmcs/whmcs-foundation/lib/Order/Order.php:0
Stack trace:

0 /home/ftsmnyjc/clients.virtualcollab.co.za/includes/orderfunctions.php(0): WHMCS\Order\Order::add(NULL, '8276580533', 'bank transfer', '', 0, 74, 0)

1 /home/ftsmnyjc/clients.virtualcollab.co.za/cart.php(0): calcCartTotals(NULL, true, false)

2

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