Skip to content

Commit d6f78c7

Browse files
authored
Merge pull request #377 from buckaroo-it/develop
Update, Test & Release (4.3.0)
2 parents aa4f4ee + 3654624 commit d6f78c7

File tree

14 files changed

+256
-9
lines changed

14 files changed

+256
-9
lines changed

.github/workflows/icons.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
cp -R "Payment methods/SVG/." ${{ github.workspace }}/library/buckaroo_images/svg/
2626
cd ${{ github.workspace }}/library/buckaroo_images/svg/
2727
mv ideal-in3.svg in3-ideal.svg
28-
rm -f wechatpay.svg vouchers.svg trustly.svg tinka.svg alipay.svg buckaroovoucher.svg
28+
rm -f vouchers.svg trustly.svg tinka.svg buckaroovoucher.svg
2929
rm -f ideal-qr.svg paylink.svg pos.svg pos-nfc.svg riverty.svg
3030
- name: Copy creditcards icons
3131
run: |

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.3
9+
Version: 4.3.0
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.3\n"
5+
"Project-Id-Version: WC Buckaroo BPE Gateway 4.3.0\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"
Lines changed: 105 additions & 0 deletions
Loading
Lines changed: 71 additions & 0 deletions
Loading

readme.txt

Lines changed: 6 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.3
7+
Stable tag: 4.3.0
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -72,6 +72,11 @@ 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.3.0 =
76+
BP-3630: Add payment method: Alipay
77+
BP-3631: Add payment method: WeChat Pay
78+
BP-4428: PayPal Express - Plugin does not process response Address
79+
BP-4372: Push cannot be processed if it contains special characters in customer's IBAN
7580
= 4.2.3 =
7681
BP-4362 Fix: Apple pay incorrect amount in WooCommerce in combination with discount rules
7782
= 4.2.2 =

src/Admin/PaymentMethodSettings.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ public function __construct()
2020
parent::__construct();
2121
}
2222

23+
/**
24+
* Custom validation for textarea fields to prevent HTML entity encoding
25+
*
26+
* @param string $key
27+
* @param string $value
28+
* @return string
29+
*/
30+
public function validate_textarea_field($key, $value)
31+
{
32+
if (in_array($key, ['transactiondescription', 'refund_description'])) {
33+
return is_null($value) ? '' : wp_unslash(trim($value));
34+
}
35+
36+
return parent::validate_textarea_field($key, $value);
37+
}
38+
2339
/**
2440
public
2541
*/

src/Core/PaymentGatewayRegistry.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Buckaroo\Woocommerce\Gateways\Applepay\ApplepayGateway;
88
use Buckaroo\Woocommerce\Gateways\Bancontact\BancontactGateway;
99
use Buckaroo\Woocommerce\Gateways\Belfius\BelfiusGateway;
10+
use Buckaroo\Woocommerce\Gateways\Alipay\AlipayGateway;
1011
use Buckaroo\Woocommerce\Gateways\Billink\BillinkGateway;
1112
use Buckaroo\Woocommerce\Gateways\Blik\BlikGateway;
1213
use Buckaroo\Woocommerce\Gateways\CreditCard\CreditCardGateway;
@@ -28,6 +29,7 @@
2829
use Buckaroo\Woocommerce\Gateways\Przelewy24\Przelewy24Gateway;
2930
use Buckaroo\Woocommerce\Gateways\SepaDirectDebit\SepaDirectDebitGateway;
3031
use Buckaroo\Woocommerce\Gateways\Transfer\TransferGateway;
32+
use Buckaroo\Woocommerce\Gateways\WeChatPay\WeChatPayGateway;
3133
use Buckaroo\Woocommerce\Order\OrderCapture;
3234

3335
class PaymentGatewayRegistry
@@ -62,6 +64,8 @@ class PaymentGatewayRegistry
6264
'payperemail' => ['gateway_class' => PayPerEmailGateway::class],
6365
'sepadirectdebit' => ['gateway_class' => SepaDirectDebitGateway::class],
6466
'transfer' => ['gateway_class' => TransferGateway::class],
67+
'alipay' => ['gateway_class' => AlipayGateway::class],
68+
'wechatpay' => ['gateway_class' => WeChatPayGateway::class],
6569
];
6670

6771
/**

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.3';
19+
public const VERSION = '4.3.0';
2020

2121
/**
2222
* Instance of PaymentGatewayRegistry.

src/Gateways/AbstractPaymentGateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function generate_buckaroo_notice_html($key, $data)
349349
public function response_handler()
350350
{
351351
$GLOBALS['plugin_id'] = $this->plugin_id . $this->id . '_settings';
352-
$result = (new ReturnProcessor($_POST ?? $_GET))->handle($this);
352+
$result = (new ReturnProcessor(stripslashes_deep($_POST ?? $_GET)))->handle($this);
353353

354354
if (! is_null($result)) {
355355
wp_safe_redirect($result['redirect']);

0 commit comments

Comments
 (0)