PostFinance for WooCommerce Plugin

The plugin datatrans for WooCommerce connects your online shop with the Swiss e-payment provider datatrans and adds almost 40 different payment methods to your online shop.

All essential payment gateways in one plugin

The plugin supports not only all common payment methods such as credit card, PostFinance and TWINT but also other useful forms of payment such as Swisscom Easypay and Migros Bank. All payment methods can be activated separately or combined in one payment method. Apart from this plugin you will need a datatrans account and contracts with the different payment service providers to use the payment methods. You can find a list of all payment methods further down. Notice: some payment methods can only be used with certain currencies.

Two transaction modes

The transaction can be processed with two different modes: The redirection mode redirects the customer to the website of datatrans while the lightbox mode allows you to implement the payment form directly in your website. This way the customer will never leave your website during the payment process (except for the 3D check). Credit card data will never be processed on your server and are directly sent to datatrans via an embedded iFrame, which makes the payment process PCI conform.

Transaction management

You can manage your transactions directly form the WooCommerce order administration screen without logging into the datatrans account. This allows you to settle or cancel transactions and retrieve the status of a transaction. Furthermore, you can sell subscription products with automatic renewals (available for certain payment methods) together with the separately available plugin WooCommerce Subscriptions.

Plugin updates are available on the plugins screen of your WordPress backend after activating the license.


  • Adds various payment methods such as credit card, TWINT, PostFinance, Maestro to your online shop.
  • Secure transmission of order data to datatrans.
  • Automatic payment processing via two different modes: redirection and lightbox.
  • Connect multiple online shops to the same datatrans account (multiple licenses needed).
  • 39 different WooCommerce payment methods.
  • Administration of transactions directly from within your WordPress backend.
  • Automatic subscription renewals (WooCommerce Subscriptions required).
  • Compatible to WooCommerce 3.0.x – 5.8.x, WordPress 4.4 – 5.8.x.
  • The license grants you updates and support (by email) for one year for the number of websites the license is valid for.
  • The plugin will not be locked when a license expires and you are allowed to use it for the number of websites the license was initially purchased for but only a valid license guarantees that the plugin works flawlessly in the future.
  • Documentation in English and German.
  • Compatible with WPML.
  • Plugin in English and German.
  • Supports all currencies supported by datatrans.
  • Update your plugin directly from the WordPress backend.
  • Optional installation service (CHF 50.- per website/shop).
  • Receive 30% off when renewing the license.


  • WooCommerce plugin
  • Datatrans account
  • Contracts with the payment providers.
  • Valid SSL certificate (for order administration from the WordPress backend)

Payment methods

  • PostFinance eFinance
  • PostFinance Card
  • American Express
  • VISA
  • MasterCard
  • JCB
  • Diners Club
  • Discover
  • Accarda
  • Apple Pay
  • Billpay Invoice
  • Billpay Direct Debit
  • Boncard
  • Byjuno
  • Dankort
  • Deltavista
  • Girosolution EPS
  • Girosolution Giropay
  • Google Pay
  • iDEAL
  • iDEAL via SOFORT
  • Jelmoli Bonus Card
  • LoyLogic Pointspay
  • Maestro
  • Mediamarkt Shopping Card
  • Moneybookers
  • Migros Bank
  • MyOne
  • Payolution Installments
  • Payolution Invoice
  • PayPal
  • Paysafecard
  • Reka Card
  • Samsung Pay
  • SEPA Direct Debit
  • Swissbilling
  • Swisscom Easypay
  • China Union Pay


  • The license entitles you to use the plugin for the purchased number of end products (end product: One application, e.g. one website).
  • The license includes updates and support (by e-mail) for one year for the purchased number of websites.
  • You can cancel automatic renewals of payments anytime. In this case, the license will be valid until the end of the paid period.
  • You are allowed to use the plugin for the purchased number of websites after the expiration of the license. However, the plugin is only guaranteed to work in the future with a valid license.
  • For WordPress multisite installations you need to purchase the plugin for the installed number of sites.
  • Licenses may be transferred to other natural or legal persons under the following conditions:
    • The entire license is transferred, which means that the license and the plugins associated with the license can no longer be used by the original holder of the license.
    • The new holder accepts these terms and conditions as well as all other contracts and conditions that you have agreed to in connection with the license.
  • You are not allowed to sell or distribute the plugin.
  •  x 

    Billed once per year until cancelled

  •  x 

    Billed once per year until cancelled

Add to cart


  •  x 

    Billed once per year until cancelled

  •  x 

    Billed once per year until cancelled

Add to cart

Installation service

Setup of the plugin and connection to a datatrans account (1 website).


Check out our Demo


Read the documentation


Version: 1.8.2


Version 1.8.2 – 17.09.2021

  • Fix – Check if license status is not false before accessing array offset.

Version 1.8.1 – 22.07.2021

  • Enhancement – Added logs tab to datatrans settings.
  • Logs – Changed logs directory.
  • Logs – Log more data.

Version 1.8.0 – 21.06.2021

  • Feature – Allow partial refunds.
  • Feature – Allow refunds via WooCommerce refund button.
  • Fix – Allow refunds of already settled payments.

Version 1.7.2 – 30.12.2020

  • Fix – Use plugin name instead of item ID for update check.

Version 1.7.1 – 17.09.2020

  • Fix – Added parameter pmethod for payment method other than credit cards.

Version 1.7.0 – 06.09.2020

  • Enhancement – Display errors and license data on license activation/deactivation/check.
  • Enhancement – Log license errors.
  • Enhancement – Raised POST request timeout for license check.
  • Dev – Updated Plugin_Updater.

Version 1.6.1 – 02.09.2020

  • Fix – Use non-blocking AJAX requests for license activation/deactivation/check.

