Accept Przelewy24 with a server-side-only integration

Build your own payment form to add Przelewy24 payment to the checkout page


The Przelewy24 payment method doesn’t require any input from the customer on your website. Once they select the products and select Pay, they are redirected to the Przelewy24 where they can choose to pay directly through their bank’s webpage or via BLIK.

Before you begin

Step 1: Create a Payment Type resource
server side

When creating the payment type Przelewy24, you need to send an empty request to the Unzer API. The response contains an id , this is later referred to as typeId. You will need this typeId to perform the transaction.

POST https://api.unzer.com/v1/types/przelewy24/

$unzer = new Unzer('s-priv-xxxxxxxxxx');

$przelewy24 = new Przelewy24();
$przelewy24 = $unzer->createPaymentType($przelewy24);
Przelewy24 przelewy24 = new Przelewy24();
Unzer unzer = new Unzer(new HttpClientBasedRestCommunication(), "s-priv-xxxxxxxxxx");
przelewy24 = unzer.createPaymentType(przelewy24);

The response looks similar to the following example:

  "id": "s-p24-skki29gw2fue",
  "method": "przelewy24",
  "recurring": false,
  "geoLocation": {
    "clientIp": "",
    "countryCode": "DE"

For more details on Przelewy24 payment type creation, see API reference.

Next steps

The next steps are the same as for the UI components integration, check Accept przelewy24 with UI Components from Step 2 onwards.