

HUB-3A slip with payment details
WSB HUB3 is a plugin for Woocommerce that shows all needed data for Croatian banks direct transfer payment, including on-the-fly generated barcode for mobile banking payment. Payment details and barcode are shown on thankyou page, order details page and also in notification email. Details are visible only if selected payment method is Bank transfer and order status is the one selected in general settings (default: on-hold).
Plugin uses bigfish.software API to generate barcodes: https://hub3.bigfish.software/.
You can display payment details to the customer either in text/html format, or generated HUB-3A slip in jpg with all details on it.
If admin updates an order from the backend (i.e. adds a new product to the order or apply a coupon code), barcode and HUB3 slip will be re-created.
Need locally generated HUB-3 barcodes or SEPA QR codes?
WSB PayByCode for WooCommerce is a separate paid alternative supporting Croatian HUB-3 barcodes and EPC QR codes for compatible banking apps. It generates payment codes locally on your server and adds payment reminders and bank account rules. WSB HUB3 remains free and maintained. Deactivate WSB HUB3 when switching to PayByCode.
3.0.1: If there is more than one IBAN (bank accounts) in BACS payment method, customer can choose which one to use for payment at checkout. If only one IBAN, no choice is shown.
3.1.0: Big update focused on payments that banks accept, a better customer experience and privacy:
After updating, check the payment model and reference in HUB3 recipient settings, and the bank accounts in the Direct bank transfer payment method.
PayByCode replaces WSB HUB3; it is not an add-on or an unlock inside the free plugin. The two plugins are not intended to run together.
WSB PayByCode offers:
The privacy benefit applies to payment code generation. License activation and update checks communicate separately with the licensing and update service. Local generation alone does not guarantee GDPR compliance.
PayByCode requires PHP 8.2+, WordPress 6.5+ and WooCommerce 9.0+. A paid license includes one year of updates and email support. The installed plugin’s features continue to work after the license expires.
To switch: back up your site, deactivate WSB HUB3 without deleting its settings, then install and activate WSB PayByCode. In PayByCode > Import WSB HUB3, review and import your existing settings and order data; import also works while WSB HUB3 is inactive. Check your bank accounts and display settings and place a test bank transfer order. Keep WSB HUB3 deactivated when using PayByCode.
For payment reference number you can select one of several predefined patterns:
– order (can be custom order number provided by other plugin)
– date
– order-date
– date-order
If you use date in the reference number, then you can select its format:
– ddmmyyyy
– ddmmyy
– ddmm
– mmyyyy
– mmyy
– yyyy
– yy
Also you can add sufix and/or prefix to the reference number (up to 6 digits for each). The recipient settings show a live preview of the reference for your latest order.
The reference follows FINA rules:
– at most 3 parts, so with order-date or date-order use either a prefix or a sufix, not both
– digits only; other characters in order numbers (e.g. WEB-123) are removed
– at most 12 digits per part and 22 characters in total, including hyphens
If a reference would still be too long (e.g. when order numbers grow), the sufix, then the prefix, then the date are left out. The order number is always kept, and a note is added to the order.
The HUB-3 barcode allows only a limited number of characters, so the settings don’t accept longer values:
– Recipient name: 25 characters
– Address: 25 characters
– Postcode: 5 digits
– City: 21 characters (postcode and city together can have 27)
– IBAN: HR and 19 digits, with valid check digits
– Purpose code: 4 capital letters (e.g. OTHR)
– Payment description: 35 characters. When [order] is replaced with the order number, the text around it is shortened if needed.
If recipient data saved with an older plugin version is too long, a notice is shown in the admin area.
The slip and barcode use the bank accounts of the Direct bank transfer payment method:
– one account: it is used automatically
– more accounts: the customer chooses one at checkout, shown as radio buttons under the payment methods (block checkout) or in the bank transfer description (classic checkout)
– no account with a valid IBAN: the IBAN from HUB3 recipient settings is used
When Show bank accounts is enabled, the chosen account is listed first and marked on the thankyou page and in emails.
Slip and barcode are embedded in emails, not linked from the website. They show even when the website is not reachable (e.g. Cloudflare “Under attack” mode) and in email clients that block external images. If your email plugin sends emails through an API that doesn’t support embedded images, turn off Embed images in emails in the general settings.
[wsb_hub3 width="1100"] shows the HUB-3A slip[wsb_barcode width="400"] shows the barcodeUse them in the Order Confirmation template (block themes), on the checkout page (classic themes) or on a custom thankyou page that has order_id and key in its URL (e.g. ?order_id=123&key=wc_order_...). They show images only for a valid order key in the URL or to the logged-in customer who placed the order. To avoid showing payment details twice, set Show on thankyou page to Nothing (use shortcodes).
Slips and barcodes are stored in wp-content/uploads/wsb-hub3/, with a random part in each file name, so they can’t be found by guessing an order number. Images of orders from older plugin versions are moved there or recreated automatically when needed.