Skip to content

Przelewy24

Last updated: 14th July 2022

Accept payments using Przelewy24, the most popular payment method in Poland.

To start accepting Przelewy24 payments, please contact your Customer Success Manager.

Model

Collecting

Payment flow

Redirect

Payment method type

Online banking

One-step payment

Authorization

Capture

Refund

Partial refund

Chargeback

Recurring payment


Overview

Przelewy24 payments follow a two-step process:


Request a payment

Use the details below to set up your request.

Endpoints

You can find the full list, as well as complete request and response examples, in our API reference.

    post

    https://api.checkout.com/payments

    Request example

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    {
    "amount": 100,
    "currency": "PLN",
    "source": {
    "type": "p24",
    "payment_country": "PL",
    "account_holder_name": "Bruce Wayne",
    "account_holder_email":"bruce@wayne-enterprises.com",
    "billing_descriptor": "P24 Demo Payment"
    }
    }

    Response example

    If you receive a 202 Success response with a status field set to Pending, your request was successful.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    {
    "id": "pay_yo7mr2qvrj5ubirhehlbjr4yda",
    "status": "Pending",
    "customer": {
    "id": "cus_dd7efezan2xexdfhtrhoz6tvam"
    },
    "_links": {
    "self": {
    "href": "https://api.sandbox.checkout.com/payments/pay_yo7mr2qvrj5ubirhehlbjr4yda"
    },
    "redirect": {
    "href": "https://r.girogate.de/ti/simp24?tx=431811890&rs=6FlzR3BeW8SvfX4U0H7weTEkDPSWJBVb&cs=dfcf0cab1a0522652133e8dc0302cdcae683ac07f1317b3db6450893ce007831"
    }
    }
    }

    Redirect the customer

    Redirect your customer to the redirect link’s href in the response. The customer will be redirected to a Przelewy24 page where they can authorize the payment, before being transferred to your predefined success or failure URL.


    Get details about a payment

    You can use the id found in the payment response, or the cko-session-id from the success/failure URL (e.g., https://www.checkout.com/order/succeeded?cko-session-id=sid_vii64oquze5u3h2x6hh4rurc4y) to retrieve details about the payment.

    The cko-session-id expires 15 minutes after being created.

    Endpoints

    You can find the full list, as well as complete request and response examples, in our API reference.

      get

      https://api.checkout.com/payments/{id}

      Response example

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28
      29
      30
      {
      "id": "pay_yo7mr2qvrj5ubirhehlbjr4yda",
      "requested_on": "2019-08-08T06:48:21Z",
      "source": {
      "type": "p24",
      "p24_descriptor": "P24-H99-999-999 ABC1234 Dynamic"
      },
      "amount": 100,
      "currency": "PLN",
      "payment_type": "Regular",
      "status": "Captured",
      "approved": true,
      "risk": {
      "flagged": false
      },
      "customer": {
      "id": "cus_dd7efezan2xexdfhtrhoz6tvam"
      },
      "_links": {
      "self": {
      "href": "https://api.sandbox.checkout.com/payments/pay_yo7mr2qvrj5ubirhehlbjr4yda"
      },
      "actions": {
      "href": "https://api.sandbox.checkout.com/payments/pay_yo7mr2qvrj5ubirhehlbjr4yda/actions"
      },
      "refund": {
      "href": "https://api.sandbox.checkout.com/payments/pay_yo7mr2qvrj5ubirhehlbjr4yda/refunds"
      }
      }
      }

      Refund a payment

      Przelewy24 supports both partial and full refunds. You can refund a payment through the Dashboard or by using the refund API.


      Testing Przelewy24

      To start testing, you'll need to contact your Customer Success Manager or Integrations Engineer to activate Przelewy24 payments in the sandbox environment.

      1. Create a Przelewy24 transaction as above, following the redirect link in the response to Przelewy24's website.
      2. Leave the Bank name or BIC field blank and select Next.
      3. Leave the Account Number and PIN fields blank and then select Login.
      4. Leave the TAN field blank and select Make Payment.
      5. Select Back to where you came from to be redirected to your predefined success URL.