Version Description
Download this release
Release Info
| Developer | mercadopago |
| Plugin | |
| Version | 3.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 3.1.0 to 3.1.1
- i18n/languages/woocommerce-mercadopago-es_AR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_AR.po +34 -17
- i18n/languages/woocommerce-mercadopago-es_CL.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CL.po +33 -16
- i18n/languages/woocommerce-mercadopago-es_CO.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CO.po +33 -16
- i18n/languages/woocommerce-mercadopago-es_ES.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_ES.po +33 -16
- i18n/languages/woocommerce-mercadopago-es_MX.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_MX.po +33 -16
- i18n/languages/woocommerce-mercadopago-es_PE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_PE.po +33 -16
- i18n/languages/woocommerce-mercadopago-es_UY.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_UY.po +33 -16
- i18n/languages/woocommerce-mercadopago-es_VE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_VE.po +33 -16
- i18n/languages/woocommerce-mercadopago-pt_BR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.po +36 -19
- i18n/languages/woocommerce-mercadopago.pot +35 -17
- includes/WC_WooMercadoPago_SubscriptionGateway.php +1 -1
- includes/sdk/lib/mercadopago.php +1 -1
- readme.txt +18 -6
- woocommerce-mercadopago.php +901 -851
i18n/languages/woocommerce-mercadopago-es_AR.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_AR.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_AR\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -179,7 +172,7 @@ msgid "Status for PENDING"
|
|
| 179 |
msgstr "Estado para PENDING"
|
| 180 |
|
| 181 |
msgid "when Mercado Pago updates a payment status to PENDING."
|
| 182 |
-
msgstr "
|
| 183 |
|
| 184 |
msgid "Status for APPROVED"
|
| 185 |
msgstr "Estado para APPROVED"
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x cuotas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_AR\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 172 |
msgstr "Estado para PENDING"
|
| 173 |
|
| 174 |
msgid "when Mercado Pago updates a payment status to PENDING."
|
| 175 |
+
msgstr "cuando Mercado Pago actualiza un estado de pago a PENDIENTE."
|
| 176 |
|
| 177 |
msgid "Status for APPROVED"
|
| 178 |
msgstr "Estado para APPROVED"
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Te mostramos cómo: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-es_CL.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CL.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_CL\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x cuotas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1071,3 +1064,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1071 |
|
| 1072 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1073 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_CL\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1064 |
|
| 1065 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1066 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1067 |
+
|
| 1068 |
+
msgid "Necesitamos que hagas algo más."
|
| 1069 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1070 |
+
|
| 1071 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1072 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1073 |
+
|
| 1074 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1075 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1076 |
+
|
| 1077 |
+
msgid "Te mostramos cómo: "
|
| 1078 |
+
msgstr "Te mostramos cómo: "
|
| 1079 |
+
|
| 1080 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1081 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1082 |
+
|
| 1083 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1084 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1085 |
+
|
| 1086 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1087 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1088 |
+
|
| 1089 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1090 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-es_CO.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CO.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_CO\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x cuotas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_CO\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Te mostramos cómo: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-es_ES.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_ES.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_ES\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x cuotas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_ES\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Te mostramos cómo: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-es_MX.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_MX.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_MX\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x mensualidades"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_MX\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Te mostramos cómo: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-es_PE.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_PE.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_PE\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x cuotas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_PE\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Te mostramos cómo: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-es_UY.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_UY.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_UY\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x cuotas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_UY\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Te mostramos cómo: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-es_VE.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_VE.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_VE\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MONEDA CONVERTIDA: Su tienda está convirtiendo moneda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colombia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "No tiene suficientes permisos para acceder a esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado y habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciales se utilizan en <strong>Checkout Básico</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "o"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Su <strong>public_key</strong> y <strong>access_token</strong> son <stro
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciales se usan en <strong>Checkout Personalizado</ strong> y <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
|
@@ -148,9 +144,6 @@ msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pag
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pago"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Suscripciones"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr "Sus credenciales de Mercado Pago"
|
| 156 |
|
|
@@ -232,7 +225,7 @@ msgstr "Acá puede colocar detalles de su tienda."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descripción de la Factura"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x cuotas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir medios de pago"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -475,7 +468,7 @@ msgstr "Medio de pago"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pago aprobado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "El cliente todavía no efectuó el pago."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customización de banner para checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: es_VE\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colombia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado y habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "No tiene WooCommerce instalado y habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qué tipo de productos se vende en su tienda."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "o"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Su <strong>public_key</strong> y <strong>acceso_token</strong> son <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciales se usan en <strong>Checkout Básico</strong>, <strong>Checkout Personalizado</ strong>, <strong>Tickets</strong> y <strong>Suscripciones</strong>. Acceda este para su país en:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo permite a WooCommerce usar Mercado Pago como método de pago para compras realizadas en su tienda virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pago"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
msgstr "Sus credenciales de Mercado Pago"
|
| 149 |
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descripción de la Factura"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "La descripción que se muestra en la factura de su cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir medios de pago"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione los medios de pago que <strong>no</strong> desea aceptar con Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pago aprobado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "El cliente todavía no efectuó el pago."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe la URL de su imagen de banner. Dejar en blanco para usar el valor predeterminado de Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Necesitamos que hagas algo más."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Te mostramos cómo: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Accede a tus credenciales de Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
i18n/languages/woocommerce-mercadopago-pt_BR.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-pt_BR.po
CHANGED
|
@@ -14,10 +14,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: pt_BR\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +57,7 @@ msgstr "MOEDA CONVERTIDA: Sua loja está convertendo moeda de"
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr "Colômbia"
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr "Argentina"
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +87,7 @@ msgstr "Você não possui permissões suficientes para acessar esta página."
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr "WooCommerce está instalado e habilitado."
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr "Você não possui o WooCommerce instalado e habilitado."
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +126,6 @@ msgstr "Configure su Public_key y Access_token para tener acceso a más opciones
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr "Defina qual o tipo dos produtos que sua loja vende."
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr "Estas credenciais são usadas no <strong>Checkout Básico</strong> e <strong>Assinaturas</strong>. Acesse elas para seu país:<br>"
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr "ou"
|
| 135 |
|
|
@@ -139,8 +135,8 @@ msgstr "Sua <strong>public_key</strong> e <strong>access_token</strong> são <st
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr "Sua <strong>public_key</strong> e <strong>access_token</strong> são <strong>inválidas</strong>!"
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
-
msgstr "Estas credenciais são usadas no <strong>Checkout Transparente</strong> e <strong>
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 146 |
msgstr "Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de pagamento para compras realizadas em sua loja virtual."
|
|
@@ -148,11 +144,8 @@ msgstr "Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de p
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr "Gateways de Pagamento"
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr "Checkout Básico & Assinaturas"
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
-
msgstr "
|
| 156 |
|
| 157 |
msgid "Currency Conversion"
|
| 158 |
msgstr "Conversão de Moeda"
|
|
@@ -232,7 +225,7 @@ msgstr "Aqui você pode configurar detalhes da sua loja."
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr "Descritor da Nota Fiscal"
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr "A descrição que será mostrada na nota fiscal de seu cliente."
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +417,7 @@ msgstr "24x parcelas"
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr "Excluir Métodos de Pagamento"
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr "Selecione os meios de pagamento que <strong>não</strong> gostaria de receber com o Mercado Pago."
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -454,7 +447,7 @@ msgstr "Cancelar & Limpar carrinho"
|
|
| 454 |
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
| 455 |
msgstr "Obrigado pela sua compra. Prossiga com seu pagamento completando as informações abaixo."
|
| 456 |
|
| 457 |
-
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
| 458 |
msgstr "Um erro ocorreu ao processar seu pagamento. Por favor tente novamente ou nos contacte para assistência."
|
| 459 |
|
| 460 |
msgid "Shipping service used by store"
|
|
@@ -475,7 +468,7 @@ msgstr "Tipo de pagamento"
|
|
| 475 |
msgid "Payment approved."
|
| 476 |
msgstr "Pagamento aprovado."
|
| 477 |
|
| 478 |
-
msgid "Customer haven
|
| 479 |
msgstr "O cliente ainda não realizou o pagamento."
|
| 480 |
|
| 481 |
msgid "Payment under review."
|
|
@@ -611,7 +604,7 @@ msgid "Delayed shipping"
|
|
| 611 |
msgstr "Envio atrasado"
|
| 612 |
|
| 613 |
msgid "Missing recipient for delivery"
|
| 614 |
-
msgstr "Destinatário ausente
|
| 615 |
|
| 616 |
msgid "In return to sender"
|
| 617 |
msgstr "Retornando ao remetente"
|
|
@@ -1083,3 +1076,27 @@ msgstr "Customização de banner para o checkout"
|
|
| 1083 |
|
| 1084 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1085 |
msgstr "Informe a URL da imagem do banner. Deixe em branco para usar o padrão do Mercado Pago."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 18 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 19 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 20 |
"Last-Translator: \n"
|
| 21 |
"Language: pt_BR\n"
|
| 22 |
"X-Poedit-SearchPath-0: .\n"
|
| 57 |
msgid "Colombia"
|
| 58 |
msgstr "Colômbia"
|
| 59 |
|
| 60 |
+
msgid "Argentina"
|
| 61 |
msgstr "Argentina"
|
| 62 |
|
| 63 |
msgid "Brazil"
|
| 87 |
msgid "WooCommerce is installed and enabled."
|
| 88 |
msgstr "WooCommerce está instalado e habilitado."
|
| 89 |
|
| 90 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 91 |
msgstr "Você não possui o WooCommerce instalado e habilitado."
|
| 92 |
|
| 93 |
msgid "Your PHP version is OK."
|
| 126 |
msgid "Define which type of products your store sells."
|
| 127 |
msgstr "Defina qual o tipo dos produtos que sua loja vende."
|
| 128 |
|
|
|
|
|
|
|
|
|
|
| 129 |
msgid "or"
|
| 130 |
msgstr "ou"
|
| 131 |
|
| 135 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 136 |
msgstr "Sua <strong>public_key</strong> e <strong>access_token</strong> são <strong>inválidas</strong>!"
|
| 137 |
|
| 138 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 139 |
+
msgstr "Estas credenciais são usadas no <strong>Checkout Básico</strong>, <strong>Checkout Transparente</strong>, <strong>Boletos</strong> e <strong>Assinaturas</strong>. Acesse elas para seu país:<br>"
|
| 140 |
|
| 141 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 142 |
msgstr "Este módulo habilita o WooCommerce a usar o Mercado Pago como meio de pagamento para compras realizadas em sua loja virtual."
|
| 144 |
msgid "Payment Gateways"
|
| 145 |
msgstr "Gateways de Pagamento"
|
| 146 |
|
|
|
|
|
|
|
|
|
|
| 147 |
msgid "Your Credentials of Mercado Pago"
|
| 148 |
+
msgstr "Suas credenciais do Mercado Pago"
|
| 149 |
|
| 150 |
msgid "Currency Conversion"
|
| 151 |
msgstr "Conversão de Moeda"
|
| 225 |
msgid "Statement Descriptor"
|
| 226 |
msgstr "Descritor da Nota Fiscal"
|
| 227 |
|
| 228 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 229 |
msgstr "A descrição que será mostrada na nota fiscal de seu cliente."
|
| 230 |
|
| 231 |
msgid "Store Category"
|
| 417 |
msgid "Exclude Payment Methods"
|
| 418 |
msgstr "Excluir Métodos de Pagamento"
|
| 419 |
|
| 420 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 421 |
msgstr "Selecione os meios de pagamento que <strong>não</strong> gostaria de receber com o Mercado Pago."
|
| 422 |
|
| 423 |
msgid "Discount/Fee by Gateway"
|
| 447 |
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
| 448 |
msgstr "Obrigado pela sua compra. Prossiga com seu pagamento completando as informações abaixo."
|
| 449 |
|
| 450 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
| 451 |
msgstr "Um erro ocorreu ao processar seu pagamento. Por favor tente novamente ou nos contacte para assistência."
|
| 452 |
|
| 453 |
msgid "Shipping service used by store"
|
| 468 |
msgid "Payment approved."
|
| 469 |
msgstr "Pagamento aprovado."
|
| 470 |
|
| 471 |
+
msgid "Customer haven't paid yet."
|
| 472 |
msgstr "O cliente ainda não realizou o pagamento."
|
| 473 |
|
| 474 |
msgid "Payment under review."
|
| 604 |
msgstr "Envio atrasado"
|
| 605 |
|
| 606 |
msgid "Missing recipient for delivery"
|
| 607 |
+
msgstr "Destinatário ausente para envio"
|
| 608 |
|
| 609 |
msgid "In return to sender"
|
| 610 |
msgstr "Retornando ao remetente"
|
| 1076 |
|
| 1077 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1078 |
msgstr "Informe a URL da imagem do banner. Deixe em branco para usar o padrão do Mercado Pago."
|
| 1079 |
+
|
| 1080 |
+
msgid "Necesitamos que hagas algo más."
|
| 1081 |
+
msgstr "Precisamos que você faça alguns ajustes nas configurações."
|
| 1082 |
+
|
| 1083 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1084 |
+
msgstr "A partir da <b>versão 3.1.0</b> não estamos mais utilizando as credenciais client_id e client_secret. <b>Isso afetará o funcionamento do checkout básico</b>. "
|
| 1085 |
+
|
| 1086 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1087 |
+
msgstr "<a href=\"%s\">Atualize as suas credenciais</a> para continuar operando com o Mercado Pago."
|
| 1088 |
+
|
| 1089 |
+
msgid "Te mostramos cómo: "
|
| 1090 |
+
msgstr "Iremos te explicar como fazer isso: "
|
| 1091 |
+
|
| 1092 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1093 |
+
msgstr "Acesse a pagina de credenciais do Mercado Pago: "
|
| 1094 |
+
|
| 1095 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1096 |
+
msgstr "<b>Copie as credenciais</b> “Access_Token” e “Public_Key”, lembrando que as credenciais de Sandbox são utilizadas para testes e as de Produção são para processar pagamentos reais."
|
| 1097 |
+
|
| 1098 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1099 |
+
msgstr "Retorne para a pagina de configuração do módulo Mercado Pago e cole as credenciais novas nos campos correspondentes."
|
| 1100 |
+
|
| 1101 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1102 |
+
msgstr "Certifique-se <a href=\"%s\"> de ter tudo o que é necessário para ir para produção</a> e siga recebendo o dinheiro das suas vendas com o Mercado Pago."
|
i18n/languages/woocommerce-mercadopago.pot
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
# WordPress Blank Pot
|
| 2 |
# Copyright (C) 2014 ...
|
| 3 |
# This file is distributed under the GNU General Public License v2 or later.
|
|
|
|
| 4 |
msgid ""
|
| 5 |
msgstr ""
|
| 6 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
| 7 |
-
"POT-Creation-Date:
|
| 8 |
"PO-Revision-Date: \n"
|
| 9 |
"Language-Team: Product Development <translations@example.com>\n"
|
| 10 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
|
@@ -14,10 +15,9 @@ msgstr ""
|
|
| 14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 15 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 17 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;"
|
| 18 |
-
"_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
-
"X-Generator: Poedit
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_MX\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
|
@@ -58,7 +58,7 @@ msgstr ""
|
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr ""
|
| 60 |
|
| 61 |
-
msgid "
|
| 62 |
msgstr ""
|
| 63 |
|
| 64 |
msgid "Brazil"
|
|
@@ -88,7 +88,7 @@ msgstr ""
|
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr ""
|
| 90 |
|
| 91 |
-
msgid "You don
|
| 92 |
msgstr ""
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
|
@@ -127,9 +127,6 @@ msgstr ""
|
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr ""
|
| 129 |
|
| 130 |
-
msgid "These credentials are used in <strong>Basic Checkout</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 131 |
-
msgstr ""
|
| 132 |
-
|
| 133 |
msgid "or"
|
| 134 |
msgstr ""
|
| 135 |
|
|
@@ -139,7 +136,7 @@ msgstr ""
|
|
| 139 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
-
msgid "These credentials are used in <strong>Custom Checkout</strong> and <strong>
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
|
@@ -148,9 +145,6 @@ msgstr ""
|
|
| 148 |
msgid "Payment Gateways"
|
| 149 |
msgstr ""
|
| 150 |
|
| 151 |
-
msgid "Basic Checkout & Subscriptions"
|
| 152 |
-
msgstr ""
|
| 153 |
-
|
| 154 |
msgid "Your Credentials of Mercado Pago"
|
| 155 |
msgstr ""
|
| 156 |
|
|
@@ -232,7 +226,7 @@ msgstr ""
|
|
| 232 |
msgid "Statement Descriptor"
|
| 233 |
msgstr ""
|
| 234 |
|
| 235 |
-
msgid "The description that will be shown in your customer
|
| 236 |
msgstr ""
|
| 237 |
|
| 238 |
msgid "Store Category"
|
|
@@ -424,7 +418,7 @@ msgstr ""
|
|
| 424 |
msgid "Exclude Payment Methods"
|
| 425 |
msgstr ""
|
| 426 |
|
| 427 |
-
msgid "Select the payment methods that you <strong>don
|
| 428 |
msgstr ""
|
| 429 |
|
| 430 |
msgid "Discount/Fee by Gateway"
|
|
@@ -451,7 +445,7 @@ msgstr ""
|
|
| 451 |
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
| 452 |
msgstr ""
|
| 453 |
|
| 454 |
-
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
| 455 |
msgstr ""
|
| 456 |
|
| 457 |
msgid "Shipping service used by store"
|
|
@@ -472,7 +466,7 @@ msgstr ""
|
|
| 472 |
msgid "Payment approved."
|
| 473 |
msgstr ""
|
| 474 |
|
| 475 |
-
msgid "Customer haven
|
| 476 |
msgstr ""
|
| 477 |
|
| 478 |
msgid "Payment under review."
|
|
@@ -1065,3 +1059,27 @@ msgstr ""
|
|
| 1065 |
|
| 1066 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1067 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# WordPress Blank Pot
|
| 2 |
# Copyright (C) 2014 ...
|
| 3 |
# This file is distributed under the GNU General Public License v2 or later.
|
| 4 |
+
#, fuzzy
|
| 5 |
msgid ""
|
| 6 |
msgstr ""
|
| 7 |
"Project-Id-Version: WordPress Blank Pot v1.0.0\n"
|
| 8 |
+
"POT-Creation-Date: 2019-04-24 16:11-0300\n"
|
| 9 |
"PO-Revision-Date: \n"
|
| 10 |
"Language-Team: Product Development <translations@example.com>\n"
|
| 11 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
| 15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
| 16 |
"X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
|
| 17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
| 18 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
|
|
|
| 19 |
"X-Poedit-Basepath: ../Documents/woocommerce (MAMP)/wp-content/plugins/woo-mercado-pago-module\n"
|
| 20 |
+
"X-Generator: Poedit 2.2.1\n"
|
| 21 |
"Last-Translator: \n"
|
| 22 |
"Language: es_MX\n"
|
| 23 |
"X-Poedit-SearchPath-0: .\n"
|
| 58 |
msgid "Colombia"
|
| 59 |
msgstr ""
|
| 60 |
|
| 61 |
+
msgid "Argentina"
|
| 62 |
msgstr ""
|
| 63 |
|
| 64 |
msgid "Brazil"
|
| 88 |
msgid "WooCommerce is installed and enabled."
|
| 89 |
msgstr ""
|
| 90 |
|
| 91 |
+
msgid "You don't have WooCommerce installed and enabled."
|
| 92 |
msgstr ""
|
| 93 |
|
| 94 |
msgid "Your PHP version is OK."
|
| 127 |
msgid "Define which type of products your store sells."
|
| 128 |
msgstr ""
|
| 129 |
|
|
|
|
|
|
|
|
|
|
| 130 |
msgid "or"
|
| 131 |
msgstr ""
|
| 132 |
|
| 136 |
msgid "Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!"
|
| 137 |
msgstr ""
|
| 138 |
|
| 139 |
+
msgid "These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
msgid "This module enables WooCommerce to use Mercado Pago as payment method for purchases made in your virtual store."
|
| 145 |
msgid "Payment Gateways"
|
| 146 |
msgstr ""
|
| 147 |
|
|
|
|
|
|
|
|
|
|
| 148 |
msgid "Your Credentials of Mercado Pago"
|
| 149 |
msgstr ""
|
| 150 |
|
| 226 |
msgid "Statement Descriptor"
|
| 227 |
msgstr ""
|
| 228 |
|
| 229 |
+
msgid "The description that will be shown in your customer's invoice."
|
| 230 |
msgstr ""
|
| 231 |
|
| 232 |
msgid "Store Category"
|
| 418 |
msgid "Exclude Payment Methods"
|
| 419 |
msgstr ""
|
| 420 |
|
| 421 |
+
msgid "Select the payment methods that you <strong>don't</strong> want to receive with Mercado Pago."
|
| 422 |
msgstr ""
|
| 423 |
|
| 424 |
msgid "Discount/Fee by Gateway"
|
| 445 |
msgid "Thank you for your order. Proceed with your payment completing the following information."
|
| 446 |
msgstr ""
|
| 447 |
|
| 448 |
+
msgid "An error occurred when proccessing your payment. Please try again or contact us for assistence."
|
| 449 |
msgstr ""
|
| 450 |
|
| 451 |
msgid "Shipping service used by store"
|
| 466 |
msgid "Payment approved."
|
| 467 |
msgstr ""
|
| 468 |
|
| 469 |
+
msgid "Customer haven't paid yet."
|
| 470 |
msgstr ""
|
| 471 |
|
| 472 |
msgid "Payment under review."
|
| 1059 |
|
| 1060 |
msgid "Inform the URL of your banner image. Let blank to use Mercado Pago default."
|
| 1061 |
msgstr ""
|
| 1062 |
+
|
| 1063 |
+
msgid "Necesitamos que hagas algo más."
|
| 1064 |
+
msgstr ""
|
| 1065 |
+
|
| 1066 |
+
msgid "A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>."
|
| 1067 |
+
msgstr ""
|
| 1068 |
+
|
| 1069 |
+
msgid "<a href=\"%s\">Actualiza tus credenciales</a> para seguir operando con Mercado Pago."
|
| 1070 |
+
msgstr ""
|
| 1071 |
+
|
| 1072 |
+
msgid "Te mostramos cómo: "
|
| 1073 |
+
msgstr ""
|
| 1074 |
+
|
| 1075 |
+
msgid "Accede a tus credenciales de Mercado Pago: "
|
| 1076 |
+
msgstr ""
|
| 1077 |
+
|
| 1078 |
+
msgid "<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer."
|
| 1079 |
+
msgstr ""
|
| 1080 |
+
|
| 1081 |
+
msgid "Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo."
|
| 1082 |
+
msgstr ""
|
| 1083 |
+
|
| 1084 |
+
msgid "Asegúrate de <a href=\"%s\"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago."
|
| 1085 |
+
msgstr ""
|
includes/WC_WooMercadoPago_SubscriptionGateway.php
CHANGED
|
@@ -209,7 +209,7 @@ class WC_WooMercadoPago_SubscriptionGateway extends WC_Payment_Gateway {
|
|
| 209 |
'<a href="https://www.mercadopago.com.ar/ipn-notifications" target="_blank">%s</a>, ' .
|
| 210 |
'<a href="https://www.mercadopago.com.br/ipn-notifications" target="_blank">%s</a> %s ' .
|
| 211 |
'<a href="https://www.mercadopago.com.mx/ipn-notifications" target="_blank">%s</a>',
|
| 212 |
-
__( '
|
| 213 |
__( 'Brazil', 'woocommerce-mercadopago' ),
|
| 214 |
__( 'or', 'woocommerce-mercadopago' ),
|
| 215 |
__( 'Mexico', 'woocommerce-mercadopago' )
|
| 209 |
'<a href="https://www.mercadopago.com.ar/ipn-notifications" target="_blank">%s</a>, ' .
|
| 210 |
'<a href="https://www.mercadopago.com.br/ipn-notifications" target="_blank">%s</a> %s ' .
|
| 211 |
'<a href="https://www.mercadopago.com.mx/ipn-notifications" target="_blank">%s</a>',
|
| 212 |
+
__( 'Argentina', 'woocommerce-mercadopago' ),
|
| 213 |
__( 'Brazil', 'woocommerce-mercadopago' ),
|
| 214 |
__( 'or', 'woocommerce-mercadopago' ),
|
| 215 |
__( 'Mexico', 'woocommerce-mercadopago' )
|
includes/sdk/lib/mercadopago.php
CHANGED
|
@@ -12,7 +12,7 @@ $GLOBALS['LIB_LOCATION'] = dirname( __FILE__ );
|
|
| 12 |
|
| 13 |
class MP {
|
| 14 |
|
| 15 |
-
private $version = '3.1.
|
| 16 |
private $client_id;
|
| 17 |
private $client_secret;
|
| 18 |
private $ll_access_token;
|
| 12 |
|
| 13 |
class MP {
|
| 14 |
|
| 15 |
+
private $version = '3.1.1';
|
| 16 |
private $client_id;
|
| 17 |
private $client_secret;
|
| 18 |
private $ll_access_token;
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce
|
|
| 4 |
Requires at least: 4.9.7
|
| 5 |
Tested up to: 4.9.7
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 3.1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -215,12 +215,24 @@ Features: LatAm Basic Checkout support. Great for merchants who want to get goin
|
|
| 215 |
|
| 216 |
== Changelog ==
|
| 217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
= v3.1.0 (17/04/2019) =
|
| 219 |
-
*
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
|
|
|
|
|
|
| 224 |
= v3.0.17 (07/08/2018) =
|
| 225 |
* Feature All
|
| 226 |
- Adding X Product ID
|
| 4 |
Requires at least: 4.9.7
|
| 5 |
Tested up to: 4.9.7
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 3.1.1
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 215 |
|
| 216 |
== Changelog ==
|
| 217 |
|
| 218 |
+
= v3.1.1 (03/05/2019) =
|
| 219 |
+
* ES:
|
| 220 |
+
- Añadido mensaje de alerta en todas las paginas de ADMIN para configurar las credenciales access_token y public_key, ya que las credenciales client_id y client_secret no se utilizará más. El Checkout básico seguirá funcionando mediante la configuración de estas nuevas credenciales.
|
| 221 |
+
- Añadimos pequeñas mejoras de traducción.
|
| 222 |
+
- Añadimos mensaje de error cuando se produce algún error en la API en el momento de validar las credenciales.
|
| 223 |
+
* PT:
|
| 224 |
+
- Adicionado mensagem de alerta em todas as paginas do ADMIN para configuração das credenciais access_token e public_key, pois as credenciais client_id e client_secret não serão mais utilizadas. O Checkout básico seguirá funcionando mediante a configuração dessas novas credenciais.
|
| 225 |
+
- Adicionamos pequenas melhorias de tradução.
|
| 226 |
+
- Adicionamos mensagem de erro quando ocorre algum erro na API no momento de validar as credenciais.
|
| 227 |
+
|
| 228 |
= v3.1.0 (17/04/2019) =
|
| 229 |
+
* ES:
|
| 230 |
+
- No te pedimos más las credenciales de client_id y client_secret. Esto afectará el funcionamiento básico del checkout. ES necesario la configuración de access_token y public_key, en la configuración del módulo tiene el link para obtener las credenciales.
|
| 231 |
+
- Se realizaron mejoras de performance, removiendo requests innecesarias y agregando limitaciones de scope para algunas funcionalidades.
|
| 232 |
+
* PT:
|
| 233 |
+
- Não estamos mais utilizando as credenciais client_id e client_secret. Isso afetará o funcionamento do checkout básico. Será necessário a configuração do access_token e public_key, nas configurações do módulo possui o link para obter as credenciais.
|
| 234 |
+
- Foram realizado melhorias de Performance, removendo requisições desnecessarios e adicionando limitações de scope para algumas funcionalidades.
|
| 235 |
+
|
| 236 |
= v3.0.17 (07/08/2018) =
|
| 237 |
* Feature All
|
| 238 |
- Adding X Product ID
|
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.1.
|
| 7 |
* Author: Mercado Pago
|
| 8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
| 9 |
* Text Domain: woocommerce-mercadopago
|
|
@@ -18,7 +18,7 @@
|
|
| 18 |
|
| 19 |
// Exit if accessed directly.
|
| 20 |
if ( ! defined( 'ABSPATH' ) ) {
|
| 21 |
-
|
| 22 |
}
|
| 23 |
|
| 24 |
/**
|
|
@@ -29,7 +29,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 29 |
* @since 3.0.1
|
| 30 |
*/
|
| 31 |
function wc_mercado_pago_load_plugin_textdomain() {
|
| 32 |
-
|
| 33 |
}
|
| 34 |
|
| 35 |
add_action( 'init', 'wc_mercado_pago_load_plugin_textdomain' );
|
|
@@ -40,13 +40,13 @@ add_action( 'init', 'wc_mercado_pago_load_plugin_textdomain' );
|
|
| 40 |
* @since 3.0.1
|
| 41 |
*/
|
| 42 |
function wc_mercado_pago_unsupported_php_version_notice() {
|
| 43 |
-
|
| 44 |
}
|
| 45 |
|
| 46 |
// Check for PHP version and throw notice.
|
| 47 |
if ( version_compare( PHP_VERSION, '5.6', '<=' ) ) {
|
| 48 |
-
|
| 49 |
-
|
| 50 |
}
|
| 51 |
|
| 52 |
/**
|
|
@@ -55,24 +55,68 @@ if ( version_compare( PHP_VERSION, '5.6', '<=' ) ) {
|
|
| 55 |
* @since 3.0.7
|
| 56 |
*/
|
| 57 |
function wc_mercado_pago_notify_deprecated_presence() {
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
}
|
| 62 |
|
| 63 |
// Check if previously versions are installed, as we can't let both operate.
|
| 64 |
if ( class_exists( 'WC_WooMercadoPago_Module' ) ) {
|
| 65 |
-
|
| 66 |
-
|
| 67 |
}
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
// Load Mercado Pago SDK
|
| 70 |
require_once dirname( __FILE__ ) . '/includes/sdk/lib/mercadopago.php';
|
| 71 |
|
| 72 |
// Load module class if it wasn't loaded yet.
|
| 73 |
if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
| 74 |
|
| 75 |
-
|
| 76 |
* Summary: WooCommerce MercadoPago Module main class.
|
| 77 |
* Description: Used as a kind of manager to enable/disable each Mercado Pago gateway.
|
| 78 |
* Available Public Static Functions:
|
|
@@ -100,599 +144,605 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
|
| 100 |
* - is_product_dimensions_valid( $all_product_data )
|
| 101 |
* @since 3.0.0
|
| 102 |
*/
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
* Admin includes.
|
| 231 |
*/
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
|
| 236 |
-
|
| 237 |
* Summary: As well as defining your class, you need to also tell WooCommerce (WC) that
|
| 238 |
* it exists. Do this by filtering woocommerce_payment_gateways.
|
| 239 |
* Description: As well as defining your class, you need to also tell WooCommerce (WC) that
|
| 240 |
* it exists. Do this by filtering woocommerce_payment_gateways.
|
| 241 |
* @return an array containing the payment methods.
|
| 242 |
*/
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
* Summary: Places a warning error to notify user that WooCommerce is missing.
|
| 290 |
* Description: Places a warning error to notify user that WooCommerce is missing.
|
| 291 |
*/
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
* Summary: Check if we have valid credentials for v1.
|
| 326 |
* Description: Check if we have valid credentials.
|
| 327 |
* @return boolean true/false depending on the validation result.
|
| 328 |
*/
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
$payment['id'] != 'pse') {
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 447 |
* Summary: Get the rate of conversion between two currencies.
|
| 448 |
* Description: The currencies are the one used in WooCommerce and the one used in $site_id.
|
| 449 |
* @return a float that is the rate of conversion.
|
| 450 |
*/
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
|
| 473 |
-
|
| 474 |
* Summary: Builds up the array for the mp_install table, with info related with checkout.
|
| 475 |
* Description: Builds up the array for the mp_install table, with info related with checkout.
|
| 476 |
* @return an array with the module informations.
|
| 477 |
*/
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
* Summary: Get store categories from Mercado Pago.
|
| 492 |
* Description: Trigger API to get available categories and proper description.
|
| 493 |
* @return an array with found categories and a description for its selector title.
|
| 494 |
*/
|
| 495 |
-
|
| 496 |
-
// $store_categories_id = array();
|
| 497 |
-
// $store_categories_description = array();
|
| 498 |
-
// // Get Mercado Pago store categories.
|
| 499 |
-
// $email = ( wp_get_current_user()->ID != 0 ) ? wp_get_current_user()->user_email : null;
|
| 500 |
-
// MPRestClient::set_email( $email );
|
| 501 |
-
// $categories = MPRestClient::get(
|
| 502 |
-
// array( 'uri' => '/item_categories' ),
|
| 503 |
-
// WC_Woo_Mercado_Pago_Module::get_module_version()
|
| 504 |
-
// );
|
| 505 |
-
// foreach ( $categories['response'] as $category ) {
|
| 506 |
-
// array_push(
|
| 507 |
-
// $store_categories_id, str_replace( '_', ' ', $category['id'] )
|
| 508 |
-
// );
|
| 509 |
-
// array_push(
|
| 510 |
-
// $store_categories_description, str_replace( '_', ' ', $category['description'] )
|
| 511 |
-
// );
|
| 512 |
-
// }
|
| 513 |
-
// return array(
|
| 514 |
-
// 'store_categories_id' => $store_categories_id,
|
| 515 |
-
// 'store_categories_description' => $store_categories_description
|
| 516 |
-
// );
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
* Summary: Get information about the used Mercado Pago account based in its site.
|
| 525 |
* Description: Get information about the used Mercado Pago account based in its site.
|
| 526 |
* @return an array with the information.
|
| 527 |
*/
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
* Summary: Find template's folder.
|
| 544 |
* Description: Find template's folder.
|
| 545 |
* @return a string that identifies the path.
|
| 546 |
*/
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
|
| 551 |
-
|
| 552 |
* Summary: Get module's version.
|
| 553 |
* Description: Get module's version.
|
| 554 |
* @return a string with the given version.
|
| 555 |
*/
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
|
| 560 |
-
|
| 561 |
* Summary: Get client id from access token.
|
| 562 |
* Description: Get client id from access token.
|
| 563 |
* @return the client id.
|
| 564 |
*/
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
}
|
| 585 |
-
}
|
| 586 |
-
return $is_subscription;
|
| 587 |
-
}
|
| 588 |
-
|
| 589 |
-
// Return boolean indicating if currency is supported.
|
| 590 |
-
public static function is_supported_currency( $site_id ) {
|
| 591 |
-
return get_woocommerce_currency() == WC_Woo_Mercado_Pago_Module::$country_configs[$site_id]['currency'];
|
| 592 |
-
}
|
| 593 |
-
|
| 594 |
-
public static function build_currency_conversion_err_msg( $currency ) {
|
| 595 |
-
return '<img width="14" height="14" src="' .
|
| 596 |
-
plugins_url( 'assets/images/error.png', __FILE__ ) . '"> ' .
|
| 597 |
-
__( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago' ) .
|
| 598 |
-
' ' . get_woocommerce_currency() . ' ' .
|
| 599 |
-
__( 'to', 'woocommerce-mercadopago' ) . ' ' . $currency . '. ' .
|
| 600 |
-
__( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago' );
|
| 601 |
-
}
|
| 602 |
-
|
| 603 |
-
public static function build_currency_not_converted_msg( $currency, $country_name ) {
|
| 604 |
-
return '<img width="14" height="14" src="' .
|
| 605 |
-
plugins_url( 'assets/images/warning.png', __FILE__ ) . '"> ' .
|
| 606 |
-
__( 'ATTENTION: The currency', 'woocommerce-mercadopago' ) .
|
| 607 |
-
' ' . get_woocommerce_currency() . ' ' .
|
| 608 |
-
__( 'defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be', 'woocommerce-mercadopago' ) .
|
| 609 |
-
' ' . $currency . ' (' . $country_name . '). ' .
|
| 610 |
-
__( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago' );
|
| 611 |
-
}
|
| 612 |
-
|
| 613 |
-
public static function build_currency_converted_msg( $currency ) {
|
| 614 |
-
return '<img width="14" height="14" src="' .
|
| 615 |
-
plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ' .
|
| 616 |
-
__( 'CURRENCY CONVERTED: Your store is converting currency from', 'woocommerce-mercadopago' ) .
|
| 617 |
-
' ' . get_woocommerce_currency() . ' ' .
|
| 618 |
-
__( 'to', 'woocommerce-mercadopago' ) . ' ' . $currency;
|
| 619 |
-
}
|
| 620 |
-
|
| 621 |
-
public static function get_country_name( $site_id ) {
|
| 622 |
-
switch ( $site_id ) {
|
| 623 |
-
case 'MCO':
|
| 624 |
-
return __( 'Colombia', 'woocommerce-mercadopago' );
|
| 625 |
-
case 'MLA':
|
| 626 |
-
return __( 'Argentine', 'woocommerce-mercadopago' );
|
| 627 |
-
case 'MLB':
|
| 628 |
-
return __( 'Brazil', 'woocommerce-mercadopago' );
|
| 629 |
-
case 'MLC':
|
| 630 |
-
return __( 'Chile', 'woocommerce-mercadopago' );
|
| 631 |
-
case 'MLM':
|
| 632 |
-
return __( 'Mexico', 'woocommerce-mercadopago' );
|
| 633 |
-
case 'MLU':
|
| 634 |
-
return __( 'Uruguay', 'woocommerce-mercadopago' );
|
| 635 |
-
case 'MLV':
|
| 636 |
-
return __( 'Venezuela', 'woocommerce-mercadopago' );
|
| 637 |
-
case 'MPE':
|
| 638 |
-
return __( 'Peru', 'woocommerce-mercadopago' );
|
| 639 |
-
}
|
| 640 |
-
return '';
|
| 641 |
-
}
|
| 642 |
-
|
| 643 |
-
// Build the string representing the path to the log file.
|
| 644 |
-
public static function build_log_path_string( $gateway_id, $gateway_name ) {
|
| 645 |
-
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
| 646 |
-
esc_attr( $gateway_id ) . '-' . sanitize_file_name( wp_hash( $gateway_id ) ) . '.log' ) ) . '">' .
|
| 647 |
-
$gateway_name . '</a>';
|
| 648 |
-
}
|
| 649 |
-
|
| 650 |
-
public static function get_wc_status_for_mp_status( $mp_status ) {
|
| 651 |
-
$defaults = array(
|
| 652 |
-
'pending' => 'pending',
|
| 653 |
-
'approved' => 'processing',
|
| 654 |
-
'inprocess' => 'on_hold',
|
| 655 |
-
'inmediation' => 'on_hold',
|
| 656 |
-
'rejected' => 'failed',
|
| 657 |
-
'cancelled' => 'cancelled',
|
| 658 |
-
'refunded' => 'refunded',
|
| 659 |
-
'chargedback' => 'refunded'
|
| 660 |
-
);
|
| 661 |
-
$status = get_option( '_mp_order_status_' . $mp_status . '_map', $defaults[$mp_status] );
|
| 662 |
-
return str_replace( '_', '-', $status );
|
| 663 |
-
}
|
| 664 |
-
|
| 665 |
-
public static function get_map( $selector_id ) {
|
| 666 |
-
$html = '';
|
| 667 |
-
$arr = explode( '_', $selector_id );
|
| 668 |
-
$defaults = array(
|
| 669 |
-
'pending' => 'pending',
|
| 670 |
-
'approved' => 'processing',
|
| 671 |
-
'inprocess' => 'on_hold',
|
| 672 |
-
'inmediation' => 'on_hold',
|
| 673 |
-
'rejected' => 'failed',
|
| 674 |
-
'cancelled' => 'cancelled',
|
| 675 |
-
'refunded' => 'refunded',
|
| 676 |
-
'chargedback' => 'refunded'
|
| 677 |
-
);
|
| 678 |
-
$selection = get_option( '_mp_' . $selector_id, $defaults[$arr[2]] );
|
| 679 |
-
|
| 680 |
-
foreach ( wc_get_order_statuses() as $slug => $status ) {
|
| 681 |
-
$slug = str_replace( array( 'wc-', '-' ), array( '', '_' ), $slug );
|
| 682 |
-
$html .= sprintf(
|
| 683 |
-
'<option value="%s"%s>%s %s</option>',
|
| 684 |
-
$slug,
|
| 685 |
-
selected( $selection, $slug, false ),
|
| 686 |
-
__( 'Update WooCommerce order to ', 'woocommerce-mercadopago' ),
|
| 687 |
-
$status
|
| 688 |
-
);
|
| 689 |
}
|
| 690 |
-
|
| 691 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 692 |
}
|
| 693 |
|
| 694 |
-
|
| 695 |
-
|
|
|
|
|
|
|
|
|
|
| 696 |
( function() {
|
| 697 |
var MPSubscription = {}
|
| 698 |
MPSubscription.callSubscriptionCancel = function () {
|
|
@@ -809,305 +859,305 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
|
| 809 |
this.MPSubscription = MPSubscription;
|
| 810 |
} ).call();
|
| 811 |
</script>';
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
|
| 845 |
* Check if product dimensions are well defined
|
| 846 |
*/
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
}
|
| 859 |
-
if ( ! is_numeric( $dimensions['height'] ) ) {
|
| 860 |
-
return false;
|
| 861 |
-
}
|
| 862 |
-
if ( ! is_numeric( $dimensions['width'] ) ) {
|
| 863 |
-
return false;
|
| 864 |
-
}
|
| 865 |
-
if ( ! is_numeric( $dimensions['length'] ) ) {
|
| 866 |
-
return false;
|
| 867 |
-
}
|
| 868 |
-
}
|
| 869 |
-
}
|
| 870 |
-
return true;
|
| 871 |
-
}
|
| 872 |
-
|
| 873 |
-
}
|
| 874 |
-
|
| 875 |
-
//=====
|
| 876 |
-
|
| 877 |
-
// Create Mercado Pago option menu.
|
| 878 |
-
add_action( 'admin_menu', function() {
|
| 879 |
-
add_options_page(
|
| 880 |
-
'Mercado Pago Options', 'Mercado Pago', 'manage_options', 'mercado-pago-settings',
|
| 881 |
-
function() {
|
| 882 |
-
|
| 883 |
-
// Verify permissions.
|
| 884 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
| 885 |
-
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
| 886 |
-
}
|
| 887 |
-
|
| 888 |
-
// Check for submits.
|
| 889 |
-
if ( isset( $_POST['submit'] ) ) {
|
| 890 |
-
update_option( '_mp_public_key', isset( $_POST['public_key'] ) ? $_POST['public_key'] : '', true );
|
| 891 |
-
update_option( '_mp_access_token', isset( $_POST['access_token'] ) ? $_POST['access_token'] : '', true );
|
| 892 |
-
update_option( '_mp_success_url', isset( $_POST['success_url'] ) ? $_POST['success_url'] : '', true );
|
| 893 |
-
update_option( '_mp_fail_url', isset( $_POST['fail_url'] ) ? $_POST['fail_url'] : '', true );
|
| 894 |
-
update_option( '_mp_pending_url', isset( $_POST['pending_url'] ) ? $_POST['pending_url'] : '', true );
|
| 895 |
-
update_option( '_mp_order_status_pending_map', isset( $_POST['order_status_pending_map'] ) ? $_POST['order_status_pending_map'] : '', true );
|
| 896 |
-
update_option( '_mp_order_status_approved_map', isset( $_POST['order_status_approved_map'] ) ? $_POST['order_status_approved_map'] : '', true );
|
| 897 |
-
update_option( '_mp_order_status_inprocess_map', isset( $_POST['order_status_inprocess_map'] ) ? $_POST['order_status_inprocess_map'] : '', true );
|
| 898 |
-
update_option( '_mp_order_status_inmediation_map', isset( $_POST['order_status_inmediation_map'] ) ? $_POST['order_status_inmediation_map'] : '', true );
|
| 899 |
-
update_option( '_mp_order_status_rejected_map', isset( $_POST['order_status_rejected_map'] ) ? $_POST['order_status_rejected_map'] : '', true );
|
| 900 |
-
update_option( '_mp_order_status_cancelled_map', isset( $_POST['order_status_cancelled_map'] ) ? $_POST['order_status_cancelled_map'] : '', true );
|
| 901 |
-
update_option( '_mp_order_status_refunded_map', isset( $_POST['order_status_refunded_map'] ) ? $_POST['order_status_refunded_map'] : '', true );
|
| 902 |
-
update_option( '_mp_order_status_chargedback_map', isset( $_POST['order_status_chargedback_map'] ) ? $_POST['order_status_chargedback_map'] : '', true );
|
| 903 |
-
update_option( '_mp_statement_descriptor', isset( $_POST['statement_descriptor'] ) ? $_POST['statement_descriptor'] : '', true );
|
| 904 |
-
if ( isset( $_POST['category_id'] ) ) {
|
| 905 |
-
update_option( '_mp_category_id', $_POST['category_id'], true );
|
| 906 |
-
$categories_data = WC_Woo_Mercado_Pago_Module::$categories;
|
| 907 |
-
update_option( '_mp_category_name', $categories_data['store_categories_id'][$_POST['category_id']], true );
|
| 908 |
-
} else {
|
| 909 |
-
update_option( '_mp_category_id', '', true );
|
| 910 |
-
update_option( '_mp_category_name', 'others', true );
|
| 911 |
-
}
|
| 912 |
-
update_option( '_mp_store_identificator', isset( $_POST['store_identificator'] ) ? $_POST['store_identificator'] : '', true );
|
| 913 |
-
update_option( '_mp_custom_banner', isset( $_POST['custom_banner'] ) ? $_POST['custom_banner'] : '', true );
|
| 914 |
-
update_option( '_mp_custom_domain', isset( $_POST['custom_domain'] ) ? $_POST['custom_domain'] : '', true );
|
| 915 |
-
update_option( '_mp_currency_conversion_v0', isset( $_POST['currency_conversion_v0'] ) ? $_POST['currency_conversion_v0'] : '', true );
|
| 916 |
-
update_option( '_mp_currency_conversion_v1', isset( $_POST['currency_conversion_v1'] ) ? $_POST['currency_conversion_v1'] : '', true );
|
| 917 |
-
update_option( '_mp_debug_mode', isset( $_POST['debug_mode'] ) ? $_POST['debug_mode'] : '', true );
|
| 918 |
-
update_option( '_mp_sandbox_mode', isset( $_POST['sandbox_mode'] ) ? $_POST['sandbox_mode'] : '', true );
|
| 919 |
-
}
|
| 920 |
-
|
| 921 |
-
// Mercado Pago logo.
|
| 922 |
-
$mp_logo = '<img width="185" height="48" src="' . plugins_url( 'assets/images/mplogo.png', __FILE__ ) . '">';
|
| 923 |
-
// Check WooCommerce.
|
| 924 |
-
$has_woocommerce_message = class_exists( 'WC_Payment_Gateway' ) ?
|
| 925 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ' .
|
| 926 |
-
__( 'WooCommerce is installed and enabled.', 'woocommerce-mercadopago' ) :
|
| 927 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/error.png', __FILE__ ) . '"> ' .
|
| 928 |
-
__( 'You don\'t have WooCommerce installed and enabled.', 'woocommerce-mercadopago' );
|
| 929 |
-
// Creating PHP version message.
|
| 930 |
-
|
| 931 |
-
// Check for PHP version and throw notice.
|
| 932 |
-
$min_php_message = '<img width="14" height="14" src="' . plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ' .
|
| 933 |
-
__( 'Your PHP version is OK.', 'woocommerce-mercadopago' );
|
| 934 |
-
|
| 935 |
-
if ( version_compare( PHP_VERSION, WC_Woo_Mercado_Pago_Module::MIN_PHP, '<=' ) ) {
|
| 936 |
-
$min_php_message = '<img width="14" height="14" src="' . plugins_url( 'assets/images/warning.png', __FILE__ ) . '"> ' .
|
| 937 |
-
sprintf(
|
| 938 |
-
__( 'Your PHP version do not support this module. You have %s, minimal required is %s.', 'woocommerce-mercadopago' ),
|
| 939 |
-
phpversion(), WC_Woo_Mercado_Pago_Module::MIN_PHP
|
| 940 |
-
);
|
| 941 |
-
}
|
| 942 |
-
|
| 943 |
-
// Check cURL.
|
| 944 |
-
$curl_message = in_array( 'curl', get_loaded_extensions() ) ?
|
| 945 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ' .
|
| 946 |
-
__( 'cURL is installed.', 'woocommerce-mercadopago' ) :
|
| 947 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/error.png', __FILE__ ) . '"> ' .
|
| 948 |
-
__( 'cURL is not installed.', 'woocommerce-mercadopago' );
|
| 949 |
-
// Check SSL.
|
| 950 |
-
$is_ssl_message = empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ?
|
| 951 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/warning.png', __FILE__ ) . '"> ' .
|
| 952 |
-
__( 'SSL is missing in your site.', 'woocommerce-mercadopago' ) :
|
| 953 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ' .
|
| 954 |
-
__( 'Your site has SSL enabled.', 'woocommerce-mercadopago' );
|
| 955 |
-
// Check porduct dimensions.
|
| 956 |
-
global $wpdb;
|
| 957 |
-
$all_product_data = $wpdb->get_results(
|
| 958 |
-
'SELECT ID FROM `' . $wpdb->prefix . 'posts` where post_type="product" and post_status = "publish"'
|
| 959 |
-
);
|
| 960 |
-
$is_all_products_with_valid_dimensions = WC_Woo_Mercado_Pago_Module::is_product_dimensions_valid( $all_product_data ) ?
|
| 961 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ' .
|
| 962 |
-
__( 'Your products have theirs dimensions well defined.', 'woocommerce-mercadopago' ) :
|
| 963 |
-
'<img width="14" height="14" src="' . plugins_url( 'assets/images/warning.png', __FILE__ ) . '"> ' .
|
| 964 |
-
__( 'You have product(s) with invalid dimensions.', 'woocommerce-mercadopago' );
|
| 965 |
-
// Create links for internal redirections to each payment solution.
|
| 966 |
-
$gateway_buttons = '<strong>' .
|
| 967 |
-
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 968 |
-
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-basic' ) ) .
|
| 969 |
-
'">' . __( 'Basic Checkout', 'woocommerce-mercadopago' ) . '</a>' . ' ' .
|
| 970 |
-
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 971 |
-
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-custom' ) ) .
|
| 972 |
-
'">' . __( 'Custom Checkout', 'woocommerce-mercadopago' ) . '</a>' . ' ' .
|
| 973 |
-
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 974 |
-
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-ticket' ) ) .
|
| 975 |
-
'">' . __( 'Ticket', 'woocommerce-mercadopago' ) . '</a>' . ' ' .
|
| 976 |
-
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 977 |
-
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-subscription' ) ) .
|
| 978 |
-
'">' . __( 'Subscription', 'woocommerce-mercadopago' ) . '</a>';
|
| 979 |
-
if ( get_option('_site_id_v1', '') == 'MCO' ) {
|
| 980 |
-
$gateway_buttons .= ' <a class="button button-primary" href="' . esc_url( admin_url(
|
| 981 |
-
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-pse' ) ) .
|
| 982 |
-
'">' . __( 'PSE', 'woocommerce-mercadopago' ) . '</a>';
|
| 983 |
}
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
|
| 993 |
-
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
-
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
-
|
| 1015 |
-
|
| 1016 |
-
|
| 1017 |
-
|
| 1018 |
-
|
| 1019 |
-
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
|
| 1031 |
-
|
| 1032 |
-
|
| 1033 |
-
|
| 1034 |
-
|
| 1035 |
-
|
| 1036 |
-
|
| 1037 |
-
|
| 1038 |
-
|
| 1039 |
-
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
| 1057 |
-
|
| 1058 |
-
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
|
| 1062 |
-
|
| 1063 |
-
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 1069 |
-
|
| 1070 |
-
|
| 1071 |
-
|
| 1072 |
-
|
| 1073 |
-
|
| 1074 |
-
|
| 1075 |
-
|
| 1076 |
-
|
| 1077 |
-
|
| 1078 |
-
|
| 1079 |
-
|
| 1080 |
-
|
| 1081 |
-
|
| 1082 |
-
|
| 1083 |
-
|
| 1084 |
-
|
| 1085 |
-
|
| 1086 |
-
|
| 1087 |
-
|
| 1088 |
-
|
| 1089 |
-
|
| 1090 |
-
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
| 1094 |
-
|
| 1095 |
-
|
| 1096 |
-
|
| 1097 |
-
|
| 1098 |
-
|
| 1099 |
-
|
| 1100 |
-
|
| 1101 |
-
|
| 1102 |
-
|
| 1103 |
-
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
-
|
| 1108 |
-
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1112 |
|
| 1113 |
endif;
|
| 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.1.1
|
| 7 |
* Author: Mercado Pago
|
| 8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
| 9 |
* Text Domain: woocommerce-mercadopago
|
| 18 |
|
| 19 |
// Exit if accessed directly.
|
| 20 |
if ( ! defined( 'ABSPATH' ) ) {
|
| 21 |
+
exit;
|
| 22 |
}
|
| 23 |
|
| 24 |
/**
|
| 29 |
* @since 3.0.1
|
| 30 |
*/
|
| 31 |
function wc_mercado_pago_load_plugin_textdomain() {
|
| 32 |
+
load_plugin_textdomain( 'woocommerce-mercadopago', false, dirname( plugin_basename( __FILE__ ) ) . '/i18n/languages/' );
|
| 33 |
}
|
| 34 |
|
| 35 |
add_action( 'init', 'wc_mercado_pago_load_plugin_textdomain' );
|
| 40 |
* @since 3.0.1
|
| 41 |
*/
|
| 42 |
function wc_mercado_pago_unsupported_php_version_notice() {
|
| 43 |
+
echo '<div class="error"><p>' . esc_html__( 'WooCommerce Mercado Pago requires PHP version 5.6 or later. Please update your PHP version.', 'woocommerce-mercadopago' ) . '</p></div>';
|
| 44 |
}
|
| 45 |
|
| 46 |
// Check for PHP version and throw notice.
|
| 47 |
if ( version_compare( PHP_VERSION, '5.6', '<=' ) ) {
|
| 48 |
+
add_action( 'admin_notices', 'wc_mercado_pago_unsupported_php_version_notice' );
|
| 49 |
+
return;
|
| 50 |
}
|
| 51 |
|
| 52 |
/**
|
| 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 |
+
/**
|
| 70 |
+
* Summary: Alert message from version 3.1.0 changes in credentials
|
| 71 |
+
* Description: Display an alert message for users who from version 3.1.0 of the module will be removed from the credentials client_id and client_secret.
|
| 72 |
+
* @since 3.1.1
|
| 73 |
+
*/
|
| 74 |
+
function wc_mercado_pago_notify_changes_in_credential__error() {
|
| 75 |
+
|
| 76 |
+
$urlAdmin = esc_url( admin_url( "admin.php?page=mercado-pago-settings" ));
|
| 77 |
+
|
| 78 |
+
$linkCredencialV1 = sprintf(
|
| 79 |
+
'<a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 80 |
+
'<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 81 |
+
'<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 82 |
+
'<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 83 |
+
'<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a> %s ' .
|
| 84 |
+
'<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a>.',
|
| 85 |
+
__( 'Argentina', 'woocommerce-mercadopago'),
|
| 86 |
+
__( 'Brazil', 'woocommerce-mercadopago'),
|
| 87 |
+
__( 'Chile', 'woocommerce-mercadopago'),
|
| 88 |
+
__( 'Colombia', 'woocommerce-mercadopago'),
|
| 89 |
+
__( 'Mexico', 'woocommerce-mercadopago'),
|
| 90 |
+
__( 'or', 'woocommerce-mercadopago'),
|
| 91 |
+
__( 'Peru', 'woocommerce-mercadopago')
|
| 92 |
+
);
|
| 93 |
+
|
| 94 |
+
echo '<div class="notice notice-error is-dismissible">';
|
| 95 |
+
echo '<h3>' . __('Necesitamos que hagas algo más.', 'woocommerce-mercadopago' ) . '</h3>';
|
| 96 |
+
echo '<p>' . __('A partir de la <b>versión 3.1.0</b> no te pedimos más las credenciales de client_id y client_secret. <b>Esto afectará el funcionamiento básico del checkout</b>.', 'woocommerce-mercadopago' ) . '</p>';
|
| 97 |
+
echo '<p>' . sprintf(__('<a href="%s">Actualiza tus credenciales</a> para seguir operando con Mercado Pago.', 'woocommerce-mercadopago'), $urlAdmin) . '</p>';
|
| 98 |
+
echo '<br/><p><b>' . __('Te mostramos cómo: ', 'woocommerce-mercadopago' ) . '</b></p>';
|
| 99 |
+
echo '<p><b>1. </b> ' . __('Accede a tus credenciales de Mercado Pago: ', 'woocommerce-mercadopago' ) . $linkCredencialV1;
|
| 100 |
+
echo '<p><b>2. </b> ' . __('<b>Copia las credenciales</b> “Access_Token” y “Public_Key” para pruebas (Sandbox) o para producción, depende de lo que quieras hacer.', 'woocommerce-mercadopago' ). '</p>';
|
| 101 |
+
echo '<p><b>3. </b>' . __('Vuelve a esta configuración y pega las credenciales nuevas en los campos correspondientes que encuentras más abajo.', 'woocommerce-mercadopago' ). '</p>';
|
| 102 |
+
echo '<br/><p>' . sprintf(__('Asegúrate de <a href="%s"> tener lo necesario para ir a producción</a> y sigue recibiendo el dinero por tus ventas con Mercado Pago.', 'woocommerce-mercadopago' ), $urlAdmin) . '</p>';
|
| 103 |
+
echo '</div>';
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
// Check access_token is empty to display message
|
| 107 |
+
$access_token = get_option( '_mp_access_token', '' );
|
| 108 |
+
if(empty($access_token)){
|
| 109 |
+
add_action( 'admin_notices', 'wc_mercado_pago_notify_changes_in_credential__error' );
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
|
| 113 |
// Load Mercado Pago SDK
|
| 114 |
require_once dirname( __FILE__ ) . '/includes/sdk/lib/mercadopago.php';
|
| 115 |
|
| 116 |
// Load module class if it wasn't loaded yet.
|
| 117 |
if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
| 118 |
|
| 119 |
+
/**
|
| 120 |
* Summary: WooCommerce MercadoPago Module main class.
|
| 121 |
* Description: Used as a kind of manager to enable/disable each Mercado Pago gateway.
|
| 122 |
* Available Public Static Functions:
|
| 144 |
* - is_product_dimensions_valid( $all_product_data )
|
| 145 |
* @since 3.0.0
|
| 146 |
*/
|
| 147 |
+
class WC_Woo_Mercado_Pago_Module {
|
| 148 |
+
|
| 149 |
+
// ============================================================
|
| 150 |
+
|
| 151 |
+
// General constants.
|
| 152 |
+
const VERSION = '3.1.1';
|
| 153 |
+
const MIN_PHP = 5.6;
|
| 154 |
+
|
| 155 |
+
// Arrays to hold configurations for LatAm environment.
|
| 156 |
+
// As this array contains runtime data, we can't set it as a class constant.
|
| 157 |
+
public static $categories = array();
|
| 158 |
+
public static $country_configs = array();
|
| 159 |
+
|
| 160 |
+
// ============================================================
|
| 161 |
+
|
| 162 |
+
// A singleton design pattern to access this class in global scope.
|
| 163 |
+
protected static $instance = null;
|
| 164 |
+
public static function init_mercado_pago_class() {
|
| 165 |
+
if ( self::$instance === null ) {
|
| 166 |
+
self::$instance = new self;
|
| 167 |
+
}
|
| 168 |
+
return self::$instance;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
// Class constructor.
|
| 172 |
+
private function __construct() {
|
| 173 |
+
|
| 174 |
+
WC_Woo_Mercado_Pago_Module::$categories = WC_Woo_Mercado_Pago_Module::get_categories();
|
| 175 |
+
WC_Woo_Mercado_Pago_Module::$country_configs = array(
|
| 176 |
+
'MCO' => array(
|
| 177 |
+
'site_id' => 'MCO',
|
| 178 |
+
'sponsor_id' => 208687643,
|
| 179 |
+
'checkout_banner' => plugins_url( 'assets/images/MCO/standard_mco.jpg', __FILE__ ),
|
| 180 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MCO/credit_card.png', __FILE__ ),
|
| 181 |
+
'currency' => 'COP'
|
| 182 |
+
),
|
| 183 |
+
'MLA' => array(
|
| 184 |
+
'site_id' => 'MLA',
|
| 185 |
+
'sponsor_id' => 208682286,
|
| 186 |
+
'checkout_banner' => plugins_url( 'assets/images/MLA/standard_mla.jpg', __FILE__ ),
|
| 187 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MLA/credit_card.png', __FILE__ ),
|
| 188 |
+
'currency' => 'ARS'
|
| 189 |
+
),
|
| 190 |
+
'MLB' => array(
|
| 191 |
+
'site_id' => 'MLB',
|
| 192 |
+
'sponsor_id' => 208686191,
|
| 193 |
+
'checkout_banner' => plugins_url( 'assets/images/MLB/standard_mlb.jpg', __FILE__ ),
|
| 194 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MLB/credit_card.png', __FILE__ ),
|
| 195 |
+
'currency' => 'BRL'
|
| 196 |
+
),
|
| 197 |
+
'MLC' => array(
|
| 198 |
+
'site_id' => 'MLC',
|
| 199 |
+
'sponsor_id' => 208690789,
|
| 200 |
+
'checkout_banner' => plugins_url( 'assets/images/MLC/standard_mlc.gif', __FILE__ ),
|
| 201 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MLC/credit_card.png', __FILE__ ),
|
| 202 |
+
'currency' => 'CLP'
|
| 203 |
+
),
|
| 204 |
+
'MLM' => array(
|
| 205 |
+
'site_id' => 'MLM',
|
| 206 |
+
'sponsor_id' => 208692380,
|
| 207 |
+
'checkout_banner' => plugins_url( 'assets/images/MLM/standard_mlm.jpg', __FILE__ ),
|
| 208 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MLM/credit_card.png', __FILE__ ),
|
| 209 |
+
'currency' => 'MXN'
|
| 210 |
+
),
|
| 211 |
+
'MLU' => array(
|
| 212 |
+
'site_id' => 'MLU',
|
| 213 |
+
'sponsor_id' => 243692679,
|
| 214 |
+
'checkout_banner' => plugins_url( 'assets/images/MLU/standard_mlu.png', __FILE__ ),
|
| 215 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MLU/credit_card.png', __FILE__ ),
|
| 216 |
+
'currency' => 'UYU'
|
| 217 |
+
),
|
| 218 |
+
'MLV' => array(
|
| 219 |
+
'site_id' => 'MLV',
|
| 220 |
+
'sponsor_id' => 208692735,
|
| 221 |
+
'checkout_banner' => plugins_url( 'assets/images/MLV/standard_mlv.jpg', __FILE__ ),
|
| 222 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MLV/credit_card.png', __FILE__ ),
|
| 223 |
+
'currency' => 'VEF'
|
| 224 |
+
),
|
| 225 |
+
'MPE' => array(
|
| 226 |
+
'site_id' => 'MPE',
|
| 227 |
+
'sponsor_id' => 216998692,
|
| 228 |
+
'checkout_banner' => plugins_url( 'assets/images/MPE/standard_mpe.png', __FILE__ ),
|
| 229 |
+
'checkout_banner_custom' => plugins_url( 'assets/images/MPE/credit_card.png', __FILE__ ),
|
| 230 |
+
'currency' => 'PEN'
|
| 231 |
+
)
|
| 232 |
+
);
|
| 233 |
+
|
| 234 |
+
// First of all, verify if WooCommerce is already installed.
|
| 235 |
+
if ( class_exists( 'WC_Payment_Gateway' ) ) {
|
| 236 |
+
|
| 237 |
+
// Adds each Mercado Pago gateway as available payment method.
|
| 238 |
+
include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_BasicGateway.php';
|
| 239 |
+
include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_CustomGateway.php';
|
| 240 |
+
include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_TicketGateway.php';
|
| 241 |
+
|
| 242 |
+
//Get site_id and enable PSE only when credentials are set up and are from Colombia
|
| 243 |
+
$_site_id_v1 = get_option( '_site_id_v1', '' );
|
| 244 |
+
if ( !empty( $_site_id_v1 ) && $_site_id_v1=='MCO' ) {
|
| 245 |
+
include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_PSEGateway.php';
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
include_once dirname( __FILE__ ) . '/includes/WC_WooMercadoPago_SubscriptionGateway.php';
|
| 249 |
+
include_once dirname( __FILE__ ) . '/includes/class-wc-product-mp_recurrent.php';
|
| 250 |
+
add_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateway' ) );
|
| 251 |
+
|
| 252 |
+
// Shipping.
|
| 253 |
+
include_once dirname( __FILE__ ) . '/includes/shipment/abstract-wc-mercadoenvios-shipping.php';
|
| 254 |
+
include_once dirname( __FILE__ ) . '/includes/shipment/class-wc-mercadoenvios-shipping-normal.php';
|
| 255 |
+
include_once dirname( __FILE__ ) . '/includes/shipment/class-wc-mercadoenvios-shipping-express.php';
|
| 256 |
+
include_once dirname( __FILE__ ) . '/includes/shipment/class-wc-mercadoenvios-package.php';
|
| 257 |
+
add_filter( 'woocommerce_shipping_methods', array( $this, 'add_shipping' ) );
|
| 258 |
+
add_filter( 'woocommerce_available_payment_gateways', array( $this, 'filter_payment_method_by_shipping' ) );
|
| 259 |
+
|
| 260 |
+
// This adds custom links in the plugin page.
|
| 261 |
+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'woomercadopago_settings_link' ) );
|
| 262 |
+
|
| 263 |
+
} else {
|
| 264 |
+
add_action( 'admin_notices', array( $this, 'notify_woocommerce_miss' ) );
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
if ( is_admin() ) {
|
| 268 |
+
$this->admin_includes();
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
/**
|
| 274 |
* Admin includes.
|
| 275 |
*/
|
| 276 |
+
private function admin_includes() {
|
| 277 |
+
include_once dirname( __FILE__ ) . '/includes/admin/class-wc-mercadoenvios-admin-orders.php';
|
| 278 |
+
}
|
| 279 |
|
| 280 |
+
/**
|
| 281 |
* Summary: As well as defining your class, you need to also tell WooCommerce (WC) that
|
| 282 |
* it exists. Do this by filtering woocommerce_payment_gateways.
|
| 283 |
* Description: As well as defining your class, you need to also tell WooCommerce (WC) that
|
| 284 |
* it exists. Do this by filtering woocommerce_payment_gateways.
|
| 285 |
* @return an array containing the payment methods.
|
| 286 |
*/
|
| 287 |
+
public function add_gateway( $methods ) {
|
| 288 |
+
$methods[] = 'WC_WooMercadoPago_BasicGateway';
|
| 289 |
+
$methods[] = 'WC_WooMercadoPago_CustomGateway';
|
| 290 |
+
$methods[] = 'WC_WooMercadoPago_TicketGateway';
|
| 291 |
+
|
| 292 |
+
//Get site_id and enable PSE only when credentials are set up and are from Colombia
|
| 293 |
+
$_site_id_v1 = get_option( '_site_id_v1', '' );
|
| 294 |
+
if ( !empty( $_site_id_v1 ) && $_site_id_v1=='MCO' ) {
|
| 295 |
+
$methods[] = 'WC_WooMercadoPago_PSEGateway';
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
$methods[] = 'WC_WooMercadoPago_SubscriptionGateway';
|
| 299 |
+
return $methods;
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
// Woocommerce_shipping_methods.
|
| 303 |
+
public function add_shipping( $methods ) {
|
| 304 |
+
$methods['woo-mercado-pago-me-normal'] = 'WC_MercadoEnvios_Shipping_Normal';
|
| 305 |
+
$methods['woo-mercado-pago-me-express'] = 'WC_MercadoEnvios_Shipping_Express';
|
| 306 |
+
return $methods;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
// When selecting Mercado Envios as shipping method, customer can only do the payment with Mercado Pago Basic Checkout
|
| 310 |
+
public function filter_payment_method_by_shipping( $methods ) {
|
| 311 |
+
$session = WC()->session;
|
| 312 |
+
if ( ! isset( $session ) ) {
|
| 313 |
+
return $methods;
|
| 314 |
+
}
|
| 315 |
+
$chosen_methods = $session->get( 'chosen_shipping_methods' );
|
| 316 |
+
$chosen_shipping = $chosen_methods[0];
|
| 317 |
+
// Check shipping methods is a Mercado Envios.
|
| 318 |
+
if ( strpos( $chosen_shipping, 'woo-mercado-pago-me-normal' ) !== false || strpos( $chosen_shipping, 'woo-mercado-pago-me-express' ) !== false ) {
|
| 319 |
+
$new_array = array();
|
| 320 |
+
foreach ( $methods as $payment_method => $payment_method_object ) {
|
| 321 |
+
if ( $payment_method == 'woo-mercado-pago-basic' ) {
|
| 322 |
+
$new_array['woo-mercado-pago-basic'] = $payment_method_object;
|
| 323 |
+
}
|
| 324 |
+
}
|
| 325 |
+
// Return new array shipping methods (only with Mercado Pago Basic Checkout).
|
| 326 |
+
return $new_array;
|
| 327 |
+
}
|
| 328 |
+
// Return all shipping methods.
|
| 329 |
+
return $methods;
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
/**
|
| 333 |
* Summary: Places a warning error to notify user that WooCommerce is missing.
|
| 334 |
* Description: Places a warning error to notify user that WooCommerce is missing.
|
| 335 |
*/
|
| 336 |
+
public function notify_woocommerce_miss() {
|
| 337 |
+
echo '<div class="error"><p>' .
|
| 338 |
+
sprintf(
|
| 339 |
+
__( 'Woo Mercado Pago Module depends on the last version of %s to execute!', 'woocommerce-mercadopago' ),
|
| 340 |
+
'<a href="https://wordpress.org/extend/plugins/woocommerce/">WooCommerce</a>'
|
| 341 |
+
) .
|
| 342 |
+
'</p></div>';
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
// Add settings link on plugin page.
|
| 346 |
+
public function woomercadopago_settings_link( $links ) {
|
| 347 |
+
$plugin_links = array();
|
| 348 |
+
$plugin_links[] = '<a href="' . esc_url( admin_url(
|
| 349 |
+
'admin.php?page=mercado-pago-settings' ) ) .
|
| 350 |
+
'">' . __( 'Mercado Pago Settings', 'woocommerce-mercadopago' ) . '</a>';
|
| 351 |
+
$plugin_links[] = '<a target="_blank" href="' .
|
| 352 |
+
'https://wordpress.org/support/plugin/woo-mercado-pago-module/reviews/?rate=5#new-post' .
|
| 353 |
+
'">' . sprintf(
|
| 354 |
+
__( 'Rate Us', 'woocommerce-mercadopago' ) . ' %s',
|
| 355 |
+
'★★★★★'
|
| 356 |
+
) . '</a>';
|
| 357 |
+
$plugin_links[] = '<br><a target="_blank" href="' .
|
| 358 |
+
'https://github.com/mercadopago/cart-woocommerce#installation' .
|
| 359 |
+
'">' . __( 'Tutorial', 'woocommerce-mercadopago' ) . '</a>';
|
| 360 |
+
$plugin_links[] = '<a target="_blank" href="' .
|
| 361 |
+
'https://wordpress.org/support/plugin/woo-mercado-pago-module#postform' .
|
| 362 |
+
'">' . __( 'Report Issue', 'woocommerce-mercadopago' ) . '</a>';
|
| 363 |
+
return array_merge( $plugin_links, $links );
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
// ============================================================
|
| 367 |
+
|
| 368 |
+
/**
|
| 369 |
* Summary: Check if we have valid credentials for v1.
|
| 370 |
* Description: Check if we have valid credentials.
|
| 371 |
* @return boolean true/false depending on the validation result.
|
| 372 |
*/
|
| 373 |
+
public static function validate_credentials_v1() {
|
| 374 |
+
$public_key = get_option( '_mp_public_key', '' );
|
| 375 |
+
$access_token = get_option( '_mp_access_token', '' );
|
| 376 |
+
// Pre-validate.
|
| 377 |
+
$is_valid_credentials = true;
|
| 378 |
+
if ( empty( $public_key ) || empty( $access_token ) ) {
|
| 379 |
+
$is_valid_credentials = false;
|
| 380 |
+
}
|
| 381 |
+
if ( strpos( $public_key, 'APP_USR' ) === false && strpos( $public_key, 'TEST' ) === false ) {
|
| 382 |
+
$is_valid_credentials = false;
|
| 383 |
+
}
|
| 384 |
+
if ( strpos( $access_token, 'APP_USR' ) === false && strpos( $access_token, 'TEST' ) === false ) {
|
| 385 |
+
$is_valid_credentials = false;
|
| 386 |
+
}
|
| 387 |
+
if ( $is_valid_credentials ) {
|
| 388 |
+
try {
|
| 389 |
+
$mp_v1 = new MP( WC_Woo_Mercado_Pago_Module::VERSION, $access_token );
|
| 390 |
+
$email = ( wp_get_current_user()->ID != 0 ) ? wp_get_current_user()->user_email : null;
|
| 391 |
+
$mp_v1->set_email( $email );
|
| 392 |
+
$locale = get_locale();
|
| 393 |
+
$locale = ( strpos( $locale, '_' ) !== false && strlen( $locale ) == 5 ) ? explode( '_', $locale ) : array('','');
|
| 394 |
+
$mp_v1->set_locale( $locale[1] );
|
| 395 |
+
$access_token = $mp_v1->get_access_token();
|
| 396 |
+
$get_request = $mp_v1->get( '/users/me?access_token=' . $access_token );
|
| 397 |
+
if ( isset( $get_request['response']['site_id'] ) && ! empty( $public_key ) ) {
|
| 398 |
+
update_option( '_test_user_v1', in_array( 'test_user', $get_request['response']['tags'] ), true );
|
| 399 |
+
update_option( '_site_id_v1', $get_request['response']['site_id'], true );
|
| 400 |
+
update_option( '_collector_id_v1', $get_request['response']['id'], true );
|
| 401 |
+
|
| 402 |
+
// $payment_methods = $mp_v1->get( '/v1/payment_methods/?access_token=' . $access_token );
|
| 403 |
+
// $arr = array();
|
| 404 |
+
// $arr[] = 'n/d';
|
| 405 |
+
// foreach ( $payment_methods['response'] as $payment ) {
|
| 406 |
+
// $arr[] = $payment['id'];
|
| 407 |
+
// }
|
| 408 |
+
// update_option( '_all_payment_methods_v0', implode( ',', $arr ), true );
|
| 409 |
+
|
| 410 |
+
// Get available payment methods.
|
| 411 |
+
$payments = $mp_v1->get( '/v1/payment_methods/?access_token=' . $access_token );
|
| 412 |
+
$payment_methods_ticket = array();
|
| 413 |
+
$arr = array();
|
| 414 |
+
$arr[] = 'n/d';
|
| 415 |
+
foreach ( $payments['response'] as $payment ) {
|
| 416 |
+
$arr[] = $payment['id'];
|
| 417 |
+
}
|
| 418 |
+
update_option( '_all_payment_methods_v0', implode( ',', $arr ), true );
|
| 419 |
+
|
| 420 |
+
foreach ( $payments['response'] as $payment ) {
|
| 421 |
+
if ( isset( $payment['payment_type_id'] ) ) {
|
| 422 |
+
if ( $payment['payment_type_id'] != 'account_money' &&
|
| 423 |
+
$payment['payment_type_id'] != 'credit_card' &&
|
| 424 |
+
$payment['payment_type_id'] != 'debit_card' &&
|
| 425 |
+
$payment['payment_type_id'] != 'prepaid_card' &&
|
| 426 |
$payment['id'] != 'pse') {
|
| 427 |
+
$obj = new stdClass();
|
| 428 |
+
$obj->id = $payment['id'];
|
| 429 |
+
$obj->name = $payment['name'];
|
| 430 |
+
$obj->secure_thumbnail = $payment['secure_thumbnail'];
|
| 431 |
+
array_push( $payment_methods_ticket, $obj );
|
| 432 |
+
}
|
| 433 |
+
}
|
| 434 |
+
}
|
| 435 |
+
update_option( '_all_payment_methods_ticket', json_encode( $payment_methods_ticket ), true );
|
| 436 |
+
// Check for auto converstion of currency.
|
| 437 |
+
$currency_ratio = WC_Woo_Mercado_Pago_Module::get_conversion_rate(
|
| 438 |
+
WC_Woo_Mercado_Pago_Module::$country_configs[$get_request['response']['site_id']]['currency']
|
| 439 |
+
);
|
| 440 |
+
if ( $currency_ratio > 0 ) {
|
| 441 |
+
update_option( '_can_do_currency_conversion_v1', true, true );
|
| 442 |
+
} else {
|
| 443 |
+
update_option( '_can_do_currency_conversion_v1', false, true );
|
| 444 |
+
}
|
| 445 |
+
return true;
|
| 446 |
+
}
|
| 447 |
+
} catch ( MercadoPagoException $e ) {
|
| 448 |
+
echo '<div class="notice notice-error is-dismissible">
|
| 449 |
+
<p><strong>Error communicate with the API Mercado Pago: </strong> ' . $e . '</p>
|
| 450 |
+
<button type="button" class="notice-dismiss">
|
| 451 |
+
<span class="screen-reader-text">Dismiss this notice.</span>
|
| 452 |
+
</button>
|
| 453 |
+
</div>';
|
| 454 |
+
}
|
| 455 |
+
}
|
| 456 |
+
|
| 457 |
+
update_option( '_test_user_v1', '', true );
|
| 458 |
+
update_option( '_site_id_v1', '', true );
|
| 459 |
+
update_option( '_collector_id_v1', '', true );
|
| 460 |
+
update_option( '_all_payment_methods_v0', array(), true );
|
| 461 |
+
update_option( '_all_payment_methods_ticket', '[]', true );
|
| 462 |
+
update_option( '_can_do_currency_conversion_v1', false, true );
|
| 463 |
+
return false;
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
// Get WooCommerce instance
|
| 467 |
+
public static function woocommerce_instance() {
|
| 468 |
+
if ( function_exists( 'WC' ) ) {
|
| 469 |
+
return WC();
|
| 470 |
+
} else {
|
| 471 |
+
global $woocommerce;
|
| 472 |
+
return $woocommerce;
|
| 473 |
+
}
|
| 474 |
+
}
|
| 475 |
+
|
| 476 |
+
// Get common error messages
|
| 477 |
+
public static function get_common_error_messages( $key ) {
|
| 478 |
+
if ( $key === 'Invalid payment_method_id' ) {
|
| 479 |
+
return __( 'Invalid payment_method_id', 'woocommerce-mercadopago' );
|
| 480 |
+
}
|
| 481 |
+
if ( $key === 'Invalid transaction_amount' ) {
|
| 482 |
+
return __( 'Invalid transaction_amount', 'woocommerce-mercadopago' ) . ' ' .
|
| 483 |
+
__( 'Posible causes: Currency not supported; Values under the minimal or above the maximun allowed.', 'woocommerce-mercadopago' );
|
| 484 |
+
}
|
| 485 |
+
if ( $key === 'Invalid users involved' ) {
|
| 486 |
+
return __( 'Invalid users involved', 'woocommerce-mercadopago' ) . ' ' .
|
| 487 |
+
__( 'Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users.', 'woocommerce-mercadopago' );
|
| 488 |
+
}
|
| 489 |
+
if ( $key === 'Unauthorized use of live credentials' ) {
|
| 490 |
+
return __( 'Unauthorized use of live credentials', 'woocommerce-mercadopago' ) . ' ' .
|
| 491 |
+
__( 'Posible causes: Pending permission of use in production of the seller credentials.', 'woocommerce-mercadopago' );
|
| 492 |
+
}
|
| 493 |
+
return $key;
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
/**
|
| 497 |
* Summary: Get the rate of conversion between two currencies.
|
| 498 |
* Description: The currencies are the one used in WooCommerce and the one used in $site_id.
|
| 499 |
* @return a float that is the rate of conversion.
|
| 500 |
*/
|
| 501 |
+
public static function get_conversion_rate( $used_currency ) {
|
| 502 |
+
$wc_currency = get_woocommerce_currency();
|
| 503 |
+
$email = ( wp_get_current_user()->ID != 0 ) ? wp_get_current_user()->user_email : null;
|
| 504 |
+
MPRestClient::set_email( $email );
|
| 505 |
+
if ( strlen( $wc_currency ) == 3 && strlen( $used_currency ) == 3 ) {
|
| 506 |
+
$currency_obj = MPRestClient::get(
|
| 507 |
+
array( 'uri' => '/currency_conversions/search?' .
|
| 508 |
+
'from=' . get_woocommerce_currency() .
|
| 509 |
+
'&to=' . $used_currency
|
| 510 |
+
),
|
| 511 |
+
WC_Woo_Mercado_Pago_Module::get_module_version()
|
| 512 |
+
);
|
| 513 |
+
if ( isset( $currency_obj['response'] ) ) {
|
| 514 |
+
$currency_obj = $currency_obj['response'];
|
| 515 |
+
if ( isset( $currency_obj['ratio'] ) ) {
|
| 516 |
+
return ( (float) $currency_obj['ratio'] );
|
| 517 |
+
}
|
| 518 |
+
}
|
| 519 |
+
}
|
| 520 |
+
return -1;
|
| 521 |
+
}
|
| 522 |
|
| 523 |
+
/**
|
| 524 |
* Summary: Builds up the array for the mp_install table, with info related with checkout.
|
| 525 |
* Description: Builds up the array for the mp_install table, with info related with checkout.
|
| 526 |
* @return an array with the module informations.
|
| 527 |
*/
|
| 528 |
+
public static function get_common_settings() {
|
| 529 |
+
$w = WC_Woo_Mercado_Pago_Module::woocommerce_instance();
|
| 530 |
+
$infra_data = array(
|
| 531 |
+
'module_version' => WC_Woo_Mercado_Pago_Module::VERSION,
|
| 532 |
+
'platform' => 'WooCommerce',
|
| 533 |
+
'platform_version' => $w->version,
|
| 534 |
+
'code_version' => phpversion(),
|
| 535 |
+
'so_server' => PHP_OS
|
| 536 |
+
);
|
| 537 |
+
return $infra_data;
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
/**
|
| 541 |
* Summary: Get store categories from Mercado Pago.
|
| 542 |
* Description: Trigger API to get available categories and proper description.
|
| 543 |
* @return an array with found categories and a description for its selector title.
|
| 544 |
*/
|
| 545 |
+
public static function get_categories() {
|
| 546 |
+
// $store_categories_id = array();
|
| 547 |
+
// $store_categories_description = array();
|
| 548 |
+
// // Get Mercado Pago store categories.
|
| 549 |
+
// $email = ( wp_get_current_user()->ID != 0 ) ? wp_get_current_user()->user_email : null;
|
| 550 |
+
// MPRestClient::set_email( $email );
|
| 551 |
+
// $categories = MPRestClient::get(
|
| 552 |
+
// array( 'uri' => '/item_categories' ),
|
| 553 |
+
// WC_Woo_Mercado_Pago_Module::get_module_version()
|
| 554 |
+
// );
|
| 555 |
+
// foreach ( $categories['response'] as $category ) {
|
| 556 |
+
// array_push(
|
| 557 |
+
// $store_categories_id, str_replace( '_', ' ', $category['id'] )
|
| 558 |
+
// );
|
| 559 |
+
// array_push(
|
| 560 |
+
// $store_categories_description, str_replace( '_', ' ', $category['description'] )
|
| 561 |
+
// );
|
| 562 |
+
// }
|
| 563 |
+
// return array(
|
| 564 |
+
// 'store_categories_id' => $store_categories_id,
|
| 565 |
+
// 'store_categories_description' => $store_categories_description
|
| 566 |
+
// );
|
| 567 |
+
return array(
|
| 568 |
+
'store_categories_id' => ["art", "baby", "coupons", "donations", "computing", "cameras", "video games", "television", "car electronics", "electronics", "automotive", "entertainment", "fashion", "games", "home", "musical", "phones", "services", "learnings", "tickets", "travels", "virtual goods", "others"],
|
| 569 |
+
'store_categories_description' => ["Collectibles & Art", "Toys for Baby, Stroller, Stroller Accessories, Car Safety Seats", "Coupons", "Donations", "Computers & Tablets", "Cameras & Photography", "Video Games & Consoles", "LCD, LED, Smart TV, Plasmas, TVs", "Car Audio, Car Alarm Systems & Security, Car DVRs, Car Video Players, Car PC", "Audio & Surveillance, Video & GPS, Others", "Parts & Accessories", "Music, Movies & Series, Books, Magazines & Comics, Board Games & Toys", "Men's, Women's, Kids & baby, Handbags & Accessories, Health & Beauty, Shoes, Jewelry & Watches", "Online Games & Credits", "Home appliances. Home & Garden", "Instruments & Gear", "Cell Phones & Accessories", "General services", "Trainings, Conferences, Workshops", "Tickets for Concerts, Sports, Arts, Theater, Family, Excursions tickets, Events & more", "Plane tickets, Hotel vouchers, Travel vouchers", "E-books, Music Files, Software, Digital Images, PDF Files and any item which can be electronically stored in a file, Mobile Recharge, DTH Recharge and any Online Recharge", "Other categories"]
|
| 570 |
+
);
|
| 571 |
+
}
|
| 572 |
+
|
| 573 |
+
/**
|
| 574 |
* Summary: Get information about the used Mercado Pago account based in its site.
|
| 575 |
* Description: Get information about the used Mercado Pago account based in its site.
|
| 576 |
* @return an array with the information.
|
| 577 |
*/
|
| 578 |
+
public static function get_site_data() {
|
| 579 |
+
$site_id = get_option( '_site_id_v1', '' );
|
| 580 |
+
if ( isset( $site_id ) && ! empty( $site_id ) ) {
|
| 581 |
+
return WC_Woo_Mercado_Pago_Module::$country_configs[$site_id];
|
| 582 |
+
} else {
|
| 583 |
+
return null;
|
| 584 |
+
}
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
// Fix to URL Problem : #038; replaces & and breaks the navigation.
|
| 588 |
+
public static function fix_url_ampersand( $link ) {
|
| 589 |
+
return str_replace( '\/', '/', str_replace( '&', '&', $link) );
|
| 590 |
+
}
|
| 591 |
+
|
| 592 |
+
/**
|
| 593 |
* Summary: Find template's folder.
|
| 594 |
* Description: Find template's folder.
|
| 595 |
* @return a string that identifies the path.
|
| 596 |
*/
|
| 597 |
+
public static function get_templates_path() {
|
| 598 |
+
return plugin_dir_path( __FILE__ ) . 'templates/';
|
| 599 |
+
}
|
| 600 |
|
| 601 |
+
/**
|
| 602 |
* Summary: Get module's version.
|
| 603 |
* Description: Get module's version.
|
| 604 |
* @return a string with the given version.
|
| 605 |
*/
|
| 606 |
+
public static function get_module_version() {
|
| 607 |
+
return WC_Woo_Mercado_Pago_Module::VERSION;
|
| 608 |
+
}
|
| 609 |
|
| 610 |
+
/**
|
| 611 |
* Summary: Get client id from access token.
|
| 612 |
* Description: Get client id from access token.
|
| 613 |
* @return the client id.
|
| 614 |
*/
|
| 615 |
+
public static function get_client_id( $at ) {
|
| 616 |
+
$t = explode ( '-', $at );
|
| 617 |
+
if ( count( $t ) > 0 ) {
|
| 618 |
+
return $t[1];
|
| 619 |
+
}
|
| 620 |
+
return '';
|
| 621 |
+
}
|
| 622 |
+
|
| 623 |
+
// Check if an order is recurrent.
|
| 624 |
+
public static function is_subscription( $items ) {
|
| 625 |
+
$is_subscription = false;
|
| 626 |
+
if ( sizeof( $items ) == 1 ) {
|
| 627 |
+
foreach ( $items as $cart_item_key => $cart_item ) {
|
| 628 |
+
$is_recurrent = ( method_exists( $cart_item, 'get_meta' ) ) ?
|
| 629 |
+
$cart_item->get_meta( '_used_gateway' ) :
|
| 630 |
+
get_post_meta( $cart_item['product_id'], '_mp_recurring_is_recurrent', true );
|
| 631 |
+
if ( $is_recurrent == 'yes' ) {
|
| 632 |
+
$is_subscription = true;
|
| 633 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 634 |
}
|
| 635 |
+
}
|
| 636 |
+
return $is_subscription;
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
// Return boolean indicating if currency is supported.
|
| 640 |
+
public static function is_supported_currency( $site_id ) {
|
| 641 |
+
return get_woocommerce_currency() == WC_Woo_Mercado_Pago_Module::$country_configs[$site_id]['currency'];
|
| 642 |
+
}
|
| 643 |
+
|
| 644 |
+
public static function build_currency_conversion_err_msg( $currency ) {
|
| 645 |
+
return '<img width="14" height="14" src="' .
|
| 646 |
+
plugins_url( 'assets/images/error.png', __FILE__ ) . '"> ' .
|
| 647 |
+
__( 'ERROR: It was not possible to convert the unsupported currency', 'woocommerce-mercadopago' ) .
|
| 648 |
+
' ' . get_woocommerce_currency() . ' ' .
|
| 649 |
+
__( 'to', 'woocommerce-mercadopago' ) . ' ' . $currency . '. ' .
|
| 650 |
+
__( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago' );
|
| 651 |
+
}
|
| 652 |
+
|
| 653 |
+
public static function build_currency_not_converted_msg( $currency, $country_name ) {
|
| 654 |
+
return '<img width="14" height="14" src="' .
|
| 655 |
+
plugins_url( 'assets/images/warning.png', __FILE__ ) . '"> ' .
|
| 656 |
+
__( 'ATTENTION: The currency', 'woocommerce-mercadopago' ) .
|
| 657 |
+
' ' . get_woocommerce_currency() . ' ' .
|
| 658 |
+
__( 'defined in WooCommerce is different from the one used in your credentials country.<br>The currency for transactions in this payment method will be', 'woocommerce-mercadopago' ) .
|
| 659 |
+
' ' . $currency . ' (' . $country_name . '). ' .
|
| 660 |
+
__( 'Currency conversions should be made outside this module.', 'woocommerce-mercadopago' );
|
| 661 |
+
}
|
| 662 |
+
|
| 663 |
+
public static function build_currency_converted_msg( $currency ) {
|
| 664 |
+
return '<img width="14" height="14" src="' .
|
| 665 |
+
plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ' .
|
| 666 |
+
__( 'CURRENCY CONVERTED: Your store is converting currency from', 'woocommerce-mercadopago' ) .
|
| 667 |
+
' ' . get_woocommerce_currency() . ' ' .
|
| 668 |
+
__( 'to', 'woocommerce-mercadopago' ) . ' ' . $currency;
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
public static function get_country_name( $site_id ) {
|
| 672 |
+
switch ( $site_id ) {
|
| 673 |
+
case 'MCO':
|
| 674 |
+
return __( 'Colombia', 'woocommerce-mercadopago' );
|
| 675 |
+
case 'MLA':
|
| 676 |
+
return __( 'Argentina', 'woocommerce-mercadopago' );
|
| 677 |
+
case 'MLB':
|
| 678 |
+
return __( 'Brazil', 'woocommerce-mercadopago' );
|
| 679 |
+
case 'MLC':
|
| 680 |
+
return __( 'Chile', 'woocommerce-mercadopago' );
|
| 681 |
+
case 'MLM':
|
| 682 |
+
return __( 'Mexico', 'woocommerce-mercadopago' );
|
| 683 |
+
case 'MLU':
|
| 684 |
+
return __( 'Uruguay', 'woocommerce-mercadopago' );
|
| 685 |
+
case 'MLV':
|
| 686 |
+
return __( 'Venezuela', 'woocommerce-mercadopago' );
|
| 687 |
+
case 'MPE':
|
| 688 |
+
return __( 'Peru', 'woocommerce-mercadopago' );
|
| 689 |
+
}
|
| 690 |
+
return '';
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
// Build the string representing the path to the log file.
|
| 694 |
+
public static function build_log_path_string( $gateway_id, $gateway_name ) {
|
| 695 |
+
return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' .
|
| 696 |
+
esc_attr( $gateway_id ) . '-' . sanitize_file_name( wp_hash( $gateway_id ) ) . '.log' ) ) . '">' .
|
| 697 |
+
$gateway_name . '</a>';
|
| 698 |
+
}
|
| 699 |
+
|
| 700 |
+
public static function get_wc_status_for_mp_status( $mp_status ) {
|
| 701 |
+
$defaults = array(
|
| 702 |
+
'pending' => 'pending',
|
| 703 |
+
'approved' => 'processing',
|
| 704 |
+
'inprocess' => 'on_hold',
|
| 705 |
+
'inmediation' => 'on_hold',
|
| 706 |
+
'rejected' => 'failed',
|
| 707 |
+
'cancelled' => 'cancelled',
|
| 708 |
+
'refunded' => 'refunded',
|
| 709 |
+
'chargedback' => 'refunded'
|
| 710 |
+
);
|
| 711 |
+
$status = get_option( '_mp_order_status_' . $mp_status . '_map', $defaults[$mp_status] );
|
| 712 |
+
return str_replace( '_', '-', $status );
|
| 713 |
+
}
|
| 714 |
+
|
| 715 |
+
public static function get_map( $selector_id ) {
|
| 716 |
+
$html = '';
|
| 717 |
+
$arr = explode( '_', $selector_id );
|
| 718 |
+
$defaults = array(
|
| 719 |
+
'pending' => 'pending',
|
| 720 |
+
'approved' => 'processing',
|
| 721 |
+
'inprocess' => 'on_hold',
|
| 722 |
+
'inmediation' => 'on_hold',
|
| 723 |
+
'rejected' => 'failed',
|
| 724 |
+
'cancelled' => 'cancelled',
|
| 725 |
+
'refunded' => 'refunded',
|
| 726 |
+
'chargedback' => 'refunded'
|
| 727 |
+
);
|
| 728 |
+
$selection = get_option( '_mp_' . $selector_id, $defaults[$arr[2]] );
|
| 729 |
+
|
| 730 |
+
foreach ( wc_get_order_statuses() as $slug => $status ) {
|
| 731 |
+
$slug = str_replace( array( 'wc-', '-' ), array( '', '_' ), $slug );
|
| 732 |
+
$html .= sprintf(
|
| 733 |
+
'<option value="%s"%s>%s %s</option>',
|
| 734 |
+
$slug,
|
| 735 |
+
selected( $selection, $slug, false ),
|
| 736 |
+
__( 'Update WooCommerce order to ', 'woocommerce-mercadopago' ),
|
| 737 |
+
$status
|
| 738 |
+
);
|
| 739 |
}
|
| 740 |
|
| 741 |
+
return $html;
|
| 742 |
+
}
|
| 743 |
+
|
| 744 |
+
public static function generate_refund_cancel_subscription( $domain, $success_msg, $fail_msg, $options, $str1, $str2, $str3, $str4 ) {
|
| 745 |
+
$subscription_js = '<script type="text/javascript">
|
| 746 |
( function() {
|
| 747 |
var MPSubscription = {}
|
| 748 |
MPSubscription.callSubscriptionCancel = function () {
|
| 859 |
this.MPSubscription = MPSubscription;
|
| 860 |
} ).call();
|
| 861 |
</script>';
|
| 862 |
+
$subscription_meta_box = '<table>' .
|
| 863 |
+
'<tr class="total">' .
|
| 864 |
+
'<td><label for="payment_id" style="margin-right:1px;">' .
|
| 865 |
+
$str1 .
|
| 866 |
+
'</label></td>' .
|
| 867 |
+
'<td><select id="payment_id" name="refund_payment_id" style="margin-left:1px;">' .
|
| 868 |
+
$options .
|
| 869 |
+
'</select></td>' .
|
| 870 |
+
'</tr>' .
|
| 871 |
+
'<tr class="total">' .
|
| 872 |
+
'<td><label for="payment_amount" style="margin-right:1px;">' .
|
| 873 |
+
$str2 .
|
| 874 |
+
'</label></td>' .
|
| 875 |
+
'<td><input type="number" class="text amount_input" id="payment_amount" value="0" name="payment_amount"' .
|
| 876 |
+
' placeholder="Decimal" min="0" step="0.01" value="0.00" style="width:112px; margin-left:1px;"' .
|
| 877 |
+
' ng-pattern="/^[0-9]+(\.[0-9]{1,2})?$/"/>' .
|
| 878 |
+
'</td>' .
|
| 879 |
+
'</tr>' .
|
| 880 |
+
'<tr class="total">' .
|
| 881 |
+
'<td><input onclick="MPSubscription.callSubscriptionRefund();" type="button"' .
|
| 882 |
+
' id="sub_pay_refund_btn" class="button button" style="margin-left:1px; margin-top:2px;"' .
|
| 883 |
+
' name="refund" value="' . $str3 .
|
| 884 |
+
'" style="margin-right:1px;"></td>' .
|
| 885 |
+
'<td><input onclick="MPSubscription.callSubscriptionCancel();" type="button"' .
|
| 886 |
+
' id="sub_pay_cancel_btn" class="button button" style="margin-right:1px; margin-top:2px;"' .
|
| 887 |
+
' name="cancel" value="' . $str4 .
|
| 888 |
+
'" style="margin-left:1px;"></td>' .
|
| 889 |
+
'</tr>' .
|
| 890 |
+
'</table>';
|
| 891 |
+
return $subscription_js . $subscription_meta_box;
|
| 892 |
+
}
|
| 893 |
+
|
| 894 |
+
/**
|
| 895 |
* Check if product dimensions are well defined
|
| 896 |
*/
|
| 897 |
+
public static function is_product_dimensions_valid( $all_product_data ) {
|
| 898 |
+
if ( empty( $all_product_data ) ) {
|
| 899 |
+
return true;
|
| 900 |
+
}
|
| 901 |
+
foreach ( $all_product_data as $p ) {
|
| 902 |
+
$product = wc_get_product( $p->ID );
|
| 903 |
+
if ( ! $product->is_virtual() ) {
|
| 904 |
+
$w = $product->get_weight();
|
| 905 |
+
$dimensions = $product->get_dimensions( false );
|
| 906 |
+
if ( empty( $w ) || ! is_numeric( $w ) ) {
|
| 907 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 908 |
}
|
| 909 |
+
if ( ! is_numeric( $dimensions['height'] ) ) {
|
| 910 |
+
return false;
|
| 911 |
+
}
|
| 912 |
+
if ( ! is_numeric( $dimensions['width'] ) ) {
|
| 913 |
+
return false;
|
| 914 |
+
}
|
| 915 |
+
if ( ! is_numeric( $dimensions['length'] ) ) {
|
| 916 |
+
return false;
|
| 917 |
+
}
|
| 918 |
+
}
|
| 919 |
+
}
|
| 920 |
+
return true;
|
| 921 |
+
}
|
| 922 |
+
|
| 923 |
+
}
|
| 924 |
+
|
| 925 |
+
//=====
|
| 926 |
+
|
| 927 |
+
// Create Mercado Pago option menu.
|
| 928 |
+
add_action( 'admin_menu', function() {
|
| 929 |
+
add_options_page(
|
| 930 |
+
'Mercado Pago Options', 'Mercado Pago', 'manage_options', 'mercado-pago-settings',
|
| 931 |
+
function() {
|
| 932 |
+
|
| 933 |
+
// Verify permissions.
|
| 934 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
| 935 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
|
| 936 |
+
}
|
| 937 |
+
|
| 938 |
+
// Check for submits.
|
| 939 |
+
if ( isset( $_POST['submit'] ) ) {
|
| 940 |
+
update_option( '_mp_public_key', isset( $_POST['public_key'] ) ? $_POST['public_key'] : '', true );
|
| 941 |
+
update_option( '_mp_access_token', isset( $_POST['access_token'] ) ? $_POST['access_token'] : '', true );
|
| 942 |
+
update_option( '_mp_success_url', isset( $_POST['success_url'] ) ? $_POST['success_url'] : '', true );
|
| 943 |
+
update_option( '_mp_fail_url', isset( $_POST['fail_url'] ) ? $_POST['fail_url'] : '', true );
|
| 944 |
+
update_option( '_mp_pending_url', isset( $_POST['pending_url'] ) ? $_POST['pending_url'] : '', true );
|
| 945 |
+
update_option( '_mp_order_status_pending_map', isset( $_POST['order_status_pending_map'] ) ? $_POST['order_status_pending_map'] : '', true );
|
| 946 |
+
update_option( '_mp_order_status_approved_map', isset( $_POST['order_status_approved_map'] ) ? $_POST['order_status_approved_map'] : '', true );
|
| 947 |
+
update_option( '_mp_order_status_inprocess_map', isset( $_POST['order_status_inprocess_map'] ) ? $_POST['order_status_inprocess_map'] : '', true );
|
| 948 |
+
update_option( '_mp_order_status_inmediation_map', isset( $_POST['order_status_inmediation_map'] ) ? $_POST['order_status_inmediation_map'] : '', true );
|
| 949 |
+
update_option( '_mp_order_status_rejected_map', isset( $_POST['order_status_rejected_map'] ) ? $_POST['order_status_rejected_map'] : '', true );
|
| 950 |
+
update_option( '_mp_order_status_cancelled_map', isset( $_POST['order_status_cancelled_map'] ) ? $_POST['order_status_cancelled_map'] : '', true );
|
| 951 |
+
update_option( '_mp_order_status_refunded_map', isset( $_POST['order_status_refunded_map'] ) ? $_POST['order_status_refunded_map'] : '', true );
|
| 952 |
+
update_option( '_mp_order_status_chargedback_map', isset( $_POST['order_status_chargedback_map'] ) ? $_POST['order_status_chargedback_map'] : '', true );
|
| 953 |
+
update_option( '_mp_statement_descriptor', isset( $_POST['statement_descriptor'] ) ? $_POST['statement_descriptor'] : '', true );
|
| 954 |
+
if ( isset( $_POST['category_id'] ) ) {
|
| 955 |
+
update_option( '_mp_category_id', $_POST['category_id'], true );
|
| 956 |
+
$categories_data = WC_Woo_Mercado_Pago_Module::$categories;
|
| 957 |
+
update_option( '_mp_category_name', $categories_data['store_categories_id'][$_POST['category_id']], true );
|
| 958 |
+
} else {
|
| 959 |
+
update_option( '_mp_category_id', '', true );
|
| 960 |
+
update_option( '_mp_category_name', 'others', true );
|
| 961 |
+
}
|
| 962 |
+
update_option( '_mp_store_identificator', isset( $_POST['store_identificator'] ) ? $_POST['store_identificator'] : '', true );
|
| 963 |
+
update_option( '_mp_custom_banner', isset( $_POST['custom_banner'] ) ? $_POST['custom_banner'] : '', true );
|
| 964 |
+
update_option( '_mp_custom_domain', isset( $_POST['custom_domain'] ) ? $_POST['custom_domain'] : '', true );
|
| 965 |
+
update_option( '_mp_currency_conversion_v0', isset( $_POST['currency_conversion_v0'] ) ? $_POST['currency_conversion_v0'] : '', true );
|
| 966 |
+
update_option( '_mp_currency_conversion_v1', isset( $_POST['currency_conversion_v1'] ) ? $_POST['currency_conversion_v1'] : '', true );
|
| 967 |
+
update_option( '_mp_debug_mode', isset( $_POST['debug_mode'] ) ? $_POST['debug_mode'] : '', true );
|
| 968 |
+
update_option( '_mp_sandbox_mode', isset( $_POST['sandbox_mode'] ) ? $_POST['sandbox_mode'] : '', true );
|
| 969 |
+
}
|
| 970 |
+
|
| 971 |
+
// Mercado Pago logo.
|
| 972 |
+
$mp_logo = '<img width="185" height="48" src="' . plugins_url( 'assets/images/mplogo.png', __FILE__ ) . '">';
|
| 973 |
+
|
| 974 |
+
|
| 975 |
+
// Check list images
|
| 976 |
+
$imageCheckOk = '<img width="14" height="14" src="' . plugins_url( 'assets/images/check.png', __FILE__ ) . '"> ';
|
| 977 |
+
$imageCheckNotOk = '<img width="14" height="14" src="' . plugins_url( 'assets/images/error.png', __FILE__ ) . '"> ';
|
| 978 |
+
$imageCheckWarning = ' <img width="14" height="14" src="' . plugins_url( 'assets/images/warning.png', __FILE__ ) . '"> ';
|
| 979 |
+
|
| 980 |
+
|
| 981 |
+
// Check WooCommerce.
|
| 982 |
+
$has_woocommerce_message = class_exists( 'WC_Payment_Gateway' ) ?
|
| 983 |
+
$imageCheckOk . __( 'WooCommerce is installed and enabled.', 'woocommerce-mercadopago' ) :
|
| 984 |
+
$imageCheckNotOk . __( 'You don\'t have WooCommerce installed and enabled.', 'woocommerce-mercadopago' );
|
| 985 |
+
// Creating PHP version message.
|
| 986 |
+
|
| 987 |
+
// Check for PHP version and throw notice.
|
| 988 |
+
$min_php_message = $imageCheckOk . __( 'Your PHP version is OK.', 'woocommerce-mercadopago' );
|
| 989 |
+
|
| 990 |
+
if ( version_compare( PHP_VERSION, WC_Woo_Mercado_Pago_Module::MIN_PHP, '<=' ) ) {
|
| 991 |
+
$min_php_message = $imageCheckWarning .
|
| 992 |
+
sprintf(
|
| 993 |
+
__( 'Your PHP version do not support this module. You have %s, minimal required is %s.', 'woocommerce-mercadopago' ),
|
| 994 |
+
phpversion(), WC_Woo_Mercado_Pago_Module::MIN_PHP
|
| 995 |
+
);
|
| 996 |
+
}
|
| 997 |
+
|
| 998 |
+
// Check cURL.
|
| 999 |
+
$curl_message = in_array( 'curl', get_loaded_extensions() ) ?
|
| 1000 |
+
$imageCheckOk . __( 'cURL is installed.', 'woocommerce-mercadopago' ) :
|
| 1001 |
+
$imageCheckNotOk . __( 'cURL is not installed.', 'woocommerce-mercadopago' );
|
| 1002 |
+
|
| 1003 |
+
// Check SSL.
|
| 1004 |
+
$is_ssl_message = empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ?
|
| 1005 |
+
$imageCheckWarning . __( 'SSL is missing in your site.', 'woocommerce-mercadopago' ) :
|
| 1006 |
+
$imageCheckOk . __( 'Your site has SSL enabled.', 'woocommerce-mercadopago' );
|
| 1007 |
+
|
| 1008 |
+
// Check porduct dimensions.
|
| 1009 |
+
global $wpdb;
|
| 1010 |
+
$all_product_data = $wpdb->get_results(
|
| 1011 |
+
'SELECT ID FROM `' . $wpdb->prefix . 'posts` where post_type="product" and post_status = "publish"'
|
| 1012 |
+
);
|
| 1013 |
+
$is_all_products_with_valid_dimensions = WC_Woo_Mercado_Pago_Module::is_product_dimensions_valid( $all_product_data ) ?
|
| 1014 |
+
$imageCheckOk . __( 'Your products have theirs dimensions well defined.', 'woocommerce-mercadopago' ) :
|
| 1015 |
+
$imageCheckWarning . __( 'You have product(s) with invalid dimensions.', 'woocommerce-mercadopago' );
|
| 1016 |
+
|
| 1017 |
+
// Create links for internal redirections to each payment solution.
|
| 1018 |
+
$gateway_buttons = '<strong>' .
|
| 1019 |
+
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 1020 |
+
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-basic' ) ) .
|
| 1021 |
+
'">' . __( 'Basic Checkout', 'woocommerce-mercadopago' ) . '</a>' . ' ' .
|
| 1022 |
+
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 1023 |
+
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-custom' ) ) .
|
| 1024 |
+
'">' . __( 'Custom Checkout', 'woocommerce-mercadopago' ) . '</a>' . ' ' .
|
| 1025 |
+
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 1026 |
+
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-ticket' ) ) .
|
| 1027 |
+
'">' . __( 'Ticket', 'woocommerce-mercadopago' ) . '</a>' . ' ' .
|
| 1028 |
+
'<a class="button button-primary" href="' . esc_url( admin_url(
|
| 1029 |
+
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-subscription' ) ) .
|
| 1030 |
+
'">' . __( 'Subscription', 'woocommerce-mercadopago' ) . '</a>';
|
| 1031 |
+
if ( get_option('_site_id_v1', '') == 'MCO' ) {
|
| 1032 |
+
$gateway_buttons .= ' <a class="button button-primary" href="' . esc_url( admin_url(
|
| 1033 |
+
'admin.php?page=wc-settings&tab=checkout§ion=woo-mercado-pago-pse' ) ) .
|
| 1034 |
+
'">' . __( 'PSE', 'woocommerce-mercadopago' ) . '</a>';
|
| 1035 |
+
}
|
| 1036 |
+
$gateway_buttons .= '</strong>';
|
| 1037 |
+
// Statement descriptor.
|
| 1038 |
+
$statement_descriptor = get_option( '_mp_statement_descriptor', 'Mercado Pago' );
|
| 1039 |
+
// Get categories.
|
| 1040 |
+
$store_categories_id = WC_Woo_Mercado_Pago_Module::$categories['store_categories_id'];
|
| 1041 |
+
$category_id = get_option( '_mp_category_id', 0 );
|
| 1042 |
+
if ( count( $store_categories_id ) == 0 ) {
|
| 1043 |
+
$store_category_message = '<img width="14" height="14" src="' . plugins_url( 'assets/images/warning.png', __FILE__ ) . '">' . ' ' .
|
| 1044 |
+
__( 'Configure your Public_key and Access_token to have access to more options.', 'woocommerce-mercadopago' );
|
| 1045 |
+
} else {
|
| 1046 |
+
$store_category_message = __( 'Define which type of products your store sells.', 'woocommerce-mercadopago' );
|
| 1047 |
+
}
|
| 1048 |
+
// Store identification.
|
| 1049 |
+
$store_identificator = get_option( '_mp_store_identificator', 'WC-' );
|
| 1050 |
+
// Custom domain for IPN.
|
| 1051 |
+
$custom_banner = get_option( '_mp_custom_banner', '' );
|
| 1052 |
+
// Custom domain for IPN.
|
| 1053 |
+
$custom_domain = get_option( '_mp_custom_domain', '' );
|
| 1054 |
+
if ( ! empty( $custom_domain ) && filter_var( $custom_domain, FILTER_VALIDATE_URL ) === FALSE ) {
|
| 1055 |
+
$custom_domain_message = '<img width="14" height="14" src="' . plugins_url( 'assets/images/warning.png', __FILE__ ) . '"> ' .
|
| 1056 |
+
__( 'This appears to be an invalid URL.', 'woocommerce-mercadopago' ) . ' ';
|
| 1057 |
+
} else {
|
| 1058 |
+
$custom_domain_message = sprintf( '%s',
|
| 1059 |
+
__( 'If you want to use a custom URL for IPN inform it here.<br>Format should be as: <code>https://yourdomain.com/yoursubdomain</code>.', 'woocommerce-mercadopago' )
|
| 1060 |
+
);
|
| 1061 |
+
}
|
| 1062 |
+
// Debug mode.
|
| 1063 |
+
$_mp_debug_mode = get_option( '_mp_debug_mode', '' );
|
| 1064 |
+
if ( empty( $_mp_debug_mode ) ) {
|
| 1065 |
+
$is_debug_mode = '';
|
| 1066 |
+
} else {
|
| 1067 |
+
$is_debug_mode = 'checked="checked"';
|
| 1068 |
+
}
|
| 1069 |
+
// Sandbox mode.
|
| 1070 |
+
$_mp_sandbox_mode = get_option( '_mp_sandbox_mode', '' );
|
| 1071 |
+
if ( empty( $_mp_sandbox_mode ) ) {
|
| 1072 |
+
$is_sandbox_mode = '';
|
| 1073 |
+
} else {
|
| 1074 |
+
$is_sandbox_mode = 'checked="checked"';
|
| 1075 |
+
}
|
| 1076 |
+
|
| 1077 |
+
// ===== v1 verifications =====
|
| 1078 |
+
// Trigger v1 API to validate credentials.
|
| 1079 |
+
$site_id_v1 = '';
|
| 1080 |
+
$checkValidCredentials = WC_Woo_Mercado_Pago_Module::validate_credentials_v1();
|
| 1081 |
+
|
| 1082 |
+
if ( $checkValidCredentials ) {
|
| 1083 |
+
$site_id_v1 = get_option( '_site_id_v1', '' );
|
| 1084 |
+
$v1_credentials_message = $checkValidCredentials ?
|
| 1085 |
+
$imageCheckOk .
|
| 1086 |
+
__( 'Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>valid</strong> for', 'woocommerce-mercadopago' ) . ': ' .
|
| 1087 |
+
'<img style="margin-top:2px;" width="18.6" height="12" src="' .
|
| 1088 |
+
plugins_url( 'assets/images/' . $site_id_v1 . '/' . $site_id_v1 . '.png', __FILE__ ) . '"> ' .
|
| 1089 |
+
WC_Woo_Mercado_Pago_Module::get_country_name( $site_id_v1 ) :
|
| 1090 |
+
$imageCheckNotOk . __( 'Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!', 'woocommerce-mercadopago' );
|
| 1091 |
+
} else {
|
| 1092 |
+
$v1_credentials_message = $imageCheckNotOk . __( 'Your <strong>public_key</strong> and <strong>access_token</strong> are <strong>not valid</strong>!', 'woocommerce-mercadopago' );
|
| 1093 |
+
}
|
| 1094 |
+
|
| 1095 |
+
$v1_credential_locales = sprintf(
|
| 1096 |
+
'%s <a href="https://www.mercadopago.com/mla/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 1097 |
+
'<a href="https://www.mercadopago.com/mlb/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 1098 |
+
'<a href="https://www.mercadopago.com/mlc/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 1099 |
+
'<a href="https://www.mercadopago.com/mco/account/credentials?type=custom" target="_blank">%s</a>, ' .
|
| 1100 |
+
'<a href="https://www.mercadopago.com/mlm/account/credentials?type=custom" target="_blank">%s</a> %s ' .
|
| 1101 |
+
'<a href="https://www.mercadopago.com/mpe/account/credentials?type=custom" target="_blank">%s</a>',
|
| 1102 |
+
__( 'These credentials are used in <strong>Basic Checkout</strong>, <strong>Custom Checkout</strong>, <strong>Tickets</strong> and <strong>Subscriptions</strong>. Access it for your country:<br>', 'woocommerce-mercadopago' ),
|
| 1103 |
+
__( 'Argentina', 'woocommerce-mercadopago' ),
|
| 1104 |
+
__( 'Brazil', 'woocommerce-mercadopago' ),
|
| 1105 |
+
__( 'Chile', 'woocommerce-mercadopago' ),
|
| 1106 |
+
__( 'Colombia', 'woocommerce-mercadopago' ),
|
| 1107 |
+
__( 'Mexico', 'woocommerce-mercadopago' ),
|
| 1108 |
+
__( 'or', 'woocommerce-mercadopago' ),
|
| 1109 |
+
__( 'Peru', 'woocommerce-mercadopago' )
|
| 1110 |
+
);
|
| 1111 |
+
// Currency conversion.
|
| 1112 |
+
$_mp_currency_conversion_v1 = get_option( '_mp_currency_conversion_v1', '' );
|
| 1113 |
+
if ( empty( $_mp_currency_conversion_v1 ) ) {
|
| 1114 |
+
$is_currency_conversion_v1 = '';
|
| 1115 |
+
} else {
|
| 1116 |
+
$is_currency_conversion_v1 = 'checked="checked"';
|
| 1117 |
+
}
|
| 1118 |
+
$_can_do_currency_conversion_v1 = get_option( '_can_do_currency_conversion_v1', false );
|
| 1119 |
+
if ( ! empty( $site_id_v1 ) ) {
|
| 1120 |
+
if ( ! WC_Woo_Mercado_Pago_Module::is_supported_currency( $site_id_v1 ) ) {
|
| 1121 |
+
if ( empty( $_mp_currency_conversion_v1 ) ) {
|
| 1122 |
+
$currency_conversion_v1_message = WC_Woo_Mercado_Pago_Module::build_currency_not_converted_msg(
|
| 1123 |
+
WC_Woo_Mercado_Pago_Module::$country_configs[$site_id_v1]['currency'],
|
| 1124 |
+
WC_Woo_Mercado_Pago_Module::get_country_name( $site_id_v1 )
|
| 1125 |
+
);
|
| 1126 |
+
} elseif ( ! empty( $_mp_currency_conversion_v1 ) && $_can_do_currency_conversion_v1 ) {
|
| 1127 |
+
$currency_conversion_v1_message = WC_Woo_Mercado_Pago_Module::build_currency_converted_msg(
|
| 1128 |
+
WC_Woo_Mercado_Pago_Module::$country_configs[$site_id_v1]['currency']
|
| 1129 |
+
);
|
| 1130 |
+
} else {
|
| 1131 |
+
$currency_conversion_v1_message = WC_Woo_Mercado_Pago_Module::build_currency_conversion_err_msg(
|
| 1132 |
+
WC_Woo_Mercado_Pago_Module::$country_configs[$site_id_v1]['currency']
|
| 1133 |
+
);
|
| 1134 |
+
}
|
| 1135 |
+
} else {
|
| 1136 |
+
$currency_conversion_v1_message = '';
|
| 1137 |
+
}
|
| 1138 |
+
} else {
|
| 1139 |
+
$currency_conversion_v1_message = '';
|
| 1140 |
+
}
|
| 1141 |
+
|
| 1142 |
+
require_once( 'templates/mp_main_settings.php' );
|
| 1143 |
+
|
| 1144 |
+
}
|
| 1145 |
+
);
|
| 1146 |
+
});
|
| 1147 |
+
|
| 1148 |
+
// add our own item to the order actions meta box
|
| 1149 |
+
add_action( 'woocommerce_order_actions', 'add_mp_order_meta_box_actions' );
|
| 1150 |
+
// define the item in the meta box by adding an item to the $actions array
|
| 1151 |
+
function add_mp_order_meta_box_actions( $actions ) {
|
| 1152 |
+
$actions['cancel_order'] = __( 'Cancel Order', 'woocommerce-mercadopago' );
|
| 1153 |
+
return $actions;
|
| 1154 |
+
}
|
| 1155 |
+
|
| 1156 |
+
// Payment gateways should be created as additional plugins that hook into WooCommerce.
|
| 1157 |
+
// Inside the plugin, you need to create a class after plugins are loaded.
|
| 1158 |
+
add_action(
|
| 1159 |
+
'plugins_loaded',
|
| 1160 |
+
array( 'WC_Woo_Mercado_Pago_Module', 'init_mercado_pago_class' )
|
| 1161 |
+
);
|
| 1162 |
|
| 1163 |
endif;
|
