Skip to content

Commit

Permalink
Merge pull request #35 from Billmate/develop
Browse files Browse the repository at this point in the history
Version 1.2.1
  • Loading branch information
NiklasHogefjord authored Dec 2, 2021
2 parents 06e340d + 2b73aed commit 00f167d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions src/billmate-order-management-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' );
Expand Down
2 changes: 1 addition & 1 deletion src/classes/class-bom-order-management.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
7 changes: 5 additions & 2 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 00f167d

Please sign in to comment.