PHP developer in Bologna

WordPress for businesses in Bologna, delivered remotely by one developer.

PHP developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.
  • Local WordPress meetup: WordPress Meetup Bologna

My WordPress.org profile

A PHP application that collects fees, fines or permits for an Italian public body does not simply call a payment gateway. It joins pagoPA, the national platform, and from that moment its data model follows pagoPA’s. I am Mariusz Szatkowski, a PHP developer in Gdynia. I work remotely and in writing, and I build the application side of such a connection or implement the design your team already has.

The Due Torri towers seen from the street in Bologna

Photo: FrDr, licensed CC BY-SA 4.0, via Wikimedia Commons.

Every statement below comes from the pagoPA developer portal. Where the portal’s pages did not show a detail when I read them, I say so instead of guessing.

#What does pagoPA do for a creditor body?

The overview page says pagoPA lets creditor bodies (enti creditori, EC) manage collections centrally. Reporting and reconciliation services come with it. A single framework agreement lets creditor bodies and payment service providers (PSP) operate on the platform.

The portal’s own page titles show a third role, the technological partner (partner tecnologico). There are separate Back Office manuals for creditor bodies, for PSPs and for technological partners, and a tutorial on how to become a technological partner. A software supplier that builds a collection system for a municipality, a chamber or a hospital trust works in that third role or on behalf of the body.

For a PHP team this means the legal and organisational set-up comes first, and the code second. The adhesion and the Back Office configuration are the body’s business. The code starts when the credentials exist.

#What are the five steps in the quick start?

The quick start page lists five steps for joining the new connectivity:

  1. create an x509 certificate
  2. generate an API key
  3. authenticate inbound connectivity
  4. set up outbound connectivity
  5. implement the payment processes

The page names the certificate rules. The certificate must come from a Certification Authority that is a member of the CA/Browser Forum. Its Subject CN must match the FQDN of the service URL, and the service URL has the form https://FQDN/nomeservizio. pagoPA S.p.A. may authorise other CAs or certificate types, including for the external test environment.

Steps 3 to 5 are only named on the quick start page itself. The detail sits in the guides, the API reference and the tutorials.

#How does a PHP application authenticate to pagoPA?

The connectivity appendix of the SANP guide describes two directions.

Inbound, to pagoPA. The API key goes in the header Ocp-Apim-Subscription-Key on every call. A missing, wrong or no longer valid key returns HTTP 401 from the API gateway. The keys do not expire, and a primary and a secondary key are both valid, with the primary used normally. The same procedure applies to test and production.

Outbound, from pagoPA to the participant. Mutual authentication is enabled for traffic from the Nodo dei Pagamenti, so the participant’s endpoint is a mutual TLS endpoint. The appendix requires HTTPS with TLS 1.2 or higher and x.509 certificates for the TLS channel. The platform certificate can be downloaded from the GitHub links the page gives, with one file for test (UAT) and one for production. The page lists no IP addresses and says the platform is reachable over the Internet by default.

Two PHP consequences follow. The API key belongs in the environment or a secrets store, never in the repository, and because primary and secondary keys are both valid, rotating one at a time is possible. And the outbound endpoint is a web server configuration job as much as a PHP job: the TLS client certificate check happens in the web server in front of PHP, so the application should read the verified result from the server and not parse certificates itself.

<?php
declare(strict_types=1);

// The path comes from the API reference of the API you call.
function pagopaRequest(string $url, string $method = 'GET', ?array $body = null): array
{
    $headers = [
        'Ocp-Apim-Subscription-Key: ' . getenv('PAGOPA_API_KEY'),
        'Content-Type: application/json',
    ];
    $ch = curl_init($url);
    curl_setopt_array($ch, [
        CURLOPT_CUSTOMREQUEST  => $method,
        CURLOPT_HTTPHEADER     => $headers,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT        => 15,
        CURLOPT_POSTFIELDS     => $body === null ? null : json_encode($body, JSON_THROW_ON_ERROR),
    ]);
    $raw    = curl_exec($ch);
    $status = (int) curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
    curl_close($ch);

    if ($raw === false || $status === 401) {
        throw new RuntimeException("pagoPA call failed, HTTP $status");
    }
    return ['status' => $status, 'data' => json_decode((string) $raw, true)];
}

The sketch only shows where the header goes and that a 401 is a configuration error, not a retry case. Base URLs and paths for each API come from its own page in the catalogue.

#Which pagoPA APIs does a payment service use?

The API catalogue lists 15 entries. Those a collection application is most likely to meet, with the portal’s own descriptions:

