API reference / Quittio \ Core \ Pdf \ Qr
ProvidesPaymentSlip
interface in quittio/core · extends PaymentQrGenerator
Quittio\Core\Pdf\Qr\ProvidesPaymentSlip · Source
A payment QR code generator whose code belongs on a payment slip of its own, e.g. the payment part and receipt of the Swiss QR bill. The default templates then print the slip at the bottom of a page of its own instead of the small code next to the bank details.
Methods#
| Method | Description |
|---|---|
->key() | |
->payload() | Text content of the QR code, or null if no code can be created. |
->slip() | The texts of the slip for the code $payload in the locale; null for none. |
->supports() |
key()#
public function key(): string- Returns
string
payload()#
public function payload(InvoiceData $invoice, array<string, mixed> $options = []): ?stringText content of the QR code, or null if no code can be created.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$options | array<string, mixed> = [] |
- Returns
?string
slip()#
public function slip(InvoiceData $invoice, string $payload, string $locale): ?PaymentSlipThe texts of the slip for the code $payload in the locale; null for none.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$payload | string | |
$locale | string |
- Returns
?PaymentSlip
supports()#
public function supports(InvoiceData $invoice): bool| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
bool