@@ -230,6 +230,7 @@ use \Elegantly\Invoices\Pdf\PdfInvoiceItem;
230230use \Elegantly\Invoices\Support\Seller;
231231use \Elegantly\Invoices\Support\Buyer;
232232use \Elegantly\Invoices\Support\Address;
233+ use \Elegantly\Invoices\Support\PaymentInstruction;
233234use \Elegantly\Invoices\InvoiceDiscount;
234235use Brick\Money\Money;
235236
@@ -303,6 +304,23 @@ $pdfInvoice = new PdfInvoice(
303304 percent_off: 50,
304305 )
305306 ],
307+ paymentInstructions: [
308+ new PaymentInstruction(
309+ name: 'Bank Transfer',
310+ description: 'Make a direct bank transfer using the details below.',
311+ qrcode: 'data:image/png;base64,' . base64_encode(
312+ file_get_contents(__DIR__.'/../resources/images/qrcode.png')
313+ ),
314+ fields: [
315+ 'Bank Name' => 'Acme Bank',
316+ 'Account Number' => '12345678',
317+ 'IBAN' => 'GB12ACME12345678123456',
318+ 'SWIFT/BIC' => 'ACMEGB2L',
319+ 'Reference' => 'INV-0032/001',
320+ '<a href =" #" >Pay online</a >',
321+ ],
322+ ),
323+ ],
306324 logo: public_path('/images/logo.png'), // local path or base64 string
307325 template: "default.layout", // use the default template or use your own
308326 templateData: [ // custom date to pass to the template
0 commit comments