WooCommerce MercadoPago - Version 5.3.1

Version Description

(12/08/2021) = * Bug fixes - Adjusted notification url, checking if it's a friendly url or not

Download this release

Release Info

Developer mercadopago
Plugin Icon 128x128 WooCommerce MercadoPago
Version 5.3.1
Comparing to
See all releases

Code changes from version 5.3.0 to 5.3.1

i18n/languages/woocommerce-mercadopago-es_AR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_CO.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_ES.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_MX.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_PE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_UY.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-es_VE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago-pt_BR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
2
  # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Mercado Pago payments for WooCommerce 5.3.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
7
  "mercadopago\n"
8
  "POT-Creation-Date: \n"
i18n/languages/woocommerce-mercadopago.pot CHANGED
@@ -1140,7 +1140,7 @@ msgstr ""
1140
  msgid "Shipping service used by the store."
1141
  msgstr ""
1142
 
1143
- #: ../../includes/module/preference/class-wc-woomercadopago-preference-abstract.php:536, ../../includes/module/preference/class-wc-woomercadopago-preference-abstract.php:537
1144
  msgid "Discount provided by store"
1145
  msgstr ""
1146
 
1140
  msgid "Shipping service used by the store."
1141
  msgstr ""
1142
 
1143
+ #: ../../includes/module/preference/class-wc-woomercadopago-preference-abstract.php:540, ../../includes/module/preference/class-wc-woomercadopago-preference-abstract.php:541
1144
  msgid "Discount provided by store"
1145
  msgstr ""
1146
 
includes/module/class-wc-woomercadopago-module.php CHANGED
@@ -681,9 +681,9 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs {
681
  */
682
  public static function get_notification_type( $notification_type ) {
683
  $types['WC_WooMercadoPago_Basic_Gateway'] = 'ipn';
684
- $types['WC_WooMercadoPago_Custom_Gateway'] = 'webhook';
685
- $types['WC_WooMercadoPago_Pix_Gateway'] = 'webhook';
686
- $types['WC_WooMercadoPago_Ticket_Gateway'] = 'webhook';
687
  return $types[$notification_type];
688
  }
689
 
681
  */
682
  public static function get_notification_type( $notification_type ) {
683
  $types['WC_WooMercadoPago_Basic_Gateway'] = 'ipn';
684
+ $types['WC_WooMercadoPago_Custom_Gateway'] = 'webhooks';
685
+ $types['WC_WooMercadoPago_Pix_Gateway'] = 'webhooks';
686
+ $types['WC_WooMercadoPago_Ticket_Gateway'] = 'webhooks';
687
  return $types[$notification_type];
688
  }
689
 
includes/module/config/class-wc-woomercadopago-constants.php CHANGED
@@ -21,7 +21,7 @@ class WC_WooMercadoPago_Constants {
21
  const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
22
  const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
23
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
24
- const VERSION = '5.3.0';
25
  const MIN_PHP = 5.6;
26
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
27
  const PAYMENT_GATEWAYS = array(
21
  const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
22
  const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
23
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
24
+ const VERSION = '5.3.1';
25
  const MIN_PHP = 5.6;
26
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
27
  const PAYMENT_GATEWAYS = array(
includes/module/preference/class-wc-woomercadopago-preference-abstract.php CHANGED
@@ -432,11 +432,15 @@ abstract class WC_WooMercadoPago_Preference_Abstract extends WC_Payment_Gateway
432
  /**
433
  * Get notification type
434
  *
435
- * @return mixed
 
 
 
436
  */
437
  public function get_notification_type( $notification_url, $notification_class ) {
438
- $type = WC_WooMercadoPago_Module::get_notification_type($notification_class);
439
- return $notification_url . '?source_news=' . $type;
 
440
  }
441
 
442
  /**
432
  /**
433
  * Get notification type
434
  *
435
+ * @param $notification_url
436
+ * @param $notification_class
437
+ *
438
+ * @return string
439
  */
440
  public function get_notification_type( $notification_url, $notification_class ) {
441
+ $type = WC_WooMercadoPago_Module::get_notification_type($notification_class);
442
+ $url_join_character = preg_match('#/wc-api/#', $notification_url) ? '?' : '&';
443
+ return sprintf('%s%ssource_news=%s', $notification_url, $url_join_character, $type);
444
  }
445
 
446
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce
4
  Requires at least: 4.9.10
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
- Stable tag: 5.3.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -129,7 +129,11 @@ Set up both the plugin and the checkouts you want to activate on your payment av
129
  Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
130
 
131
  == Changelog ==
132
- = 5.3.0 (10/08/2021)
 
 
 
 
133
  * Features
134
  - Credentials order on painel
135
  - The seller can change checkout names
4
  Requires at least: 4.9.10
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
+ Stable tag: 5.3.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
129
  Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
130
 
131
  == Changelog ==
132
+ = 5.3.1 (12/08/2021) =
133
+ * Bug fixes
134
+ - Adjusted notification url, checking if it's a friendly url or not
135
+
136
+ = 5.3.0 (10/08/2021) =
137
  * Features
138
  - Credentials order on painel
139
  - The seller can change checkout names
woocommerce-mercadopago.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Mercado Pago payments for WooCommerce
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
6
- * Version: 5.3.0
7
  * Author: Mercado Pago
8
  * Author URI: https://developers.mercadopago.com/
9
  * Text Domain: woocommerce-mercadopago
10
  * Domain Path: /i18n/languages/
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 5.5.1
13
  *
14
  * @package MercadoPago
15
  */
3
  * Plugin Name: Mercado Pago payments for WooCommerce
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
6
+ * Version: 5.3.1
7
  * Author: Mercado Pago
8
  * Author URI: https://developers.mercadopago.com/
9
  * Text Domain: woocommerce-mercadopago
10
  * Domain Path: /i18n/languages/
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 5.5.2
13
  *
14
  * @package MercadoPago
15
  */