' . $this->__(self::NOTICE_ENABLED, $localCurrency, $currency) . '
+' . __('Now we convert your currency from {%s} to {%s}.', $localCurrency, $currency, 'woocommerce-mercadopago') . '
' . $this->__(self::NOTICE_DISABLED, $localCurrency, $currency) . '
+' . __('We no longer convert your currency from {%s} to {%s}.', $localCurrency, $currency, 'woocommerce-mercadopago') . '
1
' . __('Upload your credentials depending on the country in which you are registered.', 'woocommerce-mercadopago') . '
2
@@ -746,7 +746,7 @@ public function field_checkout_credential_accesstoken_test() public function field_checkout_credential_title_prod() { $checkout_credential_title_prod = array( - 'title' => __('Production credentials!', 'woocommerce-mercadopago'), + 'title' => __('Production credentials', 'woocommerce-mercadopago'), 'type' => 'title', ); return $checkout_credential_title_prod; @@ -1024,7 +1024,7 @@ public function field_custom_url_ipn() '' ), 'default' => '', - 'desc_tip' => __('IPN (Instant Payment Notification) es una notificación de eventos que se realizan en tu plataforma y que se envía de un servidor a otro mediante una llamada HTTP POST. Consulta más información en nuestras guías.', 'woocommerce-services') + 'desc_tip' => __('IPN (Instant Payment Notification) is a notification of events that take place on your platform and that is sent from one server to another through an HTTP POST call. See more information in our guides.', 'woocommerce-services') ); return $custom_url_ipn; } @@ -1085,7 +1085,7 @@ public function field_binary_mode() 'type' => 'select', 'default' => 'no', 'description' => __('Accept and reject payments automatically. Do you want us to activate it?', 'woocommerce-mercadopago'), - 'desc_tip' => __('Si activas el modo binario no podrás dejar pagos pendientes. Esto puede afectar la prevención de fraude. Dejalo inactivo para estar respaldado por nuestra propia herramienta.', 'woocommerce-services'), + 'desc_tip' => __('If you activate binary mode you will not be able to leave pending payments. This can affect fraud prevention. Leave it idle to be backed by our own tool.', 'woocommerce-services'), 'options' => array( 'yes' => __('Yes', 'woocommerce-mercadopago'), 'no' => __('No', 'woocommerce-mercadopago') diff --git a/includes/payments/WC_WooMercadoPago_TicketGateway.php b/includes/payments/WC_WooMercadoPago_TicketGateway.php index b7d3cdcae..6f7e00869 100755 --- a/includes/payments/WC_WooMercadoPago_TicketGateway.php +++ b/includes/payments/WC_WooMercadoPago_TicketGateway.php @@ -1,7 +1,7 @@ official documentation for more information on the specific fields to configure. +== Changelog == += v4.2.2 (27/07/2020) = +* Features + - Added feature: cancelled orders on WooCommerce are automatically cancelled on Mercado Pago + +* Bug fixes + - Fixed notification bug - No longer updates completed orders + - Fixed currency conversion API - No longer allows payments without currency conversion + - Fixed payment procesisng for virtual products + - Added ABSPATH in every PHP file + - Adjusted installments translation + - Adjusted state names for Transparent Checkout in Brazil + - Adjusted currency translation translations + - Removed text in code written in Spanish + == Changelog == = v4.2.1 (18/05/2020) = -* Bug fixes +* Bug fixes - Corrected CI document input validation on Uruguay Custom Offline Checkout. = v4.2.0 (13/05/2020) = @@ -132,12 +147,12 @@ Check out our diff --git a/templates/checkout/custom_checkout.php b/templates/checkout/custom_checkout.php index d3fbc7f65..206511f93 100644 --- a/templates/checkout/custom_checkout.php +++ b/templates/checkout/custom_checkout.php @@ -1,5 +1,6 @@ diff --git a/templates/checkout/ticket_checkout.php b/templates/checkout/ticket_checkout.php index 601987443..12cf2b673 100644 --- a/templates/checkout/ticket_checkout.php +++ b/templates/checkout/ticket_checkout.php @@ -1,6 +1,7 @@ @@ -133,13 +134,13 @@ - - + + - - - + + + @@ -150,7 +151,7 @@ - + diff --git a/woocommerce-mercadopago.php b/woocommerce-mercadopago.php index ac42f5cd5..d3275bebe 100644 --- a/woocommerce-mercadopago.php +++ b/woocommerce-mercadopago.php @@ -4,13 +4,13 @@ * Plugin Name: Mercado Pago payments for WooCommerce * Plugin URI: https://github.com/mercadopago/cart-woocommerce * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account. - * Version: 4.2.1 + * Version: 4.2.2 * Author: Mercado Pago * Author URI: https://developers.mercadopago.com/ * Text Domain: woocommerce-mercadopago * Domain Path: /i18n/languages/ * WC requires at least: 3.0.0 - * WC tested up to: 4.1.0 + * WC tested up to: 4.3.0 * @package MercadoPago * @category Core * @author Mercado Pago @@ -57,20 +57,11 @@ function wc_mercado_pago_notify_deprecated_presence() * * @since 3.0.1 */ -function woocommerce_mercadopago_load_plugin_textdomain() -{ - $text_domain = 'woocommerce-mercadopago'; - $locale = apply_filters('plugin_locale', get_locale(), $text_domain); - - $original_language_file = dirname(__FILE__) . '/i18n/languages/woocommerce-mercadopago-' . $locale . '.mo'; - - // Unload the translation for the text domain of the plugin - unload_textdomain($text_domain); - // Load first the override file - load_textdomain($text_domain, $original_language_file); +function woocommerce_mercadopago_load_plugin_textdomain() { + load_plugin_textdomain( 'woocommerce-mercadopago', false, dirname( plugin_basename( __FILE__ ) ) . '/i18n/languages/' ); } -add_action('plugins_loaded', 'woocommerce_mercadopago_load_plugin_textdomain'); +add_action( 'init', 'woocommerce_mercadopago_load_plugin_textdomain' ); /** * Notice about unsupported PHP version.