=== OnPay.io for WooCommerce === Contributors: onpayio Tags: onpay, gateway, payment, payment gateway, woocommerce, psp Requires at least: 6.7 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 1.0.52 License: MIT License URI: https://mit-license.org/ Plugin for WooCommerce, based on the official OnPay PHP SDK. == Description == 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. OnPay sellers == Installation == 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. == Dependencies == 1. PHP: >= 7.4 2. Wordpress >= 6.7 2. WooCommerce >= 8.2 == Changelog == = [1.0.52] = Added auto-cancel option Added result to transaction history Validated and updated supported wordpress and woocommerce version = [1.0.51] = Change onboarding and update language files Improve subscription renewal handling for OnPay connection issues Prevent exception message disclosure in error output Replace deprecated wc_enqueue_js = [1.0.50] = Fix Blocks checkout error notice persistence after declined payment Added token error logging for connection debugging = [1.0.49] = Removed sanitizeFieldValue from getDescriptionString because of æøå showing as html entities = [1.0.48] = Fixed uncaught exception when getting non-existing transaction in order meta box Fixed enabling of gateways from WC list properly using correct hook Added SECURITY.md Improved error handling in admin, on OnPay connections = [1.0.47] = Set key used to grab custom name, to protected instead of private = [1.0.46] = Add handling for checkout notices and improve payment failure messaging = [1.0.45] = Confirmed WooCommerce 10 support Fixed minor deprecation warnings = [1.0.44] = Add custom method description setting, that allows overwriting descriptions with custom texts. = [1.0.43] = Properly sanitize outputted strings. Added support for surcharge fee feature = [1.0.42] = Add card scheme to end of method title, when paying with card. Perform complete order in the correct sequence on subscription renewals = [1.0.41] = Added validation for empty values in country helper = [1.0.40] = Bumped target php version and updated dependencies = [1.0.39] = Added Klarna Fixed floating point conversion error when performing bulk comple capture Added Icelandic option Streamlined and optimized subscriptions Properly format country coeds when creating payments = [1.0.38] = Tweaked texts on actions buttons in admin Added support fro HPOS in WooCommerce = [1.0.37] = Take adjusted total amounts into account on available amounts for capture Added general platform that identifies the pluin with the API. Shifted declineURL order reference to wc_order key instead of onpay reference. = [1.0.36] = Ensure proper type of card method logo list before looping it = [1.0.35] = Added ability to set language of created payments according to frontoffice language Performance optimization of payment creation. Bugfix of subscriptions not being available in block layout. = [1.0.34] = Restructured the settings page into sevaral sections Implemented block layout for payment methods Removed unused code from build script Fixed Apple and Google pay methods being activated in a buggy way = [1.0.33] = Updated subscriptions (early) renwal logic, to reflect the WooCommerce guidelines. Fixed minor bug when getting order reference for subscriptions early renewal. = [1.0.32] = Removed unecessary sanitation of website value we send to OnPay API. Reintroduced sending cart object when creating new payments, checking validity before adding the object to the request. Added Apple Pay and Google Pay as available methods. Fixed Composer/InstalledVersions not being properly prefixed with composer/php-scoper Confirmed compatibility with version 6.2 of Wordpress. Added PayPal as available method = [1.0.31] = Removed sending cart item info when creating payments, introduced in 1.0.30 = [1.0.30] = Added WC settings tab for OnPay.io. Fixed strict typing of apiAuthorized Updated supported versions, following WooCommerce. Updated build script for newer versions of PHP. Added cart and items to info sent to API when creating payments. Updated danish translations, courtesy of @NoahBohme. = [1.0.29] = Fixed bug with querystrings being sanitized incorrectly Confirmed compatibility with version 6.1 of Wordpress. = [1.0.28] = Improved general error handling Added field validation when constructing payment Updated danish translations Added check of authorized connection to OnPay, before presenting OnPay methods = [1.0.27] = Properly set required amount value when constructing subscriptions Allow MobilePay in testmode since this is now supported = [1.0.26] = Implemented creation of payments through API redirecting to link, instead of posting form directly to onpay Updated SDK version = [1.0.25] = Added support for customers updating payment method = [1.0.24] = Confirmed compatibility with version 6.0 of Wordpress. = [1.0.23] = Improved validation of parameters on callback and decline endpoints. = [1.0.22] = Added swish as available payment option. = [1.0.21] = Based identification of orders in callback, on order_key instead of unpredictable order_number, but keep using order_number for reference = [1.0.20] = Fixed invalid Redirect urls when logging in through OnPay. Added support for Sequential Order Number Pro, when validating orders = [1.0.19] = Added feature for including WooCommerce refunded values in calculated amounts for capture. Fixed bug where latest order is selected instead of the order in question Fixed names of gateways shown in lists and removed base wc_onpay gateway that wasnt a real gateway Added support for activated toggle switches on payment gateways page Added function to allow automatic refund when using built in refund function of woocommerce = [1.0.18] = Added support for WooCommerce Subscriptions Added support for order numbers, instead of using ids. = [1.0.17] = 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. = [1.0.16] = Fixed version tag mismatches = [1.0.15] = Updated Anyday branding = [1.0.14] = Added Vipps as payment option Properly set HTTP header and code in json responses = [1.0.13] = 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. = [1.0.12] = 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 = [1.0.11] = 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 = [1.0.10] = 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. = [1.0.9] = 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 = [1.0.8] = 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. = [1.0.7] = 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 = [1.0.6] = Confirmed working on Wordpress 5.4.2 and WooCommerce 4.2.0 Fix incompatibility with PHP 5.6 Update composer dependencies to latest versions = [1.0.5] = 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 = [1.0.4] = Added missing translatable strings Added danish translation of plugin = [1.0.3] = Tested compatibility for Wordpress 5.4 and WooCommerce 4.0.1 Properly handle no connection to API, and show error message in such case = [1.0.2] = 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 = 1.0.1 = 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. = 1.0.0 = Initial release