Przelewy24
Integrate Przelewy24 and allow consumers to pay in various ways, such as online bank transfers, e-wallet, or installments.
Payment method properties
Markets | PL |
Processing currencies | EUR , PLN |
Consumer currencies | EUR , PLN |
Settlement currencies | EUR , PLN |
Minimum payment amount | 0.01 PLN |
Maximum payment amount | 55,000.00 PLN |
Recurring payments | No |
Separate captures | No |
Refund | Full - Partial - Multiple |
Refund validity | 365 days |
Captures | No |
Chargeback | No |
Sandbox availability | Przelewy24 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 Field | Description |
---|---|
paymentMethod | P24 |
amount.value | The amount to be paid in the smallest units of the currency used. |
amount.currency | PLN |
consumer.name | Full name of the consumer. |
consumer.country | The country where the consumer is shopping. |
consumer.email | Email 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
- Redirect your consumer to the returned
$.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl
.
For example, with the value ofhttps://redirection-target.ppro.com/
using the returned$.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod
HTTP method. - The consumer will finalize the payment process on the redirected page.
Handling the payment result
REDIRECT
- Once the consumer has confirmed the payment, they are redirected to the
returnUrl
provided in the initial payment charge creation request. - 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. - 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.
Updated 13 days ago