diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a025addc..78b5b30ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [4.5.0] - 2020-10-26 ### Added + - Compatibility with WooCommerce v4.6.x - Improved security (added access token in the header for all calls to Mercado Livre and Mercado Pago endpoints) - Add new endpoint to validate Access Token and Public key to substitute old process to validation - Improved performance with CSS minification diff --git a/changelog.log b/changelog.log index 9dbc3c769..5c406c17f 100644 --- a/changelog.log +++ b/changelog.log @@ -2,6 +2,7 @@ CHANGELOG: == Changelog == = v4.5.0 (26/10/2020) = * Features + - Compatibility with WooCommerce v4.6.x - Improved security (added access token in the header for all calls to Mercado Livre and Mercado Pago endpoints) - Add new endpoint to validate Access Token and Public key to substitute old process to validation - Improved performance with CSS minification diff --git a/includes/notification/WC_WooMercadoPago_Notification_Abstract.php b/includes/notification/WC_WooMercadoPago_Notification_Abstract.php index 3016166d2..1becce398 100644 --- a/includes/notification/WC_WooMercadoPago_Notification_Abstract.php +++ b/includes/notification/WC_WooMercadoPago_Notification_Abstract.php @@ -374,7 +374,7 @@ protected function validateOrderNoteType($data, $order, $status) { $paymentId = $data['id']; - if($data['ipn_type'] === 'merchant_order') { + if(isset($data['ipn_type']) && $data['ipn_type'] === 'merchant_order') { $payments = []; foreach($data['payments'] as $payment) { $payments[] = $payment['id']; diff --git a/readme.txt b/readme.txt index 8d1d7065e..512c4bdf5 100644 --- a/readme.txt +++ b/readme.txt @@ -117,6 +117,7 @@ Check out our