Skip to content

Commit 4945687

Browse files
committed
readme
1 parent dd9617c commit 4945687

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ use \Elegantly\Invoices\Pdf\PdfInvoiceItem;
230230
use \Elegantly\Invoices\Support\Seller;
231231
use \Elegantly\Invoices\Support\Buyer;
232232
use \Elegantly\Invoices\Support\Address;
233+
use \Elegantly\Invoices\Support\PaymentInstruction;
233234
use \Elegantly\Invoices\InvoiceDiscount;
234235
use 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

Comments
 (0)