APIWhat the portal says it does
GPD, debt position managementcreate, update, delete and retrieve debt positions with their payment options (the page is marked as GPD legacy)
GPD, bulk managementbulk insert, update and delete of debt positions
GPD, receipt retrievalretrieve the payment receipts managed by GPD
Reporting flowsupload and download of reporting flows on the Nodo dei Pagamenti, for PSPs and creditor bodies
Payment at the creditor body front endlets a body start a payment for a cart of up to 5 notices from its own portal
Receipt retrievalretrieve receipts under the unified model if one is lost
Payment notice printingself-service printing of payment notices
Payment options (verifyPaymentOptions)lets a body offer several options for one notice, such as instalments or discounts, through PSPs
eBollo 2.0lets a body charge a citizen a stamp duty from its own website

I could read the catalogue page and the titles and summaries above. The pages of the individual APIs loaded without their request and response sections when I fetched them, so I do not state field names or paths here. The reference of the chosen API is the contract.

#How does a debt position become a payment?

The vocabulary matters before the code does. A creditor body records what a citizen owes as a debt position, and the notice (avviso di pagamento) is the document the citizen pays from, on paper or digitally. The notice guide says its models must be used by creditor bodies that joined pagoPA, and the URLs I read carry version 3.5.1. The guide refers to dedicated APIs for generating the notice as a PDF.

The specifications behind it are the SANP (Allegato B of the payment guidelines, the implementation specifications of the Nodo dei Pagamenti) and the SACI (Allegato A, the identification codes for payment, reversal and reporting). The SANP page shows version 3.12.1, dated 17 November 2026, and says it is read together with the SACI and the guidelines.

For the PHP data model this has a practical shape:

  • one table of debt positions, with a status your own code controls and the identifier pagoPA returns kept as a separate column
  • one table of receipts, written only when a receipt arrives or is retrieved, never inferred from a redirect
  • one table of reporting flows, matched against the receipts at a fixed time of day
  • an audit column on each row naming which call changed it and when

The portal has a tutorial for each of the reporting flows and for handling the APIs asynchronously, and I mention them because both topics decide how the queue and the reconciliation job are designed, not because I have summarised them here.

#Where do receipts and reporting flows fit?

A citizen who pays at a PSP is not on your site. The result comes back to your application as a receipt. The catalogue lists receipt retrieval APIs, one of them for a receipt that was lost. I read that as a hint on how to build, and it is my reading, not a pagoPA rule: take the receipt from the platform as the normal path, and use retrieval as the repair path.

Reporting flows are the second source of truth. The portal describes them as the files on the Nodo that PSPs and creditor bodies upload and download, and it has a tutorial on what they are and how to use them correctly. A reconciliation job in PHP compares the flows with the receipts you stored. A mismatch is a ticket for a person in the accounts office, with both records attached.

A pattern that works in PHP, as engineering advice and not as a pagoPA rule:

  1. Write the receipt row inside a database transaction together with the status change of the debt position.
  2. Make the handler idempotent by keying on the receipt identifier, so a repeated delivery changes nothing.
  3. Answer the platform only after the transaction commits.
  4. Run the reconciliation job from the scheduler, not from a web request.

#Who answers questions and where do tickets go?

The portal states where each question belongs. Questions about the SACI and SANP specifications go to GitHub issues on the pagopa-api repository. Support tickets are opened from the Area Riservata on the pagoPA self-care portal. The adhesion portal has its own guide.

I work from those pages in the same order a body’s IT office would. I cannot open tickets on a body’s behalf, because the Area Riservata is tied to the body’s own login.

#What I do and do not take on

I build the PHP side: the client above, the data model, the receipt handler, the reconciliation job, tests against the UAT environment once the body has its test credentials, and a written runbook so your own team can operate it. I work remotely, in email and shared documents, and I reply within 24 hours on working days.

I do not file the adhesion, I do not interpret what the body must collect, and I do not give legal advice. Those belong to the body and its advisers. An existing Symfony or Laravel application is welcome, and a plain PHP codebase works as well. The PHP developer page describes the general scope.

#Send the scope for a pagoPA connection

If your team plans a collection system on pagoPA, describe the body, the kinds of payment and the stack in the contact form. The first written estimate is free, and it names the APIs I would read first for your case.

Need this service: PHP developer in Bologna?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Latest PHP developer articles

Dec 2, 2026

Laravel Rust: what does it mean for PHP apps?

On 1 December 2026 Taylor Otwell shipped the Laravel Rust beta, and Laravel Go followed a day later. What the framework contains, what the 18x benchmark really measures, what happens to Laravel PHP and WordPress, and when a rewrite makes sense.

Explore other WordPress services and knowledge base