Przelewy24

Integrate Przelewy24 and allow consumers to pay in various ways, such as online bank transfers, e-wallet, or installments.

Payment method properties

MarketsPL
Processing currenciesEUR, PLN
Consumer currenciesEUR, PLN
Settlement currenciesEUR, PLN
Minimum payment amount0.01 PLN
Maximum payment amount55,000.00 PLN
Recurring paymentsNo
Separate capturesNo
RefundFull - Partial - Multiple
Refund validity365 days
CapturesNo
ChargebackNo
Sandbox availabilityPrzelewy24 sandbox

Make a Przelewy24 payment

Przelewy24 payments follow our standardized REDIRECT payment flow. However, we recommend including all relevant settings for any authentication methods you support.

To make a Przelewy24 payment, you'll need to provide the following data at minimum when calling our /v1/payment-charges API:

Data FieldDescription
paymentMethodP24
amount.valueThe amount to be paid in the smallest units of the currency used.
amount.currencyPLN
consumer.nameFull name of the consumer.
consumer.countryThe country where the consumer is shopping.
consumer.emailEmail of the consumer.
authenticationSettings: REDIRECT
settings.returnUrl
Add the url where the consumer should be redirected to after they complete the payment. Required for the REDIRECT payment flow.

Request

POST /v1/payment-charges

{
  "paymentMethod": "P24",
  "amount": {
    "value": 1000,
    "currency": "PLN"
  },
  "consumer": {
    "name": "John Smith",
    "country": "PL",
    "email": "[email protected]"
  },
  "authenticationSettings": [
    {
      "type": "REDIRECT",
      "settings": {
        "returnUrl": "https://www.webshop.com/order-results-page"
      }
    }
  ]
}

Response

You'll receive our standard payment charge response (see potential responses in the API Reference)

{
  "id": "charge_X0O78tadFHrZCbGhkycPk",
  "status": "AUTHENTICATION_PENDING",
  
  // ...
  
  "authenticationMethods": [
    {
      "type": "REDIRECT",
      "details": {
        "requestUrl": "https://redirection-target.ppro.com",
        "requestMethod": "GET"
      }
    }
  ]
}

Pick the desired authentication method

REDIRECT

  1. Redirect your consumer to the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl.
    For example, with the value of https://redirection-target.ppro.com/ using the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod HTTP method.
  2. The consumer will finalize the payment process on the redirected page.

Handling the payment result

REDIRECT

  1. Once the consumer has confirmed the payment, they are redirected to the returnUrl provided in the initial payment charge creation request.
  2. After the consumer is redirected back to your site, check the payment status by making a GET /v1/payment-charges/{paymentChargeId}. Use the Status that you received to display the payment outcome to the consumer.
  3. Webhooks are also sent to inform you of the payment outcome. If the shopper closes the browser and doesn't return to your website, you can rely on webhooks to receive the payment result.