Onerway
Payment methods

BLIK

Accept one-time BLIK redirect payments with Checkout, the Web SDK, or the Direct API, let customers enter a code from their banking app, and confirm the result.

Basic information

BLIK lets customers pay online with a six-digit code generated in their banking app. Customers enter the code on the external payment page, then confirm payment in their banking app.

  • Integration paths: Checkout, Web SDK, Direct API
  • Transaction type: One-time payment
  • lpmsInfo.lpmsType: BLIK
  • Web SDK config.paymentMethod: ['BLIK']
Customer country/regionOrder currency
🇵🇱 PLPLN

The customer country/region is the billingInformation.country value in the payment request.

This guide covers redirect payments for enabled configurations and does not cover BLIK_SEAMLESS.

Before you begin

Complete Setup and confirm with Onerway that BLIK 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 a banking app that supports BLIK.

Configure your server notification URL and customer return URL, and store the mapping between your order and paymentId.

Start the payment

Checkout

  1. On your server, call Create checkout payment with productType=ALL, subProductType=DIRECT, and txnType=SALE. To show only BLIK, set lpmsInfo.lpmsType to BLIK, sending lpmsInfo as a JSON string. If you omit lpmsInfo, the customer chooses from the methods available for the order.
  2. Supply the billing, shipping, product, return URL, and notification URL fields required by the API. Encode billingInformation and shippingInformation as 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 to orderAmount.
    Select the request example “Unified Checkout with all available payment methods”, replace the order and customer details, remove the example’s cardInfo object for this flow, and add this method's lpmsInfo if you want to show only BLIK.
  3. Select the response example “Unified Checkout session created”. Store the returned paymentId and transactionId against your order, then redirect the customer's browser to redirectUrl. The initial status=U means that payment has not been completed.
  4. 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). If you hide the billing form, supply the information required by the current API before confirming payment. See the field conditions in Create SDK transaction.

  1. On your server, call Create SDK transaction with productType=ALL, subProductType=DIRECT, and txnType=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.
  2. Initialize Checkout with the returned paymentId, following Web SDK integration. To display only BLIK, set config.paymentMethod to ['BLIK'] in the initialization options. Then subscribe to events and mount the Payment Element.
  3. In the ready event, check that availablePaymentMethods contains BLIK. The frontend configuration only filters methods returned by the server; it does not enable BLIK.
  4. After the customer selects BLIK and completes the form, call confirmPayment() from your payment button. Handle the actual paymentStatus and nextAction returned. For the complete event and error handling flow, see Web SDK integration.

With the Web SDK, paymentStatus=R and nextAction.type=RedirectShopper mean that the customer still needs to complete payment on the redirect page.

Direct API

  1. After the customer selects BLIK on your payment page, call Create direct transaction from your server with productType=LPMS, subProductType=DIRECT, and txnType=SALE. Set lpmsType=BLIK in lpmsInfo, submitted as a JSON string.
  2. 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 BLIK, replace the method identifier, enabled country/currency, and order details, keeping product and order currencies consistent. The example amount does not establish a transaction limit.
  3. Store the returned paymentId and transactionId against your order. Select the response example “Redirect local payment response (illustrative)”. When status=R and actionType=RedirectURL, redirect the customer's browser to redirectUrl. Handle the actual response; for other actions and processing or failed states, see Local payment integration. Do not repeatedly create the same order.
  4. 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

The customer generates a six-digit BLIK code in their banking app, enters it as prompted by the payment page, and confirms payment in the banking app. Your order creation request does not need this code, and your own page does not need to collect it.

If the code expires or authentication is incomplete, the customer follows the payment page or banking app instructions. Code validity and order validity are separate. Generating a new code must not cause your system to mark the order as paid or create a duplicate order.

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 confirmation in the banking app, 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 BLIK test codes, and authentication steps with Onerway, then follow Sandbox testing:

  1. Create an order using an enabled country, PLN, and your test amount. Confirm that BLIK is available through your chosen integration path. If it is not, check the merchant, application, and order configuration.
  2. Complete code entry and payment confirmation. After the redirect, confirm the result on your server before updating the order. Reaching the code entry 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.
  3. 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.
  4. 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.