xMoney (Twispay) Payment Provider
by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.ro$ 142.44
xMoney (Twispay) Payment
Card payments on the xMoney hosted page
Accept online card payments in Odoo through xMoney (formerly Twispay), on the secure payment page hosted by xMoney (Hosted Checkout): in eCommerce, on customer invoices, quotations and payment links.
The module talks to xMoney directly, with your own xMoney (Twispay) merchant account: no intermediary server, no extra per-transaction fee on top of the xMoney ones, and no card data ever touches your Odoo server.
✨ Why this module
- 🔒 Signed requests, encrypted answers: every payment request is signed with your site's Private Key (HMAC-SHA512), and Odoo only trusts results it can decrypt with that key (AES-256-CBC). The browser return alone never marks an order as paid; when xMoney sends the amount and currency, they are checked against the order too.
- 🔔 Server notifications: the payments the customer does not finish in the browser (closed tab, lost connection) are confirmed by the xMoney server notification. The provider shows the ready-to-copy Notification URL.
- ↩️ Full and partial refunds from Odoo: click Refund on the payment, the refund is sent to xMoney and comes back as a linked child transaction with a negative amount.
- 📒 Accounting out of the box: a confirmed transaction creates the payment on the provider's journal and reconciles the invoice; the xMoney transaction ID is kept as the provider reference for the bank reconciliation.
- 🗣️ Romanian or English payment page, chosen from the customer's language.
- 🧪 Stage and live environments: test with your xMoney stage site while Live is off, then turn Live on, with no code change.
- 🔐 Secrets protected: the Site ID and the Private Key are readable only by the Settings group.
Currencies offered: RON, EUR, USD, GBP, CHF and ILS.
Pre-authorizations, recurring payments, card tokenization and the embedded (on-site) checkout are not part of this version.
Languages: English, Romanian. Country-independent: works with any chart of accounts and fiscal localization.
In the xMoney (Twispay) merchant dashboard (stage or live):
- Open Sites and note the Site ID and the Private Key of your website. Stage and live sites have different keys.
- Set the site's server-to-server notification URL to the Notification URL shown on the Odoo payment
provider (
https://<your website>/payment/xmoney/notification/<provider id>).
In Odoo:
- Go to Accounting > Configuration > Online Payments > Payment Providers and open xMoney (Twispay).
- On the Configuration tab, in the Credentials section, fill in the Site ID and the Private Key.
- Leave Live off to use the xMoney stage environment, or turn it on for the live one, and publish the provider on the website.
1. Configure the provider
Go to Accounting > Configuration > Online Payments > Payment Providers and open xMoney (Twispay). On the Configuration tab, Credentials section, fill in the Site ID and the Private Key of your xMoney site, and copy the Notification URL into the xMoney dashboard (Sites > your site > Payment Page, server-to-server notification URL). Leave Live off (xMoney stage) or turn it on (live) and publish the provider.
2. The customer pays on the xMoney page
On the website, an invoice or a payment link, the customer chooses xMoney (Twispay), pays on the xMoney hosted page (in Romanian for Romanian customers, in English otherwise) and comes back to the payment status page. Odoo only accepts the result that decrypts with your Private Key; the server notification confirms the payment even if the customer closes the window.
3. Follow the transactions
In Accounting > Configuration > Online Payments > Payment Transactions (developer mode) each attempt shows its state: Confirmed, Pending (still in progress at xMoney), Error (declined, or amount or currency mismatch) or Canceled.
The confirmed transaction keeps the xMoney transaction ID as Provider Reference; refunds appear as child transactions.
4. Accounting payment and refund
The confirmed transaction creates the payment on the provider's journal and reconciles it with the invoice: the payment is Reconciled and the invoice is paid. Click Refund to refund the full amount or a part of it.
The refund is sent to xMoney and comes back as a confirmed child transaction with a negative amount, linked to the source transaction.
20.0.0.0.2 (2026-12-06)
- Module icon: the official xMoney mark (in the brand purple, on a transparent background) with the card accent of the payment connectors; also set on the payment method of existing databases by the migration, and on the banner.
- Demo GIF shows the payment itself: a payment link generated from the invoice, xMoney chosen on the payment form, the encrypted xMoney result confirming the payment and the invoice paid and reconciled.
- Screenshots: the demo transactions are online payments (
online_redirect), so the accounting payment is reconciled with its invoice, as in a real payment. - In 20.0 the GIF runs the payment processing cron after the notification, which only records the result.
- Fiche and usage: in 20.0 the reconciled payment shows Reconciled and its refund button is Retur in Romanian.
20.0.0.0.1 (2026-12-06)
- Port to 20.0 (from 19.0, terrabit-solutions/bitshop#4401): the payment data are recorded with
_record()and applied by the payment processing cron, refunds included; the environment follows the Live switch (is_live) instead of the provider state; the payment method belongs to the provider (provider_id).
19.0.0.0.1 (2026-12-06)
- Initial version: xMoney (formerly Twispay) hosted payment page with signed requests (HMAC-SHA512), encrypted server notifications and browser return (AES-256-CBC), amount and currency check, and full or partial refunds.
✓ 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 |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 352 |
| Technical Name |
deltatech_payment_xmoney |
| 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