Payrexx Payment Gateway, Datatrans Payment Gateway, TWINT Payment Gateway | Swiss Payment Provider
by Modvanta https://modvantaapps.tech/odoo-apps/payment-swiss/$ 39.88

Take Swiss payments in Odoo
Two payment providers in one module - use the one you have a contract with, or both
Payrexx Gateway API: a payment link per order with the basket, the customer details and the method preselected. TWINT, PostFinance, cards, Apple Pay, Google Pay and everything else your Payrexx instance offers. | Datatrans Redirect or Lightbox. Authorize now and settle later, cancel an authorization, refund, and save cards and PostFinance accounts as Datatrans aliases for one-click and merchant-initiated payments. | Verified, never assumed Datatrans webhooks are checked by their HMAC signature. Payrexx webhooks are unsigned, so every one is read back from the Payrexx API before an order is confirmed. |
Refunds from Odoo Full and partial refunds from the standard Refund button. Refunds made in the Payrexx dashboard are recorded in Odoo by the webhook. | Orders, invoices, links Standard Odoo providers: eCommerce checkout, quotations, invoices, payment links and the customer portal. | In German and French Every screen, help text and message of the module is translated into German and French, for your team in Zurich, Bern, Geneva or Lausanne. |
Every request and every field the module reads comes from the documents Payrexx and Datatrans publish: the Payrexx REST API reference (Create a Gateway, Retrieve a Transaction, Refund a Transaction) and its official PHP library, and the Datatrans API reference (OpenAPI) with the Datatrans integration guides. The webhook signature check passes the worked example printed in the Datatrans documentation. 70 automated tests pass on a database with demo data and on an empty one.
The module has not yet been run against a live Payrexx instance or a Datatrans sandbox account. The whole flow was exercised in a browser against a local simulator that answers in the documented shapes: checkout and return for both gateways, webhooks with a good and a forged signature, a webhook on a wrong address, a partial refund from the Refund button, the connection tests. The screenshots below come from that run. If something differs on your account, write to me and I fix it.
Everything included
One module, no add-ons to buy
|
|
The two gateways side by side
| Payrexx | Datatrans | |
|---|---|---|
| How the customer pays | Payrexx payment page | Datatrans payment page (Redirect) or overlay (Lightbox) |
| What confirms the order | Webhook, then a read-back from the Payrexx API | Webhook signed with HMAC-SHA256 (or a read-back from the API) |
| TWINT and PostFinance | TWINT, PostFinance Pay, Card and E-Finance | TWINT, PostFinance Pay, Card and E-Finance |
| Authorize now, settle later | - | Yes, settle or cancel from Odoo |
| Saved payment methods | - | Cards, PostFinance Card, PostFinance Pay (aliases) |
| Refund from Odoo | Full and partial | Full and partial (credit) |
| What you enter | Instance name, API secret | Merchant ID, password, HMAC key |
| Set up on the gateway side | Webhook address (shown in Odoo) | Nothing |
| Test mode | Your instance with its test payment provider | Datatrans sandbox |
| Currencies | CHF, EUR | CHF, EUR |
Working in three steps
1 Install and open a provider Invoicing - Configuration - Payment Providers. Payrexx and Datatrans are there, disabled. | 2 Paste the keys Test Connection tells you at once whether they are right. For Payrexx, paste the webhook address shown in Odoo into Payrexx. | 3 Test, then enable Take a test payment in test mode, switch to Enabled with your live keys, and publish. |
Screenshots
Odoo 19, default website theme, providers in test mode against a local simulator
![]() Swiss methods at checkout Payrexx, Datatrans, Card, PostFinance Card, PostFinance Pay and TWINT, each on its own line. The triangle marks test mode. | ![]() Paid and confirmed Back from the payment page, the order is confirmed once the payment has been read from the gateway API (here the local simulator). |
![]() Payrexx: two values and a webhook Instance name and API secret. Test Connection shows the methods your instance offers; the webhook address is ready to copy. | ![]() Payrexx: payment page options Link lifetime, skip the result page, order lines and contact details on the Payrexx page, look and feel profile. |
![]() Datatrans: merchant ID, password, HMAC key Test Connection checks the platform and the credentials. The webhook address travels with every payment. | ![]() Datatrans: Redirect or Lightbox Payment page, brand colour, the merchant ID for saved cards, and the IP check of webhooks. |
![]() Gateway details on the transaction Gateway status, what the customer paid with, the Payrexx fee, the payment link and the refunds, with the log one click away. | ![]() Refunds from Odoo Full or partial, from the standard Refund button of the payment. The refund is sent to Payrexx or Datatrans. |
![]() Gateway log Every call sent and every notification received, with the HTTP status and the result. | ![]() A refused notification A Payrexx webhook sent to a wrong address is refused and kept in the log; the secret part of the address is masked. |
What you need
| Item | Detail |
|---|---|
| Odoo | Odoo 19 Community or Enterprise. Required: Invoicing (account_payment) and the payment engine (payment), both part of Odoo. eCommerce is optional. |
| A merchant account | With Payrexx or Datatrans - only the gateway you use. For saved cards, Datatrans activates aliases on request. |
| Public address | The gateways notify your Odoo over the internet, so the website must be reachable over HTTPS. Behind a reverse proxy, run Odoo with proxy_mode. |
| Currency | Swiss franc or euro. Sell in CHF or EUR (company currency or a pricelist). |
Not included
So that you know before you buy
| Datatrans Secure Fields (card fields embedded in your own page) - the Redirect and Lightbox pages are used | |
| Payrexx subscriptions, reservations and tokenization; Payrexx POS terminals | |
| Authorize-and-settle for TWINT and PostFinance Pay: Odoo itself marks these two methods as not supporting manual capture, so turn them off on a provider that captures manually | |
| Datatrans or Payrexx settlement reports and payouts | |
| Italian translation (English, German and French are included) |
Simple pricing
ONE-TIME PRICE $40 Payrexx and Datatrans in one module Source code included (OPL-1) German and French included Email support by the author |
|
Questions and answers
Modvanta - modvantaapps@gmail.com
Payrexx, Datatrans, TWINT, PostFinance and the payment method names on this page are trademarks of their owners. This module is an independent integration; it is not affiliated with, endorsed by or sponsored by them. The Payrexx, Datatrans, PostFinance Card, PostFinance E-Finance and Reka badges are plain labels drawn for this module.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1980 |
| Technical Name |
mdv_payment_swiss |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/payment-swiss/ |
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