Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.
Configuring GiroCheckout
GiroCheckout uses the hosted Payment Page of GiroCheckout. During payment the customer is securely redirected to GiroCheckout and can pay there using the enabled payment method(s) (e.g. giropay, credit card, direct debit). After completion the customer returns to the shop.
Only single payments with immediate booking (transaction type SALE) are supported, in test and live mode. Refunds, delayed booking (AUTH/CAPTURE) and subscriptions are intentionally not included.
Attention:
GiroCheckout requires the Pro version of the shop extension!
Attention:
GiroCheckout requires the full URL to be configured in the site configuration of your TYPO3 instance, so the notify and return URLs can be generated as absolute URLs.
During checkout the order receives the status prepared when switching to the confirmation page. When the customer clicks "Confirm order and pay by GiroCheckout", the payment page is initialized server-side (paypage/init) and the customer is redirected to the returned payment page URL.
- Successful payment: After a successful payment the customer is redirected to the
successPidpage and the order gets the statuspaid. - Decline/cancel: If the payment is declined or cancelled, the customer returns to the
cancelPidpage. The order stays in statusprepared, so the customer can restart the payment process (the same order record is reused, no order/invoice number has been created yet).
stateDiagram-v2
%% Frontend
[*] --> prepared : Customer assembles the basket\nand starts checkout
prepared --> ordered : Checkout completed
%% GiroCheckout Payment
ordered --> paid : Payment confirmed by GiroCheckout\n(notify + return)\nconfirmation mail\ninvoice number
%% Shipping & completion
paid --> shipped : Shipping performed manually
paid --> processed : Completion without shipping\n(e.g. digital service)
shipped --> processed : Completion after shipping
%% Special case: cancel before payment
prepared --> canceled : Payment failed\nor cancelled
canceled --> prepared : Payment can be\nretried
%% Conditions
note right of processed
Conditions:
- paid_date MUST be set
- shipped_date MUST be set,
if shipping happened
end note
Further actions:
- Return: Possible once the goods have been shipped – i.e. in state
shippedorprocessed. - Delete: Deleting an order is only possible in status
prepared.
Preparations
To use GiroCheckout the following requirements must be met:
- You need a GiroCheckout contract and a project of type Payment Page
- Your TYPO3 instance must be publicly reachable via HTTPS so the notify URL can be called
- The full URL must be configured in the site configuration
Developer account
We requested our developer account by e-mail from kundenservice@s-publicservices.de (alternatively, it can probably also be created here: https://auth.dsv-gruppe.de/zbv/reg). Afterwards we received credentials for the https://portal.dsv-gruppe.de/ portal.
At the beginning, only two applications were enabled for us there:
flowchart TD
D["Your DSV portal"] --> A["ZBV user administration"]
D --> B["ZBV info, news and docs"]
C["GiroCockpit"] --> P["My projects"]
P --> T["Payment page in test mode"]
T --> S["API credentials for your TYPO3 shop"]
This means that an attempt to log in to "GiroCheckout" at https://www.s-publicservices.de/ (which technically performs a redirect to https://girocheckout.de/) redirected us to https://portal.dsv-gruppe.de/public/keine-berechtigung-girocheckout.html:

The page is displayed in German; translated, it reads:
No authorization (GiroCheckout)
You tried to open the application "GiroCheckout". To do so, you need the corresponding authorization in the central user administration ZBV of the DSV-Gruppe. You receive it according to the approval processes of your organization and of the DSV-Gruppe.
Details on activation options can be found here: https://portal.dsv-gruppe.de/freischaltinfo/girocheckout.html
So we were still missing the authorization for the "GiroCheckout" application. The details page provides the following further information:

Translated from German:
Notes on the activation for "GiroCheckout"
GiroCheckout is the multi-payment solution with which municipalities, authorities and public institutions offer digital payments for their online services. GiroCheckout bundles all common online payment methods via a single interface. These can be integrated via GiroCheckout into citizen portals, specialist procedures and online administrative processes.
To use "GiroCheckout" you need a user account in the central user administration ZBV of the DSV-Gruppe and an activation for the application mentioned above.
Registration of a ZBV user account
Some organizations allow a ZBV self-registration with subsequent approval by the admins of your organization. Otherwise, the user administration of your organization can also create a user account for you.
Your activation for GiroCheckout
Your organization usually grants the activation for GiroCheckout automatically when your ZBV user account is created. If you have been redirected to this page when calling GiroCheckout despite a successful login to GiroCheckout, your personal activation for this application can only be granted by your in-house ZBV user administration. Please follow your in-house approval processes and request the role "USER" for the ZBV application "GiroCheckout" there.
Contact and support
For questions about the activation or the application, please contact kundenservice@s-publicservices.de.
So we contacted customer service again and checked the other accesses in the meantime.
DSV-Gruppe application list
The DSV-Gruppe application list at https://auth.dsv-gruppe.de/zba/ shows which authorizations the current user has.

In this case my user is still missing the required authorization. A click on details reveals that the role has been assigned but is not yet fully available.

DSV-Gruppe central user administration
In the central user administration of the DSV-Gruppe at https://auth.dsv-gruppe.de/zad you can grant authorizations to users. Simply click on the menu item Benutzer (users), then Suchen (search), and run the search to display all available users.

Open the relevant user for editing and manage the roles at the bottom. In my case the authorization for the Anwendung GiroCheckout (GiroCheckout application) is still missing, so I click on Rollen hinzufügen (add roles).

Then check the role PILOT GiroCheckout and click Übernehmen (apply).

After applying, you are taken back to the user's detail page and MUST click Speichern (save) once more!

In our case, this change was also confirmed by e-mail. Unfortunately, the DSV-Gruppe application list still did not show a valid authorization. When calling https://pp.girocheckout.de/ or https://girocheckout.de/ we still received error messages – presumably an activation on the part of the DSV-Gruppe was still missing as well.
Later it simply worked – we now also have access to the pre-prod environment of GiroCheckout 2.0 at: https://pp.girocheckout.de/
Setting up GiroCheckout
Once in GiroCheckout, we first set up the required payment methods.

For our test we only set up a credit card – i.e. we select Kreditkarte (credit card) and assign a name. We also enter an e-mail address to receive a notification when a payment has succeeded.

Then we save the new payment method.

Now we have to add a payment page in the Bezahlseite (payment page) menu item.

Here we assign a name for the payment page and select the payment methods. Interestingly, the payment method we had just created was not available at first, but was already selected when the payment page was opened again later.

Furthermore, links to e.g. terms and conditions, imprint, privacy policy, etc. can be added. By saving, you have successfully created your payment page.

In the Technische Daten (technical data) section you can now see the merchant id, the payment page id and your password, which you need for the setup in the TypoScript constants.
GiroCheckout credentials
Three credentials are required to initialize the payment page, which you can find in the GiroCheckout merchant area:
- merchantId The merchant id (Kundennummer) of your GiroCheckout account.
- projectId The payment page id (Bezahlseiten-ID) of your payment page project.
- projectPassword The project password. It is used to HMAC-MD5 sign the requests and to verify the responses.
Attention:
These credentials – especially the project password – must be set exclusively via TypoScript constants. The project password is intentionally not persisted in the database.
These values are set via TypoScript constants:
themes.configuration.extension.shop.checkout.giroCheckout {
active = 1
# Test mode (1 = test payment methods, 0 = live)
sandbox = 1
merchantId = 123456
projectId = 654321
projectPassword = secretProjectPassword
# Optional: comma separated list of payment method ids, empty = all
paymentMethods =
paymentTitle = Order via EXT:shop
}
Notify and return pages
The result processing is triggered through two parallel channels, both HMAC-MD5 signed. Both trigger the same server-side status query:
- Notify (server-to-server): GiroCheckout calls the
notifyUrldirectly. It points to thenotifyPidpage and executes thegiroCheckoutNotifyaction. - Browser return: After leaving the payment page the customer is redirected to the
successPid(success) orcancelPid(cancel/failure) page, where thegiroCheckoutReturnaction is executed.
The notify is delivered via GET; the browser return can use POST. Callback parameters are therefore read exclusively from the URL query for GET and from the parsed request body for POST. A POST containing gc* parameters in both query and body is rejected as ambiguous.
All three URLs are generated automatically by the extension (including a valid cHash). Therefore no additional route in the site configuration is required. The only requirement is that the configured pages contain a plugin of type Shop Checkout or that the standard checkout pages are used.
Attention:
The notify page must not be protected by a password (e.g.
.htaccess), otherwise the server-to-server notification from GiroCheckout will not get through.
Checkout configuration
- active Enable/disable the checkout here.
- checkoutPid The page uid of the checkout page.
- successPid The page uid of the success page. This is the page the customer is redirected to when the payment was successful.
- cancelPid The page uid of the cancel page. This is the page the customer is redirected to on cancel or decline.
- notifyPid The page uid of the notify page. This page is called asynchronously (server-to-server) by GiroCheckout to confirm the payment.
- service The checkout service PHP class (
CodingMs\ShopPro\Service\Checkout\GiroCheckoutCheckoutService). It can be customised if something in the process needs to change. - url The payment page initialisation endpoint is built from
urls.liveorurls.sandbox, depending onsandbox;/girocheckout/v2/paypage/initis appended. The extension queries payment status at/girocheckout/v2/transaction/statuson the same API host. - sandbox Enables the test mode. Internally it is translated into the GiroCheckout parameter
test(1 = test payment methods, 0 = live). - merchantId The merchant id (see credentials).
- projectId The payment page id (see credentials).
- projectPassword The project password (see credentials).
- paymentMethods Optional, comma separated restriction of the offered payment methods. Empty = all payment methods enabled in the project.
- paymentTitle / purpose The purpose displayed on the payment page.
- Currency Is configured globally via
themes.configuration.extension.shop.formatting.currency.currencyCode(ISO 4217, e.g.EUR) and stored on the basket.
Signing and verification
All requests to GiroCheckout are signed using HMAC-MD5 and the project password over the parameter order of the interface description. The amount is transferred in the smallest currency unit (cents). API responses are verified against the hash HTTP header over the unchanged raw JSON body.
Notify and browser return are only triggers for a server-side status query; their payment data is not accepted as proof of payment:
- The
gcHashsignature is recomputed using a fixed list of supported callback fields in the prescribed field order and compared usinghash_equals(). Missing, unknown, non-scalar or malformedgc*fields are rejected. - The order is mapped using the signed
gcMerchantTxId(shop-<uid>).gcReferenceis used only as a lookup criterion for the status query. - The status query uses the payment-page reference on the order.
txreferenceis omitted initially and sent only if GiroCheckout does not return the transaction identified bygcReference. The status response'sreferencemust match that transaction reference. In addition,merchantTxId, the amount inprice_with_tax, the currency on the associated basket, andresultPayment = 4000must match.gcProjectIddoes not necessarily identify the same project as the configured payment page, so it is not used as proof of the order mapping. - API calls enforce TLS certificate verification and connection/overall timeouts. If the status cannot be fetched or authenticated, the order is not completed; the notify endpoint returns HTTP 503 so GiroCheckout can retry.
- For the sessionless handoff to order processing, a
basketOrderHmacis generated server-side only after signature and payment verification, and passed internally; it is not exposed in a URL. - A one-time coupon used by the order is consumed on successful completion using the coupon code stored in the persisted basket; no browser session is required.
- The payment page is initialized with
single=2and can therefore only be paid successfully once. A new order has a new order UID even when the cart and amount are identical. - Confirming an order that has not been completed yet invalidates its previous payment page. Payments on that page do not complete the order; the order only becomes payable again via the newly initialized payment page.
- Only orders in status
preparedare completed. A later checkout does not reset a paid or otherwise completed order toprepared. Before completion, the shop atomically claims the order in the database, so concurrent notify and browser-return requests cannot both start finalization. A claim from a process that stopped unexpectedly becomes available again after 15 minutes. - If a server-to-server notification loses the completion claim, the shop returns HTTP 503 while the order is still
prepared, allowing the payment provider to retry the callback. Once the status is no longerprepared, the callback is acknowledged with HTTP 200. A browser return receives an in-progress notice while finalization is ongoing.
Actions after a successful payment
If you want to perform further actions after a successful payment, you can use the GiroCheckoutPaid event listener.
- Create an event listener:
<?php namespace YourVendor\YourExtension\EventListener; use CodingMs\ShopPro\Event\BasketOrder\GiroCheckoutPaidEvent; class DoSomeThingEventListener { public function __invoke(GiroCheckoutPaidEvent $event): void { /* Do something */ } } - Register this event listener in
Configuration/Services.yaml:services: YourVendor\YourExtension\EventListener\DoSomeThingEventListener: tags: - name: event.listener identifier: 'myListener' event: CodingMs\ShopPro\Event\BasketOrder\GiroCheckoutPaidEvent
Debugging
In case the notify call does not work, you can enable debugging. How this works is described in the section HowTo/Debugging.
Testing
First use the test mode (sandbox = 1). In this mode GiroCheckout provides test payment methods that let you run through the flows (successful payment, decline, cancel, retry).
Make sure your notify URL is publicly reachable via HTTPS so the server-to-server notification gets through.
Test data for payments can be found here: https://docs.girocheckout.de/testdaten/
Calling the checkout success or notify page ends with a 404 error
The call results in:
Page Not Found
Reason: Request parameters could not be validated (&cHash empty)
Solution 1:
Open the install tool and disable the setting pageNotFoundOnCHashError: [FE][pageNotFoundOnCHashError] = false
Solution 2:
Remove the request parameters from the cHash calculation (LocalConfiguration/settings.php):
'FE' => [
'cacheHash' => [
'enforceValidation' => true,
'excludedParameters' => [
'gcReference',
'gcMerchantTxId',
'gcBackendTxId',
'gcAmount',
'gcCurrency',
'gcResultPayment',
'gcHash',
],
],
],
