LibraPay Payment
Online card payments via Libra Internet Bank
Accept card payments in Odoo through LibraPay, the online card payment service of Libra Internet Bank, for Visa and Mastercard cards: on the eCommerce checkout and for invoices paid from the customer portal. Built for merchants in Romania who sell online with Odoo.
- Card payment at checkoutCustomers choose LibraPay when they confirm the order and pay on the bank's secure page; no card data reaches Odoo.
- Invoices paid from the portalAn open invoice can be paid online with Pay Now.
- Immediate captureThe card is charged in one step and the order or invoice is marked as paid.
- Confirmation in the backgroundLibraPay also sends an instant payment notification (IPN), so the status is updated even if the customer closes the browser.
- Signed messagesRequests and answers are signed with your merchant key; an answer with a wrong signature is rejected before any processing.
- Test and live modesSeparate LibraPay test and production addresses.
Data sent to LibraPay: with each payment, the order or invoice lines (product, quantity, price, VAT) and the customer's billing and shipping contact details.
Requirements: an active LibraPay merchant agreement with Libra Internet Bank, and the Python
package phpserialize.
✓ Included in the Terrabit support subscription
If Terrabit is your Odoo implementation partner, your support subscription includes the right to use this module and every other Terrabit module, with no separate purchase. The modules are kept up to date with each new Odoo version and supported by the developers who build them.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
- Go to Invoicing > Configuration > Payment Providers and open LibraPay.
- Fill in the data received from Libra Internet Bank: Merchant name, Merchant URL, Merchant, Merchant Email, Terminal and the security key.
- Choose the journal where the payments are recorded.
- In the LibraPay merchant portal, set the notification (IPN) address to
https://<your-domain>/payment/libra_pay/ipn. - Set the state to Test for the LibraPay test environment, or Enabled for live payments, and publish the provider on your website.
✓ Included in the Terrabit support subscription
If Terrabit is your Odoo implementation partner, your support subscription includes the right to use this module and every other Terrabit module, with no separate purchase. The modules are kept up to date with each new Odoo version and supported by the developers who build them.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
Customer payment
- A customer places an order on your Odoo website or opens an invoice in the portal and chooses LibraPay.
- Odoo signs the request with your merchant key and redirects the customer to the LibraPay secure page, where the card details are entered.
- LibraPay sends the signed result back in two ways: through the customer's browser when they return to your website, and in the background through the instant payment notification (IPN), so the payment is registered even if the customer closes the browser.
- Odoo checks the signature, the amount and the currency of every answer before it confirms the transaction; an answer with a wrong signature is rejected. Response code
00confirms the payment, any other code puts the transaction in Error with the bank's message.
Provider
Open Accounting > Configuration > Online Payments > Payment Providers > Libra Pay and fill in, on the Configuration tab, in the Credentials section, the data received from Libra Internet Bank: Terminal, Libra Pay Key (a hexadecimal string), Merchant name, Merchant URL, Merchant and Merchant Email. Choose the journal in the same tab, leave Live unchecked (Test Mode) for the LibraPay test environment or check it for live payments, and publish the provider. In the LibraPay merchant portal set the notification address to https://<your-domain>/payment/libra_pay/ipn.
The key is stored in clear text on the provider: allow only trusted users to open the provider form.
Transactions
With developer mode on, open Accounting > Configuration > Online Payments > Payment Transactions. Each LibraPay attempt shows its state: Confirmed, Pending (the customer has not finished paying, or the bank's answer has not arrived yet) or Error (the bank declined the payment, or the amount or currency do not match).
Open a confirmed transaction: the Provider Reference is the order number sent to the bank (the digit 9 followed by the digits of the Odoo reference), the one to look for in the LibraPay merchant portal.
A declined payment moves to Error and keeps the bank's message; the customer can try again, which creates a new transaction.
Payment and journal entry
Confirming a transaction creates an accounting payment on the provider's journal. Open it from Accounting > Customers > Payments: it is Paid until you reconcile it with the bank statement, when it becomes Reconciled.
The journal entry of the payment (button Journal Entry) moves the gross amount from Receivables to the journal's outstanding receipts account.
The bank commission is not computed by the module: it is posted when you reconcile the bank statement. Refunds are made in the LibraPay merchant portal.
✓ Included in the Terrabit support subscription
If Terrabit is your Odoo implementation partner, your support subscription includes the right to use this module and every other Terrabit module, with no separate purchase. The modules are kept up to date with each new Odoo version and supported by the developers who build them.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
Prezentare
Plăți cu cardul în Odoo prin LibraPay, serviciul de plăți online cu cardul al Libra Internet Bank, pentru carduri Visa și Mastercard: la finalizarea comenzii în magazinul online și pentru facturile plătite din portalul clientului. Pentru comercianții din România care vând online cu Odoo.
- Plată cu cardul la finalizarea comenziiClientul alege LibraPay când confirmă comanda și plătește pe pagina securizată a băncii; datele cardului nu ajung în Odoo.
- Facturi plătite din portalO factură neachitată se plătește online, cu butonul de plată.
- Încasare imediatăCardul este debitat într-un singur pas, iar comanda sau factura apare ca plătită.
- Confirmare în fundalLibraPay trimite și o notificare instantanee de plată (IPN), astfel încât starea se actualizează chiar dacă clientul închide browserul.
- Mesaje semnateCererile și răspunsurile sunt semnate cu cheia de comerciant; un răspuns cu semnătură greșită este respins înainte de orice procesare.
- Mod de test și mod realAdrese LibraPay separate pentru test și producție.
Date trimise la LibraPay: la fiecare plată, liniile comenzii sau ale facturii (produs, cantitate, preț, TVA) și datele de contact ale clientului pentru facturare și livrare.
Cerințe: un contract de comerciant LibraPay activ cu Libra Internet Bank și pachetul Python
phpserialize.
Configurare
- Mergeți la Facturare > Configurare > Procesatori de plăți și deschideți LibraPay.
- Completați datele primite de la Libra Internet Bank: Merchant name, Merchant URL, Merchant, Merchant Email, Terminal și cheia de securitate.
- Alegeți jurnalul în care se înregistrează plățile.
- În portalul de comerciant LibraPay, setați adresa de notificare (IPN) la
https://<domeniul-dumneavoastră>/payment/libra_pay/ipn. - Setați starea pe Test pentru mediul de test LibraPay sau pe Activat pentru plăți reale și publicați procesatorul pe site.
Utilizare
- Clientul confirmă comanda pe site sau deschide factura în portal și alege LibraPay.
- Odoo îl redirecționează pe pagina de plată LibraPay, unde introduce datele cardului.
- LibraPay trimite rezultatul către Odoo (IPN) și îl aduce pe client înapoi pe site; comanda sau factura apare ca plătită.
✓ Inclus în abonamentul de suport Terrabit
Dacă Terrabit este partenerul vostru de implementare Odoo, abonamentul de suport include dreptul de folosință pentru acest modul și pentru toate celelalte module Terrabit, fără o achiziție separată. Modulele sunt actualizate la fiecare versiune nouă de Odoo și susținute de programatorii care le construiesc.
Aveți nevoie de ajutor la implementare?
Cele peste 800 de aplicații ale noastre de pe Odoo Apps Store sunt folosite în implementări Odoo din Europa, America, Asia și Africa — de companii pe care nu le-am cunoscut niciodată. Acesta e avantajul modulelor care pur și simplu funcționează.
Aveți întrebări despre modul? Scrieți-ne — vă răspund programatorii care îl dezvoltă.
20.0.1.0.15 (2026-11-10)
- Consultant sheet (
readme/FISA_CONSULTANT.md) and English usage guide ported from 19.0, adapted to Odoo 20 (the Live option replaces the provider state, credentials in the Credentials section of the Configuration tab), with the screenshot test, new Romanian translations and screenshots regenerated on 20.0 (the 19.0 ones are not copied because the interface differs). - Provider form: the merchant fields sit directly in the Credentials section (the nested group left the values squeezed and unreadable in Odoo 20).
- Price aligned with 19.0 (72 EUR, full price 90 EUR, -20 percent campaign).
20.0.1.0.14 (2026-11-10)
- Apps Store: the -20% campaign banner and band show the total price of the module together with its paid dependencies, as in the store.
20.0.1.0.13 (2026-11-09)
- Apps Store page: the euro sign in the -20% campaign band is written as an HTML entity, so it no longer shows as garbled characters.
20.0.1.0.12 (2026-10-15)
- Module icon redrawn in the Terrabit house style (clean vector, 100x100 viewBox) and Apps Store main image regenerated with it.
20.0.1.0.11 (2026-10-12)
- Module icon: the LibraPay logo on a transparent background, without the old gradient tile and the generic card, with a card accent for online payments.
20.0.1.0.10 (2026-10-07)
- Migration to Odoo 20: the payment method is linked to its provider (
provider_id) and activated by_get_default_payment_method_codes; test / live mode followsis_live; the return and notification routes record the payment data with_record()(processed by the payment cron); images loaded asbytes.
19.0.1.0.10
- Apps Store page rewritten in English from the code, with Configuration and Usage, and the
Romanian translation in its own tab (
readme/*.ro.md). The data sent to LibraPay is stated; the "Authorized" state and the User / Password fields, which the code does not have, are no longer mentioned; the Support section with an external link is removed. Module name "LibraPay Payment", English summary, support addresssupport@terrabit.ro. - The unused User / Password fields (
libra_pay_user,libra_pay_pass) are removed from the model; the LibraPay integration signs requests with the key only.
19.0.1.0.9
- [SEC] A return/IPN notification with an invalid
P_SIGNno longer puts the transaction in error: the controllers verify the signature before any processing and reject the request with HTTP 400, so an anonymous forged request cannot disturb someone else's pending payment (neither through the signature nor through the amount validation)._apply_updatesalso ignores such notifications without changing the transaction state. - [SEC] The signature is compared with
hmac.compare_digest. - Added tests for the signature check and the notification routes.
19.0.1.0.8
- [FIX]
_extract_amount_datawas not overridden for LibraPay, causingKeyError: 'amount'(Internal Server Error) on every return/IPN notification (porting regression from the Odoo 18 payment API to Odoo 19, which introduced this mandatory amount validation). The amount and currency are now extracted from theAMOUNT/CURRENCYfields sent by LibraPay, so the core validation runs properly. - [FIX]
_apply_updatesno longer marks a transaction as done when theP_SIGNsignature check fails; processing now stops after setting the transaction in error. - [FIX] Notification fields are read defensively with
.get()so a missing field in the LibraPay payload can no longer crash the notification handler. - [FIX]
_search_by_referenceno longer raises when no transaction matches (the customer got a 500 page); it logs a warning and lets the core flow redirect to the payment status page. If several transactions share the same provider reference, the latest one is used.
✓ Included in the Terrabit support subscription
If Terrabit is your Odoo implementation partner, your support subscription includes the right to use this module and every other Terrabit module, with no separate purchase. The modules are kept up to date with each new Odoo version and supported by the developers who build them.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Discuss (mail) • Website (website) • Invoicing (account) |
| Lines of code | 359 |
| Technical Name |
deltatech_payment_libra_pay |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
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