Version 1.6.0 – 16.06.2020

  • Feature – Added Apple Pay payment method.
  • Enhancement – Use svg icons on checkout page.
  • Enhancement – Removed payment gateway iDEAL Sofort which is not in use anymore.
  • Fix – Show status in order metabox.
  • Fix – Alias title in order metabox.

Version 1.5.2 – 20.04.2020

  • Fix – Always include Datatrans_Subscription_Handler to prevent fatal error on checkout.

Version 1.5.1 – 12.04.2020

  • Fix – Datatrans_Payment_Handler: always create a new reference number for subscription orders.
  • Fix – Datatrans_Payment_XML_Authorization_Handler: get correct parameter for request type.
  • Fix – Check for correct environment value to enqueue production JS from datatrans.

Version 1.5.0 – 24.11.2019

  • Feature – Powerpay: allow users to save ESR data as PDF and download it from the order admin screen.

Version 1.4.8 – 04.10.2019

  • Update – Added Powerpay payment method to custom gateways.
  • Tweak – Added filter to custom gateway POST args check.
  • Tweak – Added filters to Powerpay payment fields.
  • Dev – Renamed namespace of Log class.

Version 1.4.7 – 23.09.2019

  • Tweak – Added de_CH_informal translations.

Version 1.4.6 – 20.09.2019

  • Tweak – Added missing payment descriptions for payment change.
  • Tweak – Added missing translations.

Version 1.4.5 – 20.09.2019

  • Fix – Swissbilling: birthdate check, additional parameters.

Version 1.4.4 – 18.09.2019

  • Fix – Use redirect mode for adding payment methods if set in the settings.
  • Tweak – Hide datatrans form on payment methods page.

Version 1.4.3 – 12.09.2019

  • Fix – Check if order id is not null before checking for subscription orders.

Version 1.4.2 – 12.09.2019

  • Fix – Check if order object exists before checking if it is a subscription order.

Version 1.4.1 – 11.09.2019

  • Fix – Check if order exists (ID is not 0) before setting alias parameters.

Version 1.4.0 – 09.09.2019

  • Feature – Added functionality to save payment methods in customer accounts (tokenization) and use saved payment methods on the checkout.
  • Feature – Allow customers to update the payment method of all subscriptions.
  • Tweak – Added new Log class which writes logs into debug.log in the plugin folder.

Version 1.3.2 – 21.08.2019

  • Fix – Create WC_Product_Variation objects instead of WC_Product to check if a variation is virtual.
  • Fix – Correct API payment return URL when using the Polylang plugin.

Version 1.3.1 – 29.07.2019

  • Fix – Only use useAlias for PaymentPage and aliasCC for XML authorization.

Version 1.3.0 – 12.07.2019

  • Feature – Added powerpay payment method.
  • Fix – Error messages on the checkout page for additional payment fields.

Version 1.2.9 – 10.07.2019

  • Fix – Remove buttons from metabox for subscriptions.

Version 1.2.8 – 10.07.2019

  • Feature – Added option to write logs to the debug.log.

Version 1.2.7 – 04.07.2019

  • Feature – Allow admins to manually change payment method.
  • Tweak – Added payment data metabox to subsriptions.

Version 1.2.6 – 02.07.2019

  • Fix – Get data from parent order if not available in subscription order.

Version 1.2.5 – 01.07.2019

  • Fix – Payment handler: deep conversion of object to array to prevent serialization of XML objects when saving transaction data.

Version 1.2.4 – 28.06.2019

  • Fix – Orders with multiple subscriptions and products: save alias, card data and reqtype in all contained subscriptions.

Version 1.2.3 – 31.05.2019

  • Fix – Correctly update completed order status.

Version 1.2.2 – 31.05.2019

  • Fix – Use function_exists instead of is_plugin_active to check if Subscriptions plugin is active.

Version 1.2.1 – 31.05.2019

  • Fix – Correctly update db version after db update.

Version 1.2.0 – 27.05.2019

  • Feature – Added setting fields to set order status based on request type and product type (virtual/physical).
  • Feature – Added support to change payment method of subscriptions for some products.
  • Feature – Added db update notice if update required.
  • Tweak – Renewal orders use card data and request type from subscription instead of parent order.
  • Dev – Added gulp dev tools.

Version 1.1.4 – 06.05.2019

  • Fix – Use property instead of constant for display name.

Version 1.1.3 – 11.04.2019

  • Fix – Correctly check, activate and deactivate licenses of the current blog.

Version 1.1.2 – 09.04.2019

  • Fix – Correctly check activated licenses in multisite installations.

Version 1.1.1 – 12.01.2019

  • Tweak – Added settings fields for test environment.

Version 1.1.0 – 10.01.2019

  • Feature – Added support for multiple subscriptions on the checkout.
  • Feature – Added settings to override checkout texts.

Version 1.0.2 – 19.11.2018

  • Fix – Datatrans_Order_Admin: status handler was not instantiated correctly.
  • Fix – Systeminfo: get license info from Mame_Licensing class.
  • Fix – Systeminfo: removed unnecessary nonce check.
  • Fix – Mame_Licensing: option name.
  • Fix – Mame_Licensing: check if WC is active and if the field has to be loaded in the settings tab.
  • Tweak – Systeminfo: removed unnecessary nonce.
  • Tweak – Use constant MAME_SUBSCRIPTIONS_ACTIVE.

Version 1.0.1 – 06.08.2018

  • Tweak – Updated Mame_Licensing.

Version 1.0.0 – 26.06.2018

Initial release.

Free registration for PostFinance E-Payment

If you don't have a PostFinance e-Payment account you can fill out the form below to get a free Test-Account. You will be contacted by PostFinance for more information. This registration is completely free and non-binding.