Przelewy24 integration through the REST API

VulCode sets up Przelewy24 payments (one of Poland's largest payment gateways) where a ready plugin cannot reach: in your own store, client panel, app, bookings or subscription. An integration costs from PLN 999 (about EUR 220), usually takes 2-3 days, and we send a free quote within an hour. We verify every payment on the server before order fulfilment starts. We also handle BLIK (Poland's mobile payment method) and refunds issued from your own panel, without logging in to Przelewy24.

Przelewy24

A plugin or an API integration

Przelewy24 ships ready plugins for popular platforms. We write code only where there are none.

A plugin is enough

  • Your store runs on WooCommerce, PrestaShop, Magento or Shopify, for which Przelewy24 provides plugins.
  • Shoper (a Polish store platform) has a partner module you install in the store panel.
  • After payment, a status change inside the platform is all you need.

We install and configure the plugin, so you do not pay for code you do not need.

You need an API integration

  • Payment happens in your own system: a client panel, mobile app, booking engine or a platform with accounts.
  • Something has to happen after payment: a service activation, an invoice, a shipment, a seat allocation.
  • You want refunds, BLIK on your own page or splitting payments between sellers.

An integration with Przelewy24 in your system, with every payment verified on the server and statuses in your panel.

Payment gateway comparison

The path of one payment

The customer returning to your site confirms nothing. The notification and a server-side verification decide.

CustomerYour serverPrzelewy24
Customer → Your server
Clicks "Pay"

The order gets its own unique payment number

Your server → Przelewy24
Transaction registration

The amount, the return page for the customer, the notification address and a signature with the panel key

Przelewy24 → Your server
Payment identifier
Your server → Customer
Redirect to the payment page

The Przelewy24 payment page for this order

Customer → Przelewy24
Pays by transfer, BLIK or card
Przelewy24 → Your server
Result notification

Sent whether or not the customer returned

Your server → Przelewy24
Transaction verification

Without verification the transaction is not complete

Your server → Customer
Order paid

Only now does the status change and fulfilment start

When your server misses a notification

Przelewy24 resends the notification until the transaction is verified. The schedule is fixed and documented.

  1. 01after 3 min
  2. 02after 5 min
  3. 03after 15 min
  4. 04after 30 min
  5. 05after 60 min
  6. 06after 150 min
  7. 07after 450 min

No more notifications, unverified transaction

Every notification the same way
Retries carry the same data as the first notification, so the integration recognises a repeat: a second notice about a paid order never ships a second parcel.
Intervals with tolerance
The documentation gives intervals to within 5 minutes. We build nothing that assumes exact timing.
Checking without a notification
If a notification does not arrive, the module asks Przelewy24 about the transaction by its number instead of waiting for the last retry.
Monitoring the address
The address notifications arrive at is monitored around the clock. We see it fail before a customer waiting for confirmation does.

Payment statuses in your system

This is how we run a payment on your order.

  1. 01 new

    Transaction registered, the customer has the payment link.

  2. 02 in progress

    The customer is on the payment page or confirming BLIK in the banking app.

    • cancelled or timed out abandoned

      The customer cancelled or time ran out. The order waits for another attempt.

  3. 03 notified

    A notification arrived, but the amount and signature are not yet checked.

    • does not match mismatch

      The amount or signature does not match the order. We stop and alert a person.

  4. 04 paid

    Verification passed. Only this status starts fulfilment.

    • refund from your panel refunded

      A full or partial refund ordered from your panel, without signing in to the gateway.

What the Przelewy24 API offers

A selection of the methods we use most. The REST documentation lists them all.

Card services are not enabled by default, in production or the sandbox.

  1. 01 POST /transaction/register
  2. 02 PUT /transaction/verify
  3. 03 POST /transaction/refund
  4. 04 BLIK: chargeByCode, chargeByAlias
  5. 05 POST /transaction/register/splitpayment
  6. 06 GET /payment/methods/{lang}

01 POST /transaction/register

What it does Registers a transaction and returns a token to redirect the customer.

Note Requires amount, description, email, country, language and sign, among others.

02 PUT /transaction/verify

What it does Confirms the transaction after the notification.

Note Its own checksum with orderId.

03 POST /transaction/refund

What it does Refunds one or many transactions.

Note The refund status arrives in a separate notification.

04 BLIK: chargeByCode, chargeByAlias

What it does BLIK by code on your own page, or code-free by a saved alias.

Note In the sandbox a successful code looks like 777XXX.

05 POST /transaction/register/splitpayment

What it does A payment under the Polish split payment mechanism (a VAT-splitting scheme).

Note VAT amount, invoice number and tax number in the request.

06 GET /payment/methods/{lang}

What it does Methods available for a given amount and currency.

