Skip to content

Commit

Permalink
Merge pull request #9 from alexminza/v1.1.5
Browse files Browse the repository at this point in the history
v1.1.5
  • Loading branch information
alexminza authored Mar 29, 2020
2 parents af065ac + d4e2dfa commit 4f5e6a1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
Binary file modified languages/wc-moldovaagroindbank-ro_RO.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions languages/wc-moldovaagroindbank-ro_RO.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# This file is distributed under the same license as the WooCommerce Moldova Agroindbank Payment Gateway package.
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Moldova Agroindbank Payment Gateway 1.1.4\n"
"Project-Id-Version: WooCommerce Moldova Agroindbank Payment Gateway 1.1.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-"
"moldovaagroindbank\n"
"POT-Creation-Date: 2020-03-25 13:50+0200\n"
"PO-Revision-Date: 2020-03-25 13:51+0200\n"
"POT-Creation-Date: 2020-03-29 12:12+0300\n"
"PO-Revision-Date: 2020-03-29 12:13+0300\n"
"Last-Translator: Alexander Minza <alex@alexminza.com>\n"
"Language-Team: \n"
"Language: ro\n"
Expand Down
Binary file modified languages/wc-moldovaagroindbank-ru_RU.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions languages/wc-moldovaagroindbank-ru_RU.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# This file is distributed under the same license as the WooCommerce Moldova Agroindbank Payment Gateway package.
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Moldova Agroindbank Payment Gateway 1.1.4\n"
"Project-Id-Version: WooCommerce Moldova Agroindbank Payment Gateway 1.1.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-"
"moldovaagroindbank\n"
"POT-Creation-Date: 2020-03-25 13:50+0200\n"
"PO-Revision-Date: 2020-03-25 13:51+0200\n"
"POT-Creation-Date: 2020-03-29 12:12+0300\n"
"PO-Revision-Date: 2020-03-29 12:12+0300\n"
"Last-Translator: Alexander Minza <alex@alexminza.com>\n"
"Language-Team: \n"
"Language: ru\n"
Expand Down
4 changes: 2 additions & 2 deletions languages/wc-moldovaagroindbank.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce Moldova Agroindbank Payment Gateway 1.1.4\n"
"Project-Id-Version: WooCommerce Moldova Agroindbank Payment Gateway 1.1.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-moldovaagroindbank\n"
"POT-Creation-Date: 2020-03-25 13:50+0200\n"
"POT-Creation-Date: 2020-03-29 12:12+0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ You can also contribute to the plugin by translating it. Simply visit [translate

== Changelog ==

= 1.1.5 =
Fixed transaction reversal status check

= 1.1.4 =
Updated WC tested up to 4.0.1

Expand Down
4 changes: 2 additions & 2 deletions wc-moldovaagroindbank.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Moldova Agroindbank Payment Gateway
* Description: WooCommerce Payment Gateway for Moldova Agroindbank
* Plugin URI: https://github.com/alexminza/wc-moldovaagroindbank
* Version: 1.1.4
* Version: 1.1.5
* Author: Alexander Minza
* Author URI: https://profiles.wordpress.org/alexminza
* Developer: Alexander Minza
Expand Down Expand Up @@ -880,7 +880,7 @@ public function refund_transaction($order_id, $order, $amount = null) {
if(!empty($reversal_result)) {
$result = $reversal_result[self::MAIB_RESULT];

if($result === self::MAIB_RESULT_REVERSED) {
if($result === self::MAIB_RESULT_OK) {
$message = sprintf(__('Refund of %1$s %2$s via %3$s approved: %4$s', self::MOD_TEXT_DOMAIN), $amount, $order_currency, $this->method_title, http_build_query($reversal_result));
$message = $this->get_order_message($message);
$this->log($message, WC_Log_Levels::INFO);
Expand Down

0 comments on commit 4f5e6a1

Please sign in to comment.