How to Add Native BLIK Level 0 & 1-Click Refunds to OpenCart 4 (Przelewy24 REST API v1 Guide)
In Polish e-commerce, BLIK accounts for over 65% of online checkout completions — yet most legacy OpenCart payment plugins still force mobile shoppers through a slow multi-screen redirect to a hosted bank wall before they can enter their 6-digit code. Every extra redirect on mobile drops conversion by 8%–14%.
In this engineering guide, you will learn how BLIK Level 0 works on the official Przelewy24 REST API v1, why Zero-Trust SHA-384 + server-side transaction verification prevents spoofed orders, and how to add native 6-digit on-site BLIK and 1-click Full & Partial Refunds directly inside OpenCart 4 and OpenCart 3 without Composer dependencies.
What Is BLIK Level 0 vs. Standard Redirect BLIK?
| Capability | Standard Redirect BLIK | Native BLIK Level 0 (Przelewy24 Pro) |
|---|---|---|
| Where customer types the 6-digit code | External Przelewy24 hosted page | Directly inside OpenCart checkout |
| Mobile bank app confirmation | Manual return redirect required | Real-time AJAX status polling |
| Fallback to Pay-by-Link, Cards, Apple/Google Pay | Yes | Automatic if 6-digit field is left blank |
| 1-Click Partial & Full Refunds in Admin | Manual login to panel.przelewy24.pl | Direct POST /api/v1/transaction/refund in Admin |
| Composer / Vendor Dependencies | Often conflicts across PHP 8.1–8.4 | Pure-PHP cURL (PHP 7.4–8.4, zero Composer) |
How Przelewy24 REST API v1 Processes BLIK Level 0 End-to-End
- Transaction Registration (
POST /api/v1/transaction/register): Your OpenCart server signssessionId,merchantId, exact minor-unitamount(grosze/cents),currency, and your secretcrckey withSHA-384and obtains a short-lived paymenttoken. - On-Site BLIK Charge (
POST /api/v1/paymentMethod/blik/chargeByCode): When the buyer submits a sanitized 6-digit code inside OpenCart checkout, your backend triggers the push notification straight to the shopper's banking app while the checkout UI polls order verification status smoothly. - Zero-Trust SHA-384 Webhook & Mandatory Verify (
PUT /api/v1/transaction/verify): Przelewy24 posts an asynchronous status callback containingorderIdand aSHA-384signature. Never trust a return URL alone — verify the signature using constant-timehash_equals()and executePUT /api/v1/transaction/verifyagainst Przelewy24 before transitioning the OpenCart order to Paid. - 1-Click Full & Partial Refunds (
POST /api/v1/transaction/refund): From OpenCart Admin, store staff enter any partial amount (or leave blank for a full refund) to refund directly via REST API v1 and automatically append the refund reference to OpenCart Order History.
Pre-Launch Checklist for OpenCart 4 & OpenCart 3 Merchants
- Always test credentials first using Przelewy24's official
GET /api/v1/testAccessendpoint in Sandbox (sandbox.przelewy24.pl) before toggling Production mode. - Request BLIK Level 0 (
chargeByCode) activation from your Przelewy24 account manager; standard hosted checkout (30+ Polish banks, Visa/Mastercard, Apple Pay, Google Pay) works immediately out of the box. - Use a dedicated database ledger table with strict idempotency locks so duplicate webhook deliveries can never double-mark an order or break stock counts.
- Running WordPress fundraising campaigns too? Our upgraded FlexExt Donations for Przelewy24 PRO v1.2.0 for WordPress brings the exact same native BLIK Level 0, SHA-384 webhooks, and 1-click refunds to WordPress without WooCommerce.
FlexExt Przelewy24 Pro (BLIK Level 0, Refunds & REST API v1)
Includes both OpenCart 4.x & 3.x native packages, on-site 6-digit BLIK Level 0, Polish Pay-by-Link banks, Visa/Mastercard, Apple/Google Pay, 1-click Full & Partial Refunds, Live testAccess API Tester, and WCAG 2.2 AA Light/Dark Admin UI — pure PHP with zero Composer.
Frequently Asked Questions
Does BLIK Level 0 work on both OpenCart 4.0/4.1 and OpenCart 3.0?
Yes. Both native extension architectures (flexext_p24_oc4.ocmod.zip and flexext_p24_oc3.ocmod.zip) are included in a single commercial license and share the same pure-PHP REST API v1 client.
Can I offer Przelewy24 alongside Viva.com, Revolut Pay, SumUp, or Stripe?
Absolutely. Many European OpenCart stores pair Przelewy24 Pro (for Poland / PLN / BLIK Level 0) with Viva.com Smart Checkout Pro, Revolut Pay & Cards Pro, or Stripe Modern Payment Gateway using OpenCart Geo Zones.