PayU Europe Payments: card, BLIK and bank links for PL CZ RO HU SK BG
by Aerya IT Solutions https://aerya.net$ 54.79
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
PayU Europe Payments: card, BLIK and bank links for PL CZ RO HU SK BG
Let customers pay your Odoo orders and invoices on the PayU checkout in PLN, CZK, RON, HUF, EUR or BGN. Odoo creates the order through the PayU REST API, follows its status, confirms the payment only after reading it back from PayU, and refunds from the payment transaction.
Every notification is signed (MD5 or SHA) and confirmed on the PayU API before Odoo accepts it
Works without a public address too: open payments are read on a schedule
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise and of the PayU sandbox (Polish checkout page), with the data of a fictitious company.
signature checks with every algorithm, replayed and forged notifications, capture, cancellation, refunds, rate limits and unreachable servers, recorded answers of the PayU sandbox, and every screen in a browser
no warnings, on the four versions
Community and Enterprise
More screenshots

A payment cancelled at PayU: the transaction records why
Podsumowanie po polsku
Dostawca płatności PayU Europe dla Odoo 17, 18, 19 i 20 (Community i Enterprise): strona płatności PayU z kartą, BLIK-iem i przelewami, waluty PLN, CZK, RON, HUF, EUR i BGN. Odoo tworzy zamówienie przez REST API PayU, sprawdza podpis powiadomień (MD5 lub SHA) i potwierdza płatność dopiero po odczytaniu jej z API PayU. Zwroty, pobranie i anulowanie z poziomu transakcji. Działa również bez publicznego adresu: otwarte płatności są odczytywane cyklicznie. Przetestowany na piaskownicy PayU.
The problem: selling in Central and Eastern Europe without the local payment methods
Customers in Poland, the Czech Republic, Romania, Hungary, Slovakia and Bulgaria expect to pay with BLIK, a bank link or a local card on a page they know. Without it they abandon the cart, and a shop that confirms payments from an unsigned message risks marking an order as paid when it is not.
What the module does
PayU Europe Payments adds PayU as a payment provider of the Odoo payment module. The customer pays on the PayU hosted checkout, and Odoo follows the payment and the refunds from the payment transaction. The provider code is aerya_payu, so it installs next to any other provider of the shop.
How it works, step by step
- Create a point of sale at PayU. In the PayU Management Panel, create a point of sale for online payments and note the POS ID, the OAuth client secret and the second key (MD5). Set the notification address of the point of sale, or let the module read the status without it.
- Configure Odoo. In Accounting (or Website) > Configuration > Payment Providers, open PayU Europe. Fill in the credentials, pick the currency of the point of sale and set the state.
- Test first. In test mode the button Use the public sandbox point of sale fills in the sandbox that PayU publishes (PLN). Pay with the test card 4444 3333 2222 1111, expiry 12/29, CVV 123.
- The customer pays. Odoo creates the order through the PayU REST API 2.1 and sends the customer to the PayU page. The method chosen in Odoo (card or BLIK) opens that PayU method directly; any other case shows the PayU list of methods. Odoo never sees the card.
- Odoo confirms the payment. PayU calls the notification address of your shop. Odoo checks the signature, then reads the order on the PayU API, and the status and amount that count come from that answer.
- Refund, capture or cancel from the payment transaction.
Details that matter
- Signed notifications. PayU calls /payment/aerya_payu/notify. The OpenPayU-Signature header is checked on the raw body with the second key of the point of sale, with MD5, SHA-1, SHA-256, SHA-384 or SHA-512 as the header says. A bad or missing signature is answered 403 before any lookup, and nothing is acted on. A valid notification only triggers a read of the order on the PayU API, and the amount and currency are compared with the transaction.
- No public address needed. A scheduled action (active when installed, every 15 minutes, at most 200 payments per run, older ones once an hour) and the return page read the status of open payments and refunds on the PayU API, so a shop that PayU cannot call still gets its payments confirmed.
- Never twice. The order reference is the Odoo transaction reference, and PayU refuses a second order with the same one, so a payment is never created twice. Each refund carries its own external id, so repeating a request never refunds twice.
- Refunds are full or partial. The refund stays pending until PayU finalizes it.
- Capture and cancellation. Odoo confirms payments at once, or keeps them authorized when the provider uses manual capture, then captures or voids from Odoo.
- Currencies. PLN, CZK, RON, HUF, EUR and BGN. A PayU point of sale accepts one currency, so set the currency on the provider and create one provider per point of sale.
- Reliability. Calls time out after 25 seconds. Reading, cancelling and refunds are tried again after a 429 or 5xx answer; creating an order is never repeated.
Settings and access
All settings are on the provider form: POS ID, OAuth client ID and secret, second key, the currency of the point of sale and the state (Disabled, Test mode, Enabled). Behind a reverse proxy, run Odoo with proxy_mode so that the payer's address reaches PayU as the customer address. In live mode, set the notification address of the point of sale to your public address. The public sandbox button works only in test mode and refuses an enabled provider.
What it does not do
- No recurring payments or card tokens, no PayU installments, and no Apple Pay or Google Pay set up in the Odoo checkout (the PayU page can still offer them).
- No partial capture: the full order amount is captured. Manual capture applies to cards. BLIK payments are always confirmed at once, so on Odoo 19 and 20 BLIK is switched off while the provider uses manual capture.
- No orders of a PayU marketplace.
- Wrong credentials, a currency the point of sale does not accept, a refund before PayU ended the payment, and a busy or unreachable PayU each end with a message that names the case.
- The public sandbox point of sale is shared by every tester: PayU refuses an order whose reference another tester already used (the message says so; start a new payment).
Requirements
Odoo 17, 18, 19 and 20, Community and Enterprise. It needs only the core Payment module and a PayU Europe account. It has Python code, so it runs on Odoo.sh and on-premise, not on Odoo Online. Languages: English, Polish, Czech, Romanian, Hungarian and Spanish.
Questions
Which payment methods can the customer use?
The ones your PayU point of sale offers: card, BLIK, bank links and others. The page of PayU shows them.
Do I need a public address?
Not necessarily. Open payments are also read on a schedule and when the customer returns to the shop.
Can I sell in several currencies?
Yes, with one provider per PayU point of sale, because PayU fixes the currency of each point of sale.
Can I refund part of a payment?
Yes. Full and partial refunds start from the payment transaction.
Can I test without a PayU account?
Yes. In test mode the button Use the public sandbox point of sale fills in PayU's public sandbox.
What happens if I uninstall it?
The provider and its settings are removed. Payments already made stay on their orders and invoices.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 20, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 936 |
| Technical Name |
aerya_payment_payu |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module