Przelewy24
Basic information
Przelewy24 lets customers pay online from their bank accounts.
- Integration paths: Checkout, Web SDK, Direct API
- Transaction type: One-time payment
lpmsInfo.lpmsType:Przelewy24- Web SDK
config.paymentMethod:['Przelewy24']
| Customer country/region | Order currency |
|---|---|
| 🇵🇱 PL | PLN, EUR |
The customer country/region is the billingInformation.country value in the payment request.
This guide covers redirect payments for enabled configurations. Direct API requests and Checkout requests that select this method also require lpmsInfo.bankName. Use the bank value from the API enum, not its display name.
Your merchant account and application must be enabled for the chosen order currency. Before using the Direct API or selecting Przelewy24 in Checkout, check List available payment methods with the same application, customer country, order amount, and order currency. Confirm that Przelewy24 is returned. The Web SDK checks availability through the ready event as described below.
Before you begin
Complete Setup and confirm with Onerway that Przelewy24 is enabled for your merchant and application. Also confirm the applicable transaction limits, payment validity period, and settlement arrangements. For amount formatting, see Currency and amount validation. Customers need access to their selected bank’s online banking service. For EUR orders, customers may pay in PLN. Before authorizing payment, they should check the amount and any currency conversion shown on the payment page.
Configure your server notification URL and customer return URL, and store the mapping between your order and paymentId.
Start the payment
Checkout
- On your server, call Create checkout payment with
productType=ALL,subProductType=DIRECT, andtxnType=SALE. To show only Przelewy24, setlpmsInfo.lpmsTypetoPrzelewy24andlpmsInfo.bankNameto the customer’s selected bank, sendinglpmsInfoas a JSON string. If you omitlpmsInfo, the customer chooses from the methods available for the order. - Supply the billing, shipping, product, return URL, and notification URL fields required by the API. Encode
billingInformationandshippingInformationas JSON strings, including the required email and country for each. Keep product and order currencies consistent and ensure that product amounts, discount entries, and shipping fees add up toorderAmount.
Select the request example “Unified Checkout with all available payment methods”, replace the order and customer details, and add this method'slpmsInfoif you want to select only this method. Include a value from the bank field;lpmsTypealone is insufficient. - Select the response example “Unified Checkout session created”. Store the returned
paymentIdandtransactionIdagainst your order, then redirect the customer's browser toredirectUrl. The initialstatus=Umeans that payment has not been completed. - Onerway Checkout handles the payment page and customer payment interaction. When the customer reaches
returnUrl, retrieve the order result from your server. If no notification has arrived, use the stored transaction identifier to Query transactions. For request authentication, redirects, and return handling, see Checkout integration.
Web SDK
Keep the SDK billing address form (leave config.showBillingAddress at its default true) for customers to complete. Do not send the Direct API field lpmsInfo.bankName when creating an SDK transaction. See the field conditions in Create SDK transaction.
- On your server, call Create SDK transaction with
productType=ALL,subProductType=DIRECT, andtxnType=SALE. Select the request example “One-time SDK payment” and the response example “One-time SDK transaction created”. These examples show the shared creation flow before a payment method is selected. Replace the amount, currency, and product details with the actual order, keeping the product and order currencies consistent. - Initialize Checkout with the returned
paymentId, following Web SDK integration. To display only Przelewy24, setconfig.paymentMethodto['Przelewy24']in the initialization options. Then subscribe to events and mount the Payment Element. - In the
readyevent, check thatavailablePaymentMethodscontainsPrzelewy24. The frontend configuration only filters methods returned by the server; it does not enable Przelewy24. - After the customer selects Przelewy24 and completes the form, call
confirmPayment()from your payment button. Handle the actualpaymentStatusandnextActionreturned. For the complete event and error handling flow, see Web SDK integration.
Handle the actual SDK nextAction.type: for RedirectShopper, wait for the customer to return from the external payment page. For PresentToShopper, keep the current SDK Checkout instance and leave its Payment Element mounted while the SDK displays the payment interface. Wait for payment_result; do not confirm payment again.
Direct API
- After the customer selects
Przelewy24on your payment page, call Create direct transaction from your server withproductType=LPMS,subProductType=DIRECT, andtxnType=SALE. SetlpmsType=Przelewy24and the requiredbankNameinlpmsInfo, submitted as a JSON string. - Supply the billing and shipping information required by the API. Include products, notification and return URLs, and merchant-collected end-user IP, browser, and device information in
txnOrderMsg. Select the request example “Redirect local payment request (illustrative)”. It uses Bancontact / BE / EUR to show the shared structure. For Przelewy24, replace the method identifier, enabled country/currency, and order details, and add the selected bank’sbankNametolpmsInfo, keeping product and order currencies consistent. The example amount does not establish a transaction limit. - Store the returned
paymentIdandtransactionIdagainst your order. Select the response example “Redirect local payment response (illustrative)”. Whenstatus=RandactionType=RedirectURL, redirect the customer's browser toredirectUrl. Handle the actual response; for other actions and processing or failed states, see Local payment integration. Do not repeatedly create the same order. - After the customer completes the payment-page steps and reaches
returnUrl, confirm the final result using a server notification or query. See Request authentication for authentication and the result-handling steps below.
Customer actions and final result
Customers select or confirm a bank on the payment page, then sign in to their bank and authorize the payment. Do not collect online banking credentials. The payment page determines the available banks and the steps the customer follows.
After the customer reaches returnUrl, initially show that the order result is being confirmed. Process the order on your server using a signature-verified payment result webhook. If the notification has not arrived or you need to check the result, call Query payments with the stored paymentId. Fulfill the order only after your server confirms a successful payment. For verification, acknowledgement, idempotency, and query fallback, see Webhooks.
Canceling bank authorization, closing the payment page, or returning to your site does not by itself determine the final order status. Restore page interaction and continue to process the order using the server notification or query result.
Refunds and disputes
Before integration, confirm the refund capabilities, restrictions, and dispute process applicable to your merchant with Onerway. If refunds are enabled, follow Refunds.
Testing and go-live
Test each integration path you use: Checkout must open redirectUrl and display the method; the Web SDK must include it in ready.availablePaymentMethods. For the Direct API, check the selected method, request parameters, and returned action, then continue according to actionType. The payment and server-result checks below apply to all three paths covered here.
Confirm the test environment, available Przelewy24 test banks, and authentication steps with Onerway, then follow Sandbox testing:
- Test each enabled PL/PLN or PL/EUR combination that you intend to use, with the actual customer details and your test amount. Confirm that
Przelewy24is available through your chosen integration path. If it is not, check the merchant, application, and order configuration. - Complete bank selection and payment confirmation. After the redirect, confirm the result on your server before updating the order. Reaching the bank or payment page alone does not pass the successful-payment acceptance check. For go-live acceptance, retain the notification and acknowledgement for the same order, then make an active query to verify that the results agree.
- Test canceled authentication, incomplete payments, and returns to your site. Test query fallback when no notification has arrived, and confirm that a return alone never marks the order as paid.
- Verify idempotent handling of duplicate notifications. Before going live, check production enablement, notification and return URLs, limits, and validity periods. Test refunds separately if they are enabled.