From 7075d9b1dfac850ce8d4915097e7cc0a3e95a746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Mon, 15 Aug 2022 10:18:02 +0200 Subject: [PATCH 1/2] Fix parsing gateways response message (fixes #3). --- src/XML/GatewaysResponseMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XML/GatewaysResponseMessage.php b/src/XML/GatewaysResponseMessage.php index 5143a8b..fcaefa7 100644 --- a/src/XML/GatewaysResponseMessage.php +++ b/src/XML/GatewaysResponseMessage.php @@ -34,7 +34,7 @@ public static function parse( SimpleXMLElement $xml ) { $message->gateways = array(); - if ( \is_array( $xml->gateways->gateway ) ) { + if ( \is_object( $xml->gateways->gateway ) ) { foreach ( $xml->gateways->gateway as $gateway ) { $id = Security::filter( $gateway->id ); $description = Security::filter( $gateway->description ); From 3d787f19a63558979f1e5a066f1d745c1a199a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Mon, 15 Aug 2022 12:51:14 +0200 Subject: [PATCH 2/2] Getting ready for version 4.1.2. --- CHANGELOG.md | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1af9be1..9ccee95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C ## [Unreleased][unreleased] - +## [4.1.2] - 2022-08-15 +- Fixed parsing gateways response message ([pronamic/wp-pronamic-pay-multisafepay#3](https://github.com/pronamic/wp-pronamic-pay-multisafepay/issues/3)). + ## [4.1.1] - 2022-05-30 ### Fixed - Fix possible "Warning: Invalid argument supplied for foreach()" with incomplete config. @@ -86,7 +89,8 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C ## 1.0.0 - 2015-01-19 - First release. -[unreleased]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.1.1...HEAD +[unreleased]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.1.2...HEAD +[4.1.2]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.1.1...4.1.2 [4.1.1]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.1.0...4.1.1 [4.1.0]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.0.1...4.1.0 [4.0.1]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.0.0...4.0.1 diff --git a/package.json b/package.json index 2261ca1..e494735 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "multisafepay", - "version": "4.1.1", + "version": "4.1.2", "description": "MultiSafepay driver for the WordPress payment processing library.", "repository": { "type": "git",