Note Useful for your own method picker at checkout.

06

Pitfalls we check before launch

Each comes straight from the Przelewy24 documentation, and each can stop payments in production.

  1. 01

    Data and types

    orderId as BIGINT

    The transaction id can exceed the signed INT range. The database column and code casts have to allow it.

  2. 02

    Amounts in grosze (1/100 PLN)

    Amounts in requests and notifications are integers. We compare them with the order before verifying.

  3. 03

    A unique sessionId

    It is the key that ties a notification to an order and lets us look the transaction up if a notice is lost.

  4. 04

    IP filtering

    Przelewy24 publishes its server address ranges and recommends accepting notifications only from them.

  5. 05

    TLS 1.2 on the server

    It is the gateway's minimum requirement for connections to your server.

  6. 06

    Sandbox access

    The test account only opens once you have production access, so you start the gateway agreement early.

Who does what

The money goes to your account, so you sign with the gateway. We build everything that happens in code.

You

  • You open the Przelewy24 account and sign the agreement.
  • You hand over sandbox and production keys through a secure channel.
  • You sign off the payment path on the test version.

VulCode

  • Registration, notifications, verification and refunds in your code.
  • Payment statuses on the order and an event log.
  • Tests of successful, rejected and abandoned payments in the sandbox.

Przelewy24

  • Runs the payment methods and settles the funds.
  • Enables extra services such as cards, code-free BLIK and marketplace.
  • Retries notifications on its own schedule.

Integration glossary

Terms you will meet in the documentation and when we talk about the rollout.

merchantId, posId
The merchant and point-of-sale ids from the Przelewy24 panel.
CRC
A key from the panel that goes into the checksum. It never reaches the browser.
sessionId
Your unique transaction id, usually tied to the order.
orderId
The numeric id assigned by Przelewy24, delivered in the notification.
urlStatus
Your server address that receives payment result notifications.
Split payment
The Polish split payment mechanism with a VAT amount. Not the same as splitting between sellers.
Marketplace
A separate Przelewy24 service: one customer payment split between the platform owner and sellers.
BLIK alias
A remembered BLIK customer who confirms the next payment in the app, without a code.

Common questions about Przelewy24

The main questions about Przelewy24: account, BLIK, notifications, refunds, cost and code.

Who opens the Przelewy24 account?
You do, as the merchant, because the money goes to your account. We help with setup, but you sign with the gateway directly.
How long does it take?
Usually 2-3 days. The exact dated schedule comes with the free quote, and if anything is going to move, you know in advance.
How much does a Przelewy24 integration cost?
A Przelewy24 integration costs from PLN 999 (about EUR 220) under our API and integrations service, for a payment with a redirect and server-side verification, and the rollout usually takes 2-3 days. BLIK on your page, refunds from the panel and Marketplace raise the price. You pay the transaction commission to Przelewy24. The quote is free and comes back within an hour.
Will payments work in a mobile app?
Yes. Your server registers the transaction, the app opens the payment page and asks the server for the order status on return.
Can I have BLIK without a redirect?
Yes, if Przelewy24 enables it on your account. The customer enters the code on your page and can pay by alias next time, without a code.
Can you handle a platform with many sellers?
Yes, through the Przelewy24 Marketplace service, which splits funds between the platform owner and sellers. It needs a separate arrangement with the gateway.
What if the customer pays but the page does not refresh?
Nothing bad. Payment is decided by the notification and server-side verification, not the customer's return, so the order changes status anyway.
Can someone fake a payment confirmation?
No. We accept notifications only from Przelewy24 server addresses, each carries a signature made with a key nobody but your server knows, and before the status changes we compare the amount with the order and confirm the transaction with Przelewy24.
What if the paid amount does not match the order?
The order does not turn paid. It gets a mismatch status, and the integration alerts a person to check it.
Can I issue refunds from my own panel?
Yes. You order a full or partial refund on the order in your own panel, without signing in to Przelewy24, and the refund status comes back to the order in a separate notification.
Will the Przelewy24 integration code be mine?
Yes. Once the work is accepted and paid in full, the economic copyright in the Przelewy24 integration code passes to you and you get the repository with run instructions. Open source libraries keep their own licences.
Does Przelewy24 support recurring payments?
Yes, by card and by BLIK alias, once Przelewy24 enables the service. We build the setup and the handling of repeat charges in your code, and cover BLIK on our BLIK page.
What if Przelewy24 changes its API?
We adjust the integration to Przelewy24's changes: within the 90 days of support included after launch, later under a maintenance plan or as a separate short order. We follow Przelewy24's change notices and tell you in advance what needs fixing.

Sources

Technical details come from the Przelewy24 documentation and website.

Describe your project.

A free quote comes back within an hour during working hours.