Version Description
Download this release
Release Info
Developer | mercadopago |
Plugin | WooCommerce MercadoPago |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.3
- i18n/languages/woocommerce-mercadopago-es_ES.po +12 -12
- i18n/languages/woocommerce-mercadopago-es_MX.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_MX.po +0 -3
- i18n/languages/woocommerce-mercadopago-es_PE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_PE.po +0 -3
- i18n/languages/woocommerce-mercadopago-es_UY.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_UY.po +0 -3
- i18n/languages/woocommerce-mercadopago-es_VE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_VE.po +0 -3
- i18n/languages/woocommerce-mercadopago-pt_BR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.po +0 -3
- includes/WC_WooMercadoPago_CustomGateway.php +3 -3
- includes/WC_WooMercadoPago_TicketGateway.php +4 -3
- includes/sdk/lib/mercadopago.php +1 -1
- readme.txt +12 -2
- templates/credit-card/payment-form.php +5 -5
- templates/ticket/ticket-form.php +4 -2
- woocommerce-mercadopago.php +2 -2
i18n/languages/woocommerce-mercadopago-es_ES.po
CHANGED
@@ -910,18 +910,6 @@ msgstr "Su pago no tiene fondos suficientes."
|
|
910 |
msgid "Your payment does not process payments with selected installments."
|
911 |
msgstr "El pago no puede procesar la cuota seleccionada."
|
912 |
|
913 |
-
msgid "Fisical Person"
|
914 |
-
msgstr "Persona Física"
|
915 |
-
|
916 |
-
msgid "Legal Person"
|
917 |
-
msgstr "Persona Jurídica"
|
918 |
-
|
919 |
-
msgid "SOCIAL NAME"
|
920 |
-
msgstr "RAZÓN SOCIAL"
|
921 |
-
|
922 |
-
msgid "CNPJ"
|
923 |
-
msgstr "CNPJ"
|
924 |
-
|
925 |
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
926 |
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
927 |
|
@@ -1008,3 +996,15 @@ msgstr "Obligatorio informar su ESTADO"
|
|
1008 |
|
1009 |
msgid "You must inform your ZIP"
|
1010 |
msgstr "Obligatorio informar su CÓDIGO POSTAL"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
910 |
msgid "Your payment does not process payments with selected installments."
|
911 |
msgstr "El pago no puede procesar la cuota seleccionada."
|
912 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
913 |
msgid "You have reached the limit of allowed attempts. Choose another card or another payment method."
|
914 |
msgstr "Has alcanzado el límite de intentos permitidos. Elija otra tarjeta u otro medio de pago."
|
915 |
|
996 |
|
997 |
msgid "You must inform your ZIP"
|
998 |
msgstr "Obligatorio informar su CÓDIGO POSTAL"
|
999 |
+
|
1000 |
+
msgid "Fisical Person"
|
1001 |
+
msgstr "Persona Física"
|
1002 |
+
|
1003 |
+
msgid "Legal Person"
|
1004 |
+
msgstr "Persona Jurídica"
|
1005 |
+
|
1006 |
+
msgid "SOCIAL NAME"
|
1007 |
+
msgstr "RAZÓN SOCIAL"
|
1008 |
+
|
1009 |
+
msgid "CNPJ"
|
1010 |
+
msgstr "CNPJ"
|
i18n/languages/woocommerce-mercadopago-es_MX.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_MX.po
CHANGED
@@ -1008,6 +1008,3 @@ msgstr "RAZÓN SOCIAL"
|
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
1011 |
-
|
1012 |
-
msgid "Custom Domain for IPN"
|
1013 |
-
msgstr "Dominio personalizado para IPN"
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
|
|
|
|
|
i18n/languages/woocommerce-mercadopago-es_PE.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_PE.po
CHANGED
@@ -1008,6 +1008,3 @@ msgstr "RAZÓN SOCIAL"
|
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
1011 |
-
|
1012 |
-
msgid "Custom Domain for IPN"
|
1013 |
-
msgstr "Dominio personalizado para IPN"
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
|
|
|
|
|
i18n/languages/woocommerce-mercadopago-es_UY.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_UY.po
CHANGED
@@ -1008,6 +1008,3 @@ msgstr "RAZÓN SOCIAL"
|
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
1011 |
-
|
1012 |
-
msgid "Custom Domain for IPN"
|
1013 |
-
msgstr "Dominio personalizado para IPN"
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
|
|
|
|
|
i18n/languages/woocommerce-mercadopago-es_VE.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_VE.po
CHANGED
@@ -1008,6 +1008,3 @@ msgstr "RAZÓN SOCIAL"
|
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
1011 |
-
|
1012 |
-
msgid "Custom Domain for IPN"
|
1013 |
-
msgstr "Dominio personalizado para IPN"
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
|
|
|
|
|
i18n/languages/woocommerce-mercadopago-pt_BR.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-pt_BR.po
CHANGED
@@ -1008,6 +1008,3 @@ msgstr "RAZÃO SOCIAL"
|
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
1011 |
-
|
1012 |
-
msgid "Custom Domain for IPN"
|
1013 |
-
msgstr "Domínio Customizado para IPN"
|
1008 |
|
1009 |
msgid "CNPJ"
|
1010 |
msgstr "CNPJ"
|
|
|
|
|
|
includes/WC_WooMercadoPago_CustomGateway.php
CHANGED
@@ -32,10 +32,10 @@ class WC_WooMercadoPago_CustomGateway extends WC_Payment_Gateway {
|
|
32 |
// WooCommerce fields.
|
33 |
$this->id = 'woo-mercado-pago-custom';
|
34 |
$this->supports = array( 'products', 'refunds' );
|
35 |
-
|
36 |
'woocommerce_mercadopago_icon',
|
37 |
-
plugins_url( 'assets/images/
|
38 |
-
)
|
39 |
|
40 |
$this->method_title = __( 'Mercado Pago - Custom Checkout', 'woocommerce-mercadopago' );
|
41 |
$this->method_description = '<img width="200" height="52" src="' .
|
32 |
// WooCommerce fields.
|
33 |
$this->id = 'woo-mercado-pago-custom';
|
34 |
$this->supports = array( 'products', 'refunds' );
|
35 |
+
$this->icon = apply_filters(
|
36 |
'woocommerce_mercadopago_icon',
|
37 |
+
plugins_url( 'assets/images/mercadopago.png', plugin_dir_path( __FILE__ ) )
|
38 |
+
);
|
39 |
|
40 |
$this->method_title = __( 'Mercado Pago - Custom Checkout', 'woocommerce-mercadopago' );
|
41 |
$this->method_description = '<img width="200" height="52" src="' .
|
includes/WC_WooMercadoPago_TicketGateway.php
CHANGED
@@ -32,10 +32,10 @@ class WC_WooMercadoPago_TicketGateway extends WC_Payment_Gateway {
|
|
32 |
// WooCommerce fields.
|
33 |
$this->id = 'woo-mercado-pago-ticket';
|
34 |
$this->supports = array( 'products', 'refunds' );
|
35 |
-
|
36 |
'woocommerce_mercadopago_icon',
|
37 |
-
plugins_url( 'assets/images/
|
38 |
-
)
|
39 |
|
40 |
$this->method_title = __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago' );
|
41 |
$this->method_description = '<img width="200" height="52" src="' .
|
@@ -860,6 +860,7 @@ class WC_WooMercadoPago_TicketGateway extends WC_Payment_Gateway {
|
|
860 |
$preferences['payer']['address']['neighborhood'] = $ticket_checkout['city'];
|
861 |
$preferences['payer']['address']['city'] = $ticket_checkout['city'];
|
862 |
$preferences['payer']['address']['federal_unit'] = $ticket_checkout['state'];
|
|
|
863 |
}
|
864 |
|
865 |
// Do not set IPN url if it is a localhost.
|
32 |
// WooCommerce fields.
|
33 |
$this->id = 'woo-mercado-pago-ticket';
|
34 |
$this->supports = array( 'products', 'refunds' );
|
35 |
+
$this->icon = apply_filters(
|
36 |
'woocommerce_mercadopago_icon',
|
37 |
+
plugins_url( 'assets/images/mercadopago.png', plugin_dir_path( __FILE__ ) )
|
38 |
+
);
|
39 |
|
40 |
$this->method_title = __( 'Mercado Pago - Ticket', 'woocommerce-mercadopago' );
|
41 |
$this->method_description = '<img width="200" height="52" src="' .
|
860 |
$preferences['payer']['address']['neighborhood'] = $ticket_checkout['city'];
|
861 |
$preferences['payer']['address']['city'] = $ticket_checkout['city'];
|
862 |
$preferences['payer']['address']['federal_unit'] = $ticket_checkout['state'];
|
863 |
+
$preferences['payer']['address']['zip_code'] = $ticket_checkout['zipcode'];
|
864 |
}
|
865 |
|
866 |
// Do not set IPN url if it is a localhost.
|
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.
|
16 |
private $client_id;
|
17 |
private $client_secret;
|
18 |
private $ll_access_token;
|
12 |
|
13 |
class MP {
|
14 |
|
15 |
+
private $version = '3.0.3';
|
16 |
private $client_id;
|
17 |
private $client_secret;
|
18 |
private $ll_access_token;
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: ecommerce, mercadopago, woocommerce
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 4.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 3.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -45,7 +45,7 @@ You have two ways to install this module: from your WordPress Store, or by downl
|
|
45 |
3. You should find the module read to be installed. Click install.
|
46 |
|
47 |
= Manual Download =
|
48 |
-
1. Get the module sources from a repository (<a href="https://github.com/mercadopago/cart-woocommerce/archive/master.zip">Github</a> or <a href="https://downloads.wordpress.org/plugin/woocommerce-mercadopago.3.0.
|
49 |
2. Unzip the folder and find "woocommerce-mercadopago" directory;
|
50 |
3. Copy "woocommerce-mercadopago" directory to **[WordPressRootDirectory]/wp-content/plugins/** directory.
|
51 |
|
@@ -101,6 +101,16 @@ Please, check our FAQ at: https://www.mercadopago.com.br/ajuda/
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
= v3.0.1 (04/10/2017) =
|
105 |
* Bug fixes
|
106 |
- We fixed a Javascript problem that are occurring when payments were retried in custom checkout and tickets;
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 4.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 3.0.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
45 |
3. You should find the module read to be installed. Click install.
|
46 |
|
47 |
= Manual Download =
|
48 |
+
1. Get the module sources from a repository (<a href="https://github.com/mercadopago/cart-woocommerce/archive/master.zip">Github</a> or <a href="https://downloads.wordpress.org/plugin/woocommerce-mercadopago.3.0.3.zip">WordPress Plugin Directory</a>);
|
49 |
2. Unzip the folder and find "woocommerce-mercadopago" directory;
|
50 |
3. Copy "woocommerce-mercadopago" directory to **[WordPressRootDirectory]/wp-content/plugins/** directory.
|
51 |
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= v3.0.3 (25/10/2017) =
|
105 |
+
* Features
|
106 |
+
- Rollout to Uruguay for Custom Checkout and Tickets.
|
107 |
+
* Bug fixes
|
108 |
+
- Not showing ticket form when not needed.
|
109 |
+
|
110 |
+
= v3.0.2 (19/10/2017) =
|
111 |
+
* Bug fixes
|
112 |
+
- Fixed the absence of [zip_code] field in registered tickets for Brazil.
|
113 |
+
|
114 |
= v3.0.1 (04/10/2017) =
|
115 |
* Bug fixes
|
116 |
- We fixed a Javascript problem that are occurring when payments were retried in custom checkout and tickets;
|
templates/credit-card/payment-form.php
CHANGED
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
27 |
|
28 |
<fieldset id="custom_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
29 |
|
30 |
-
<div class="mp-box-inputs mp-line" id="mercadopago-form-coupon" style="padding:0px
|
31 |
<label for="couponCodeLabel">
|
32 |
<?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?>
|
33 |
</label>
|
@@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
49 |
</div>
|
50 |
|
51 |
<!-- payment method -->
|
52 |
-
<div id="mercadopago-form-customer-and-card" style="padding:0px
|
53 |
<div class="mp-box-inputs mp-line">
|
54 |
<label for="paymentMethodIdSelector">
|
55 |
<?php echo esc_html__( 'Payment Method', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
@@ -98,7 +98,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
98 |
</div>
|
99 |
</div> <!-- end mercadopago-form-osc -->
|
100 |
|
101 |
-
<div id="mercadopago-form" style="padding:0px
|
102 |
<!-- Card Number -->
|
103 |
<div class="mp-box-inputs mp-col-100">
|
104 |
<label for="cardNumber">
|
@@ -1256,7 +1256,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
1256 |
document.querySelector( MPv1.selectors.mpDoc ).style.display = "none";
|
1257 |
|
1258 |
document.querySelector( MPv1.selectors.formCustomerAndCard ).removeAttribute( "style" );
|
1259 |
-
document.querySelector( MPv1.selectors.formCustomerAndCard ).style.padding = "0px
|
1260 |
document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard ).style.display = "none";
|
1261 |
|
1262 |
// Removing not used fields for this country.
|
@@ -1321,7 +1321,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
1321 |
} else {
|
1322 |
document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard ).style.display = "none";
|
1323 |
document.querySelector( MPv1.selectors.form ).removeAttribute( "style" );
|
1324 |
-
document.querySelector( MPv1.selectors.form ).style.padding = "0px
|
1325 |
}
|
1326 |
Mercadopago.clearSession();
|
1327 |
if ( MPv1.create_token_on.event ) {
|
27 |
|
28 |
<fieldset id="custom_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
29 |
|
30 |
+
<div class="mp-box-inputs mp-line" id="mercadopago-form-coupon" style="padding:0px 12px 16px 12px;">
|
31 |
<label for="couponCodeLabel">
|
32 |
<?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?>
|
33 |
</label>
|
49 |
</div>
|
50 |
|
51 |
<!-- payment method -->
|
52 |
+
<div id="mercadopago-form-customer-and-card" style="padding:0px 12px 0px 12px;">
|
53 |
<div class="mp-box-inputs mp-line">
|
54 |
<label for="paymentMethodIdSelector">
|
55 |
<?php echo esc_html__( 'Payment Method', 'woocommerce-mercadopago' ); ?> <em>*</em>
|
98 |
</div>
|
99 |
</div> <!-- end mercadopago-form-osc -->
|
100 |
|
101 |
+
<div id="mercadopago-form" style="padding:0px 12px 0px 12px;">
|
102 |
<!-- Card Number -->
|
103 |
<div class="mp-box-inputs mp-col-100">
|
104 |
<label for="cardNumber">
|
1256 |
document.querySelector( MPv1.selectors.mpDoc ).style.display = "none";
|
1257 |
|
1258 |
document.querySelector( MPv1.selectors.formCustomerAndCard ).removeAttribute( "style" );
|
1259 |
+
document.querySelector( MPv1.selectors.formCustomerAndCard ).style.padding = "0px 12px 0px 12px";
|
1260 |
document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard ).style.display = "none";
|
1261 |
|
1262 |
// Removing not used fields for this country.
|
1321 |
} else {
|
1322 |
document.querySelector( MPv1.selectors.mpSecurityCodeCustomerAndCard ).style.display = "none";
|
1323 |
document.querySelector( MPv1.selectors.form ).removeAttribute( "style" );
|
1324 |
+
document.querySelector( MPv1.selectors.form ).style.padding = "0px 12px 0px 12px";
|
1325 |
}
|
1326 |
Mercadopago.clearSession();
|
1327 |
if ( MPv1.create_token_on.event ) {
|
templates/ticket/ticket-form.php
CHANGED
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
34 |
<fieldset id="ticket_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
35 |
|
36 |
<!-- coupom -->
|
37 |
-
<div class="mp-box-inputs mp-line form-row" id="mercadopago-form-coupon-ticket" style="padding:0px
|
38 |
<div class="form-col-8">
|
39 |
<label for="couponCodeLabel"><?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?></label>
|
40 |
<input type="text" id="couponCodeTicket" name="mercadopago_ticket[coupon_code]"
|
@@ -159,7 +159,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
159 |
</div>
|
160 |
</div>
|
161 |
|
162 |
-
<div style="padding:0px
|
163 |
<p>
|
164 |
<?php
|
165 |
if ( count( $payment_methods ) > 1 ) :
|
@@ -789,6 +789,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
789 |
// flow: MLB
|
790 |
if (MPv1Ticket.site_id == "MLB") {
|
791 |
MPv1Ticket.actionsMLB();
|
|
|
|
|
792 |
}
|
793 |
|
794 |
return;
|
34 |
<fieldset id="ticket_checkout_fieldset" style="margin:-1px; background:white; display: none;">
|
35 |
|
36 |
<!-- coupom -->
|
37 |
+
<div class="mp-box-inputs mp-line form-row" id="mercadopago-form-coupon-ticket" style="padding:0px 12px 16px 12px;" >
|
38 |
<div class="form-col-8">
|
39 |
<label for="couponCodeLabel"><?php echo esc_html__( 'Discount Coupon', 'woocommerce-mercadopago' ); ?></label>
|
40 |
<input type="text" id="couponCodeTicket" name="mercadopago_ticket[coupon_code]"
|
159 |
</div>
|
160 |
</div>
|
161 |
|
162 |
+
<div style="padding:0px 12px 0px 12px;">
|
163 |
<p>
|
164 |
<?php
|
165 |
if ( count( $payment_methods ) > 1 ) :
|
789 |
// flow: MLB
|
790 |
if (MPv1Ticket.site_id == "MLB") {
|
791 |
MPv1Ticket.actionsMLB();
|
792 |
+
} else {
|
793 |
+
document.querySelector(MPv1Ticket.selectors.formTicket).style.display = "none";
|
794 |
}
|
795 |
|
796 |
return;
|
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.
|
7 |
* Author: Mercado Pago
|
8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
9 |
* Text Domain: woocommerce-mercadopago
|
@@ -87,7 +87,7 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
|
87 |
// ============================================================
|
88 |
|
89 |
// General constants.
|
90 |
-
const VERSION = '3.0.
|
91 |
const MIN_PHP = 5.6;
|
92 |
|
93 |
// Arrays to hold configurations for LatAm environment.
|
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.3
|
7 |
* Author: Mercado Pago
|
8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
9 |
* Text Domain: woocommerce-mercadopago
|
87 |
// ============================================================
|
88 |
|
89 |
// General constants.
|
90 |
+
const VERSION = '3.0.3';
|
91 |
const MIN_PHP = 5.6;
|
92 |
|
93 |
// Arrays to hold configurations for LatAm environment.
|