You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Customizing the Invoice Template](#customizing-the-invoice-template)
@@ -528,6 +530,44 @@ $pdfInvoice = new PdfInvoice(
528
530
);
529
531
```
530
532
533
+
### Adding Payment Instructions
534
+
535
+
You can include detailed payment instructions directly within the generated PDF invoice. This can be helpful for providing bank transfer details, QR codes for quick payments, and custom payment links.
536
+
537
+
Here’s an example of how to add a payment instruction:
538
+
539
+
```php
540
+
use \Elegantly\Invoices\Pdf\PdfInvoice;
541
+
use \Elegantly\Invoices\Support\PaymentInstruction;
542
+
543
+
$pdfInvoice = new PdfInvoice(
544
+
// ...
545
+
paymentInstructions: [
546
+
new PaymentInstruction(
547
+
name: 'Bank Transfer',
548
+
description: 'Make a direct bank transfer using the details below.',
> **Note:** You can include HTML tags (e.g., links) within the `fields` array for interactive content.
566
+
567
+
#### QR Code Generation
568
+
569
+
To dynamically generate QR codes, I recommend using the [`chillerlan/php-qrcode`](https://github.com/chillerlan/php-qrcode) package. It provides a simple and flexible API for generating QR codes in various formats.
0 commit comments