OnPay.io for WooCommerce


Plugin for WooCommerce, based on the official OnPay PHP SDK. The plugin adds the following functionality to WooCommerce:
– Usage of OnPay as a payment method.
– Validation of orders with callbacks directly from OnPay, outside the context of the cardholders browser.
– Management of transaction on order pages in backoffice.

Don’t have an OnPay account yet? Order one through DanDomain from DKK 0,- per month.

OnPay sellers


  1. PHP: >= 5.6
  2. WordPress >= 5.3
  3. WooCommerce >= 3.8.1



  1. Install plugin as any other WordPress plugin.
  2. Log in with OnPay on plugin settings page in woocommerce settings.
  3. Plugin configures itself automatically after successful login.
  4. Setup up the plugin with the desired configuration.
  5. You’re ready to go.


There are no reviews for this plugin.

Contributors & Developers

“OnPay.io for WooCommerce” is open source software. The following people have contributed to this plugin.




Added support for WooCommerce Subscriptions
Added support for order numbers, instead of using ids.


Exclude paragonIE random_compat from scoper, since this repo is registered in the global space, and results in errors if prefixed with a namespace.
Added feature for enabling autocapture of transaction, when order is marked as completed.


Fixed version tag mismatches


Updated Anyday branding


Added Vipps as payment option
Properly set HTTP header and code in json responses


Added styling for Anyday Split logo
Show Maestro logo if Mastercard is shown
Fix datetimes shown in log for transactions to follow timezone set in WordPress.


Added method for showing notices in admin
Added better handling of errors on order page in admin
Get data from Order object the correct way in abstract_gateway


Updated version of onpayio/php-sdk
Added website field to payment window
Added Anyday Split as an payment option
Implemented platform field in payment window


Split methods form one single into individual payment methods shown when choosing method in frontoffice.
Added feature for choosing card logos shown on OnPay credit card method.
Updated MobilePay logo.


Fix bug with invalid token crashing whole site
Updated dependencies, PHP SDK and onpayio oauth2 dependency
Implemented paymentinfo for paymentwindow, setting available values
Confirmed working on WordPress 5.5.1 and WooCommerce 4.6.0


When users are sent to the payment window, the value for declineUrl has been set to the url for the checkout page. If user returns to declineUrl because of an error encountered in OnPay, an error message will be shown.


Confirmed working on WordPress 5.5 and WooCommerce 4.4.1
Added prefix to dependency namespaces during build, to prevent any overlap with dependency versions from other plugins that might be installed


Confirmed working on WordPress 5.4.2 and WooCommerce 4.2.0
Fix incompatibility with PHP 5.6
Update composer dependencies to latest versions


Fixed issue with transaction_id null value being used to fetch transaction, resulting in an error.
Confirmed working on WordPress 5.4.1 and WooCommerce 4.1.0


Added missing translatable strings
Added danish translation of plugin


Tested compatibility for WordPress 5.4 and WooCommerce 4.0.1
Properly handle no connection to API, and show error message in such case


Only initialize the settings fields on the settings page
Updated the OnPay SDK, with the latest version that resolves a issue with invalid oauth tokens


Added README.txt for use by WordPress.org
Sanitize and escape values when getting query and post values directly from PHP.
Updated class names to a format unique for plugin and similar to the rest of WordPress’ naming scheme.


Initial release