Loading...
Skip navigation
Black Week: 25% off all TYPO3 extensions from November 23 to 30 – services and SaaS offers are excluded.
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 successPid page and the order gets the status paid.
  • Decline/cancel: If the payment is declined or cancelled, the customer returns to the cancelPid page. The order stays in status prepared, 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 shipped or processed.
  • 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:

GiroCheckout_MissingAuthorization.png

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:

GiroCheckout_MissingAuthorization-Details.png

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.

GiroCheckout_Anwendungsliste.png

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.

GiroCheckout_Anwendungs-Details.png

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.

GiroCheckout_ZentraleBenutzerverwaltung.png

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).

GiroCheckout_ZentraleBenutzerverwaltung_Details.png

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

GiroCheckout_ZentraleBenutzerverwaltung_AddRole.png

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

GiroCheckout_ZentraleBenutzerverwaltung_DetailsSave.png

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.

GiroCheckout_Einrichten_Bezahlarten.png

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.

GiroCheckout_Einrichten_BezahlmethodeHinzufuegen.png

Then we save the new payment method.

GiroCheckout_Einrichten_BezahlmethodeHingefuegt.png

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

GiroCheckout_Einrichten_Bezahlseite.png

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.

GiroCheckout_Einrichten_BezahlseiteHinzufuegen.png

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

GiroCheckout_Einrichten_BezahlseiteHinzugefuegt.png

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:

  1. Notify (server-to-server): GiroCheckout calls the notifyUrl directly. It points to the notifyPid page and executes the giroCheckoutNotify action.
  2. Browser return: After leaving the payment page the customer is redirected to the successPid (success) or cancelPid (cancel/failure) page, where the giroCheckoutReturn action 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.live or urls.sandbox, depending on sandbox; /girocheckout/v2/paypage/init is appended. The extension queries payment status at /girocheckout/v2/transaction/status on 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 gcHash signature is recomputed using a fixed list of supported callback fields in the prescribed field order and compared using hash_equals(). Missing, unknown, non-scalar or malformed gc* fields are rejected.
  • The order is mapped using the signed gcMerchantTxId (shop-<uid>). gcReference is used only as a lookup criterion for the status query.
  • The status query uses the payment-page reference on the order. txreference is omitted initially and sent only if GiroCheckout does not return the transaction identified by gcReference. The status response's reference must match that transaction reference. In addition, merchantTxId, the amount in price_with_tax, the currency on the associated basket, and resultPayment = 4000 must match. gcProjectId does 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 basketOrderHmac is 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=2 and 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 prepared are completed. A later checkout does not reset a paid or otherwise completed order to prepared. 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 longer prepared, 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.

  1. 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 */
         }
     }
  2. 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',
        ],
    ],
],
Last change: 2026-11-23
Documentation
TYPO3 Shop Extension

TYPO3 Shop by coding.ms

An extensive shop for TYPO3 for realizing Webshops, Online-Shops or Payment-Subscriptions, comparable with tt_products, Cart or Aimeos. It includes PayPal, PayPal-Checkout, Klarna, Stripe, Bookmarks, UPS-API, invoice generation, a backend module, compare feature, graduated prices, plus product variants, filters, and tax and shipping logic for practical shop operations.

Menu

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
FO3_________KFO______
__L____F____R_S___KUH
HYL___TSY___Z98______
__8____P______M___Z65
8Q1_________5UB______
Dein Online-
Adventskalender
Entdecken →