# Przelewy24

**Przelewy24 is a Poland-based real-time online bank transfer payment method, often referred to as P24. Przelewy24 operates in partnership with all Polish banks. According to Przelewy24, 87% of users in Poland recognize their brand. Bank transfer methods are hugely popular in Poland, representing 47% of online payments .**

## **Features**

| Available country code  | PL   |
| ----------------------- | ---- |
| Processing currencies   | EUR,PLN  |
| Settlement currencies   | EUR  |
| Refunds                 | ✅    |
| Partial Refunds         | ✅    |
| Multiple partial refund | ❌    |
| Chargeback              | ❌    |

# **Integration Method**

**Payment method enumeration values:** **`p24`**

**There is integration method for Przelewy24**

1. Direct API

## **Direct** **API** 

### **How to integration**

For direct API integration, you can create a PaymentIntent and get url in only one step. The following is the demo of creating payment intent:

[**Create a PaymentIntent**](api-42631218)

A PaymentIntent is an object that represents your intent to collect payment from your customer and tracks the lifecycle of the payment process. Create a PaymentIntent on your server and specify the amount to collect and a supported currency. If you have an existing Payment Intents integration, add **p24** to the list of payment method types.

***Request***

```JSON
{
    "amount": 2000,
    "currency": "EUR",
    "confirm": true,
    "payment_method_data": {
        "type": "p24",
        "billing_details": {
            "address": {
                "country": "PL"
            },
            "email": "john.doe@fake.id",
            "firstName": "",
            "lastName": ""
        }
    },
    "return_url": "https://wooshpay.com"
}
```

***Response***

```JSON
{
    "id": "pi_1670647146182868992",
    "object": "payment_intent",
    "created": 1687148293000,
    "livemode": false,
    "currency": "EUR",
    "amount": 2000,
    "status": "requires_action",
    "client_secret": "pi_1670647146182868992_secret_gIuZ4mEPEylLdxZpVRQhbM40",
    "next_action": {
        "type": "redirect_to_url",
        "p24_handle_redirect": {
            "url": "https://r3.girogate.de/ti/simp24?tx=140083420286&rs=iZwgnyFeHyoMsmJP9IBTIpXyDphDMmba&cs=c43ab14500b3dc1154141e9c1109a344bc6eede05d22e2012a0c8a7fe8c80cbb"
        }
    },
    "payment_method_types": [
        "p24"
    ],
    "confirmation_method": "automatic",
    "return_url": "https://wooshpay.com",
    "payment_method": "pm_1670647146086400000",
    "capture_method": "automatic"
}
```

# **Next step**

You can add more features to your integration as needed

## [Create a Webhook](doc-2517709)

Listen to events on your WooshPay account so your integration can automatically trigger reactions. Create a webhook that mainly focuses on enabled_events and url.

## [Create a Refund](api-51369554)

Create a refund to repay funds to your customer. You can also perform partial refunds, but not every payment method supports them. A partial refund is when you refund only part of the original transaction amount.
