WooCommerce MercadoPago - Version 3.0.7

Version Description

Download this release

Release Info

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

Code changes from version 3.0.6 to 3.0.7

i18n/languages/woocommerce-mercadopago-es_AR.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_AR.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-es_CL.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_CL.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-es_CO.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_CO.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-es_ES.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_ES.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-es_MX.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_MX.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-es_PE.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_PE.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-es_UY.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_UY.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-es_VE.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-es_VE.po CHANGED
@@ -756,7 +756,7 @@ msgstr "Cuotas"
756
 
757
  msgid "Choose"
758
  msgstr "Seleccione"
759
-
760
  msgid "Parameter cardIssuerId can not be null/empty"
761
  msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
762
 
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Hay un o más productos que tienen dimensiones invalidas."
 
 
 
756
 
757
  msgid "Choose"
758
  msgstr "Seleccione"
759
+
760
  msgid "Parameter cardIssuerId can not be null/empty"
761
  msgstr "Parámetro [Emisor] no puede ser nulo/vacío"
762
 
1013
  msgstr "Sus productos tienen las dimensiones bien definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Hay un o más productos que tienen dimensiones invalidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que tienes el módulo <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstálelo antes de usar esta versión."
i18n/languages/woocommerce-mercadopago-pt_BR.mo CHANGED
Binary file
i18n/languages/woocommerce-mercadopago-pt_BR.po CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr "Seus produtos estão com as dimensões bem definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr "Um ou mais de seus produtos possuem dimensões inválidas."
 
 
 
1013
  msgstr "Seus produtos estão com as dimensões bem definidas."
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr "Um ou mais de seus produtos possuem dimensões inválidas."
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr "Parece que você possui o plugin <strong>Woo Mercado Pago Module</strong> instalado. Por favor, desinstale-o antes de usar esta versão."
i18n/languages/woocommerce-mercadopago.pot CHANGED
@@ -1013,4 +1013,7 @@ msgid "Your products have theirs dimensions well defined."
1013
  msgstr ""
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
- msgstr ""
 
 
 
1013
  msgstr ""
1014
 
1015
  msgid "You have product(s) with invalid dimensions."
1016
+ msgstr ""
1017
+
1018
+ msgid "It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version."
1019
+ msgstr ""
includes/sdk/lib/mercadopago.php CHANGED
@@ -12,7 +12,7 @@ $GLOBALS['LIB_LOCATION'] = dirname( __FILE__ );
12
 
13
  class MP {
14
 
15
- private $version = '3.0.6';
16
  private $client_id;
17
  private $client_secret;
18
  private $ll_access_token;
12
 
13
  class MP {
14
 
15
+ private $version = '3.0.7';
16
  private $client_id;
17
  private $client_secret;
18
  private $ll_access_token;
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WooCommerce MercadoPago ===
2
- Contributors: mercadopago, mercadolivre, claudiosanches
3
  Tags: ecommerce, mercadopago, woocommerce
4
  Requires at least: 4.8
5
  Tested up to: 4.8
6
  Requires PHP: 5.6
7
- Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -215,6 +215,10 @@ Features: LatAm Basic Checkout support. Great for merchants who want to get goin
215
 
216
  == Changelog ==
217
 
 
 
 
 
218
  = v3.0.6 (13/12/2017) =
219
  * Improvements
220
  - Added validation for dimensions of products;
1
  === WooCommerce MercadoPago ===
2
+ Contributors: mercadopago, mercadolivre, claudiosanches, marcelohama
3
  Tags: ecommerce, mercadopago, woocommerce
4
  Requires at least: 4.8
5
  Tested up to: 4.8
6
  Requires PHP: 5.6
7
+ Stable tag: 3.0.7
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
215
 
216
  == Changelog ==
217
 
218
+ = v3.0.7 (21/12/2017) =
219
+ * Improvements
220
+ - Checking presence of older versions to prevent inconsistences.
221
+
222
  = v3.0.6 (13/12/2017) =
223
  * Improvements
224
  - Added validation for dimensions of products;
woocommerce-mercadopago.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce MercadoPago
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
6
- * Version: 3.0.6
7
  * Author: Mercado Pago
8
  * Author URI: https://www.mercadopago.com.br/developers/
9
  * Text Domain: woocommerce-mercadopago
@@ -49,6 +49,23 @@ if ( version_compare( PHP_VERSION, '5.6', '<=' ) ) {
49
  return;
50
  }
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  // Load Mercado Pago SDK
53
  require_once dirname( __FILE__ ) . '/includes/sdk/lib/mercadopago.php';
54
 
@@ -88,7 +105,7 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
88
  // ============================================================
89
 
90
  // General constants.
91
- const VERSION = '3.0.6';
92
  const MIN_PHP = 5.6;
93
 
94
  // Arrays to hold configurations for LatAm environment.
@@ -172,7 +189,7 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
172
 
173
  // First of all, verify if WooCommerce is already installed.
174
  if ( class_exists( 'WC_Payment_Gateway' ) ) {
175
-
176
  // Adds each Mercado Pago gateway as available payment method.
177
  include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_BasicGateway.php';
178
  include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_CustomGateway.php';
3
  * Plugin Name: WooCommerce MercadoPago
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
6
+ * Version: 3.0.7
7
  * Author: Mercado Pago
8
  * Author URI: https://www.mercadopago.com.br/developers/
9
  * Text Domain: woocommerce-mercadopago
49
  return;
50
  }
51
 
52
+ /**
53
+ * Summary: Places a warning error to notify user that other older versions are active.
54
+ * Description: Places a warning error to notify user that other older versions are active.
55
+ * @since 3.0.7
56
+ */
57
+ function wc_mercado_pago_notify_deprecated_presence() {
58
+ echo '<div class="error"><p>' .
59
+ __( 'It seems you have <strong>Woo Mercado Pago Module</strong> installed. Please, uninstall it before using this version.', 'woocommerce-mercadopago' ) .
60
+ '</p></div>';
61
+ }
62
+
63
+ // Check if previously versions are installed, as we can't let both operate.
64
+ if ( class_exists( 'WC_WooMercadoPago_Module' ) ) {
65
+ add_action( 'admin_notices', 'wc_mercado_pago_notify_deprecated_presence' );
66
+ return;
67
+ }
68
+
69
  // Load Mercado Pago SDK
70
  require_once dirname( __FILE__ ) . '/includes/sdk/lib/mercadopago.php';
71
 
105
  // ============================================================
106
 
107
  // General constants.
108
+ const VERSION = '3.0.7';
109
  const MIN_PHP = 5.6;
110
 
111
  // Arrays to hold configurations for LatAm environment.
189
 
190
  // First of all, verify if WooCommerce is already installed.
191
  if ( class_exists( 'WC_Payment_Gateway' ) ) {
192
+
193
  // Adds each Mercado Pago gateway as available payment method.
194
  include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_BasicGateway.php';
195
  include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_CustomGateway.php';