---
title: "EpcGiroCodeGenerator – API-Referenz · Quittio"
description: "EPC QR code (\"GiroCode\") for SEPA credit transfers, guideline EPC069-12 version 002."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Pdf/Qr/EpcGiroCodeGenerator"
locale: de
meta:
  "og:description": "EPC QR code (\"GiroCode\") for SEPA credit transfers, guideline EPC069-12 version 002."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "EpcGiroCodeGenerator – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [Pdf](https://quittio.dev/docs/api/Quittio/Core/Pdf) \\ [Qr](https://quittio.dev/docs/api/Quittio/Core/Pdf/Qr)

# EpcGiroCodeGenerator

final class in quittio/core · implements [`PaymentQrGenerator`](https://quittio.dev/docs/api/Quittio/Core/Pdf/Qr/PaymentQrGenerator)

`Quittio\Core\Pdf\Qr\EpcGiroCodeGenerator` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Pdf/Qr/EpcGiroCodeGenerator.php#L25)

EPC QR code ("GiroCode") for SEPA credit transfers, guideline EPC069-12 version 002.

Created when the currency is EUR, the payment means is a credit transfer with an IBAN and the amount due is positive; never for credit notes and self-billed invoices.

Options of payload(): "amount" (due|discounted), "value" (a BigDecimal that replaces the amount, e.g. the total of a payment reminder) and "remittance" (replaces BT-83).

## Constants \#

| Constant | Value | Description |
| --- | --- | --- |
| `AMOUNT_DISCOUNTED` | `'discounted'` | |
| `AMOUNT_DUE` | `'due'` | |
| `MAX_BYTES` | `331` | Maximum size of the payload in bytes (EPC069-12, section 5.2). |

## Methods \#

| Method | Description |
| --- | --- |
| `->amount()` | Amount due, or the amount after the first cash discount. |
| `->discountedAmount()` | Amount due after the given cash discount (on its base amount, or on the amount due). |
| `->key()` | |
| `->payload()` | |
| `->supports()` | |

### `amount()`#

```
public function amount(InvoiceData $invoice, bool $discounted = false): ?BigDecimal
```

Amount due, or the amount after the first cash discount.

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$discounted` | `bool` = `false` | |

<dl><dt>Returns</dt>
<dd><code>?Brick\Math\BigDecimal</code></dd>
</dl>

### `discountedAmount()`#

```
public function discountedAmount(
    InvoiceData $invoice,
    CashDiscount $discount,
): ?BigDecimal
```

Amount due after the given cash discount (on its base amount, or on the amount due).

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$discount` | `[CashDiscount](https://quittio.dev/docs/api/Quittio/Core/Data/Payment/CashDiscount)` | |

<dl><dt>Returns</dt>
<dd><code>?Brick\Math\BigDecimal</code></dd>
</dl>

### `key()`#

```
public function key(): string
```

<dl><dt>Returns</dt>
<dd><code>string</code></dd>
</dl>

### `payload()`#

```
public function payload(InvoiceData $invoice, array $options = []): ?string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$options` | `array` = `[]` | |

<dl><dt>Returns</dt>
<dd><code>?string</code></dd>
</dl>

### `supports()`#

```
public function supports(InvoiceData $invoice): bool
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |

<dl><dt>Returns</dt>
<dd><code>bool</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/Pdf/Qr/EpcGiroCodeGenerator#webpage","@type":"WebPage","description":"EPC QR code (\"GiroCode\") for SEPA credit transfers, guideline EPC069-12 version 002.","name":"EpcGiroCodeGenerator – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Pdf/Qr/EpcGiroCodeGenerator","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Pdf/Qr/EpcGiroCodeGenerator"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```