Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Payment Providers
  3. Payrexx Payment Gateway, Datatrans Payment Gateway, TWINT Payment Gateway | Swiss Payment Provider v 19.0
  4. Sales Conditions FAQ

Payrexx Payment Gateway, Datatrans Payment Gateway, TWINT Payment Gateway | Swiss Payment Provider

by Modvanta https://modvantaapps.tech/odoo-apps/payment-swiss/
Odoo

$ 39.88

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest
  • License
Payrexx and Datatrans payment gateway with TWINT and PostFinance for Odoo 19
Odoo 19 Community and EnterprisePayrexx Gateway APIDatatrans JSON APITWINTPostFinanceCHF and EURGerman and French70 automated tests
Buy Now - $40Ask a Question

Written and supported by Modvanta - modvantaapps@gmail.com

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.
What was tested, said plainly

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

Payrexx: payment link created with the Gateway API, in cents, with your reference, the order lines (basket) and the customer name, address, email and phone prefilled
Payrexx: TWINT, PostFinance Pay, PostFinance Card, PostFinance E-Finance, cards, Apple Pay, Google Pay, PayPal, Klarna and Reka can each get their own line at checkout and open that method directly
Payrexx: link lifetime, skip the Payrexx result page, look and feel profile, white-label platform domain
Payrexx: webhook in JSON or form data; the secret address picks the provider, then the transaction is read back from the API
Payrexx: the customer return reads the payment from the API too, so a missed webhook does not leave the order unpaid
Payrexx: payment links that expired unpaid are deleted at Payrexx and the transaction is cancelled
Payrexx: the Payrexx fee and the payment brand are stored on the transaction
Payrexx: Test Connection lists the payment methods your instance has switched on
Datatrans: Redirect or Lightbox payment page, in the customer language, with your brand colour
Datatrans: authorize and settle later (manual capture), or settle at once; cancel an authorization from Odoo
Datatrans: saved cards, PostFinance Card and PostFinance Pay accounts as aliases; later payments through a separate merchant ID for merchant-initiated payments when Datatrans gives you one
Datatrans: webhook address sent with each payment - nothing to configure in the Datatrans dashboard
Datatrans: Datatrans-Signature checked with your HMAC key and a 10-minute window; without a key the status is read from the API
Datatrans: optional check that the webhook comes from the published Datatrans IP ranges
Both: amount and currency from the gateway compared with the order before it is confirmed; duplicates processed once
Both: a check every 15 minutes confirms payments whose notification was missed, plus a Check Status button
Gateway log of every call and notification, with secrets, aliases and webhook addresses masked
Multi-company: one Payrexx and one Datatrans provider per company, each with its own keys

The two gateways side by side

PayrexxDatatrans
How the customer paysPayrexx payment pageDatatrans payment page (Redirect) or overlay (Lightbox)
What confirms the orderWebhook, then a read-back from the Payrexx APIWebhook signed with HMAC-SHA256 (or a read-back from the API)
TWINT and PostFinanceTWINT, PostFinance Pay, Card and E-FinanceTWINT, 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 OdooFull and partialFull and partial (credit)
What you enterInstance name, API secretMerchant ID, password, HMAC key
Set up on the gateway sideWebhook address (shown in Odoo)Nothing
Test modeYour instance with its test payment providerDatatrans sandbox
CurrenciesCHF, EURCHF, 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

Payrexx and Datatrans at the Odoo checkout
Swiss methods at checkout
Payrexx, Datatrans, Card, PostFinance Card, PostFinance Pay and TWINT, each on its own line. The triangle marks test mode.
Order confirmed after a TWINT payment
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 instance and webhook
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 options
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 and HMAC key
Datatrans: merchant ID, password, HMAC key
Test Connection checks the platform and the credentials. The webhook address travels with every payment.
Datatrans options
Datatrans: Redirect or Lightbox
Payment page, brand colour, the merchant ID for saved cards, and the IP check of webhooks.
Transaction with gateway details and refund
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.
Refund from the Odoo payment
Refunds from Odoo
Full or partial, from the standard Refund button of the payment. The refund is sent to Payrexx or Datatrans.
Gateway log
Gateway log
Every call sent and every notification received, with the HTTP status and the result.
A refused webhook in the log
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

ItemDetail
OdooOdoo 19 Community or Enterprise. Required: Invoicing (account_payment) and the payment engine (payment), both part of Odoo. eCommerce is optional.
A merchant accountWith Payrexx or Datatrans - only the gateway you use. For saved cards, Datatrans activates aliases on request.
Public addressThe gateways notify your Odoo over the internet, so the website must be reachable over HTTPS. Behind a reverse proxy, run Odoo with proxy_mode.
CurrencySwiss 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
Two Swiss gateways for the price most sellers ask for one
Built field by field from the documents Payrexx and Datatrans publish - no guessed parameters
An order is never confirmed because the customer came back: only a verified notification or the gateway API does that
Datatrans authorize and settle, cancel, refunds and saved cards from standard Odoo buttons
A log that shows what was sent and what came back when a payment needs explaining

Questions and answers

Do I need both Payrexx and Datatrans?
No. They are two separate providers. Enable the one you have a contract with; the other stays disabled and invisible to your customers.
Does it take TWINT and PostFinance?
Yes, through either gateway, as far as your contract includes them. TWINT, PostFinance Pay, PostFinance Card and PostFinance E-Finance can each get their own line at checkout.
How is a payment confirmed?
Datatrans: by its webhook, after the HMAC signature has been checked (or after the status has been read from the API when no key is set). Payrexx: its webhooks are not signed, so the transaction is always read back from the Payrexx API with your API secret. The amount is compared with the order in every case.
Can I authorize first and settle later?
Yes with Datatrans: tick Capture Amount Manually, then settle or cancel from the transaction. Payrexx payments are captured at once.
Is card data stored in Odoo?
No. The customer pays on the Payrexx or Datatrans page. For saved cards Odoo keeps the Datatrans alias, the last four digits and the expiry date only.
Can I refund from Odoo?
Yes, full or partial, from the Refund button of the payment. Refunds made in the Payrexx dashboard are also recorded in Odoo.
Is the module in German and French?
Yes. The settings, help texts and messages are translated into German and French; Odoo also sends the customer language to the Payrexx and Datatrans payment pages.
Was it tested with live accounts?
Not yet. It is built from the published documents and was exercised against a simulator built from them, as explained above. Tell me if anything behaves differently on your account and I will correct it.
Start accepting Payrexx and Datatrans payments in Odoo 19
Questions before buying, or a change you need? Write to me.
Buy Now - $40Hire Me for Odoo Work

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
LicenseOPL-1
Websitehttps://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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with