Skip to content

Commit

Permalink
Merge pull request #150 from PluginAndPartners/feature/changeSupWoo
Browse files Browse the repository at this point in the history
Changed WooCommerce compatibility and fixed webhook notification variable
  • Loading branch information
GiovanniCavallari authored Oct 23, 2020
2 parents d1b0529 + 24706e5 commit 2229055
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions changelog.log
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks
== 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
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-mercadopago.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Text Domain: woocommerce-mercadopago
* Domain Path: /i18n/languages/
* WC requires at least: 3.0.0
* WC tested up to: 4.5.0
* WC tested up to: 4.6.0
* @package MercadoPago
* @category Core
* @author Mercado Pago
Expand Down

0 comments on commit 2229055

Please sign in to comment.