Skip to content

Commit fc925c7

Browse files
authored
Merge pull request #367 from buckaroo-it/develop
Update, Test & Release (4.2.1)
2 parents 8da6c6e + 1af16cc commit fc925c7

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Author: Buckaroo
77
Author URI: http://www.buckaroo.nl
88
Description: Buckaroo payment system plugin for WooCommerce.
9-
Version: 4.2.0
9+
Version: 4.2.1
1010
Text Domain: wc-buckaroo-bpe-gateway
1111
License: GPLv2 or later
1212
License URI: http://www.gnu.org/licenses/gpl-2.0.html

languages/wc-buckaroo-bpe-gateway.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: WC Buckaroo BPE Gateway 4.2.0\n"
5+
"Project-Id-Version: WC Buckaroo BPE Gateway 4.2.1\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-buckaroo-bpe-gateway\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Author: Buckaroo
44
Tags: WooCommerce, payments, Buckaroo
55
Requires at least: 5.3.18
66
Tested up to: 6.7.2
7-
Stable tag: 4.2.0
7+
Stable tag: 4.2.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -72,6 +72,9 @@ The “Buckaroo Woocommerce Payments Plugin” has been translated into 3 locale
7272
[Translate “Buckaroo Woocommerce Payments Plugin” into your language.](https://translate.wordpress.org/projects/wp-plugins/wc-buckaroo-bpe-gateway/)
7373

7474
== Changelog ==
75+
= 4.2.1 =
76+
BP-4404 Fix: Invoice/order number for Riverty transactions in the Buckaroo plaza are incorrect due to a suffix that is added.
77+
BP-4402 Fix: PayPal Express checkout returns error “Cannot process Buckaroo transaction”
7578
= 4.2.0 =
7679
BP-4323 Fix: Warning: get_cart was called incorrectly.
7780
BP-4326 Fix: CustomerNumber has a wrong value (“0”) for Riverty transactions.

src/Core/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Plugin
1616
*
1717
* @var string
1818
*/
19-
public const VERSION = '4.2.0';
19+
public const VERSION = '4.2.1';
2020

2121
/**
2222
* Instance of PaymentGatewayRegistry.

src/Gateways/AbstractPaymentProcessor.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,7 @@ protected function get_order(): WC_Order
7474

7575
private function get_invoice_number(): string
7676
{
77-
if (in_array($this->gateway->id, ['buckaroo_afterpaynew', 'buckaroo_afterpay'])) {
78-
return (string) $this->get_order()->get_order_number() . time();
79-
}
80-
81-
return (string) $this->get_order()->get_order_number();
77+
return $this->get_order()->get_order_number();
8278
}
8379

8480
public function get_return_url($order = null): string

src/Gateways/PaypalExpress/PaypalExpressOrder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace Buckaroo\Woocommerce\Gateways\PaypalExpress;
44

5+
use WC_Order;
6+
use WC_Order_Item_Fee;
7+
use stdClass;
8+
59
/**
610
* PayPal express order class
711
* php version 7.2

src/PaymentProcessors/ReturnProcessor.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@ protected function handleFailureRedirect($paymentGateway, $order, $responseParse
181181

182182
protected function getRedirectUrl($paymentGateway, $order, $type = 'success')
183183
{
184-
if (is_admin()) {
185-
return wp_get_referer() ?: $order->get_edit_order_url();
186-
}
187-
188184
return $type === 'success'
189185
? $paymentGateway->get_return_url($order)
190186
: $paymentGateway->get_failed_url();

0 commit comments

Comments
 (0)