From dd2e69442c5339250144a345b1d9e2999a6b181b Mon Sep 17 00:00:00 2001 From: krokedilmartin <84283336+krokedilmartin@users.noreply.github.com> Date: Thu, 23 Sep 2021 16:24:02 +0200 Subject: [PATCH 1/3] php7 wc4 required --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7291a6b..85ed60d 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ This way you can save time and don’t have to work in both systems simultaneous # Requirements * You need an [agreement with Billmate](https://www.billmate.se/kontakt/) to be able to use this plugin. -* WooCommerce 3.0 or newer is required. -* PHP 5.6 or higher is required. +* WooCommerce 4.0 or newer is required. +* PHP 7.0 or higher is required. * SSL Certificate is required. * You need to have the [Billmate Checkout for WooCommerce plugin](https://github.com/Billmate/billmate-checkout-for-woocommerce) installed and activated. From 989c31ace8f4b708441c5089ffe8a7216af10011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20H=C3=B6gefjord?= Date: Thu, 2 Dec 2021 13:43:05 +0100 Subject: [PATCH 2/3] Added factoring as supported BCO status for refunds --- src/classes/class-bom-order-management.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/class-bom-order-management.php b/src/classes/class-bom-order-management.php index bd47f1a..b0cbf8e 100644 --- a/src/classes/class-bom-order-management.php +++ b/src/classes/class-bom-order-management.php @@ -220,7 +220,7 @@ public function refund_billmate_order( $result, $order_id, $amount = null, $reas $bco_status = strtolower( $billmate_order_tmp['data']['PaymentData']['status'] ); - if ( 'paid' === $bco_status || 'created' === $bco_status || 'partpayment' === $bco_status ) { + if ( 'paid' === $bco_status || 'created' === $bco_status || 'partpayment' === $bco_status || 'factoring' === $bco_status ) { $refund_order_id = BOM_Refund_Data_Helper::get_refunded_order( $order_id ); $refund_data = BOM_Refund_Data_Helper::create_refund_data( $order_id, $refund_order_id, $amount, $reason ); $billmate_order = BOM_WC()->api->request_credit_payment( $bco_transaction_id, $refund_data ); From 2b73aed44917d8ff32ad6a479d4aa8ec2b43daba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20H=C3=B6gefjord?= Date: Thu, 2 Dec 2021 13:43:17 +0100 Subject: [PATCH 3/3] Version update (1.2.1) --- src/billmate-order-management-for-woocommerce.php | 4 ++-- src/readme.txt | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/billmate-order-management-for-woocommerce.php b/src/billmate-order-management-for-woocommerce.php index 3aadb9a..7d21425 100644 --- a/src/billmate-order-management-for-woocommerce.php +++ b/src/billmate-order-management-for-woocommerce.php @@ -12,7 +12,7 @@ * Domain Path: /languages * * WC requires at least: 4.0.0 - * WC tested up to: 5.4.1 + * WC tested up to: 5.9.0 * * Copyright: © 2020-2021 Billmate in collaboration with Krokedil. * License: GNU General Public License v3.0 @@ -26,7 +26,7 @@ } // Define plugin constants. -define( 'BILLMATE_ORDER_MANAGEMENT_VERSION', '1.2.0' ); +define( 'BILLMATE_ORDER_MANAGEMENT_VERSION', '1.2.1' ); define( 'BILLMATE_ORDER_MANAGEMENT_URL', untrailingslashit( plugins_url( '/', __FILE__ ) ) ); define( 'BILLMATE_ORDER_MANAGEMENT_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); define( 'BILLMATE_ORDER_MANAGEMENT_ENV', 'https://api.billmate.se' ); diff --git a/src/readme.txt b/src/readme.txt index 66cde1f..d34d3da 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -2,10 +2,10 @@ Contributors: Billmate, Krokedil, NiklasHogefjord Tags: woocommerce, billmate, ecommerce, e-commerce, checkout, swish, invoice, part-payment, partpayment, card, mastercard, visa, trustly Requires at least: 5.0 -Tested up to: 5.7.2 +Tested up to: 5.8.2 Requires PHP: 5.6 WC requires at least: 4.0.0 -WC tested up to: 5.4.1 +WC tested up to: 5.9.0 Stable tag: __STABLE_TAG__ License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -42,6 +42,9 @@ The easiest way to report a bug is to email us at [support@billmate.se](mailto:s == Changelog == += 2021.12.02 - version 1.2.1 = +* Tweak - Added factoring as supported Billmate status for refunds. + = 2021.07.05 - version 1.2.0 = * Feature - Add action bco_callback_denied_order. Trigger cancel order request if denied order callback is performed from Billmate. * Fix - PHP8 warning fix.