Version Description
Download this release
Release Info
| Developer | mercadopago |
| Plugin | |
| Version | 4.4.0 |
| Comparing to | |
| See all releases | |
Code changes from version 4.3.1 to 4.4.0
- i18n/languages/woocommerce-mercadopago-es_AR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_AR.po +2 -2
- i18n/languages/woocommerce-mercadopago-es_CL.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CL.po +2 -2
- i18n/languages/woocommerce-mercadopago-es_CO.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CO.po +2 -2
- i18n/languages/woocommerce-mercadopago-es_ES.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_ES.po +2 -2
- i18n/languages/woocommerce-mercadopago-es_MX.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_MX.po +2 -2
- i18n/languages/woocommerce-mercadopago-es_PE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_PE.po +2 -2
- i18n/languages/woocommerce-mercadopago-es_UY.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_UY.po +2 -2
- i18n/languages/woocommerce-mercadopago-es_VE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_VE.po +2 -2
- i18n/languages/woocommerce-mercadopago-pt_BR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.po +2 -2
- i18n/languages/woocommerce-mercadopago.pot +39 -39
- includes/module/WC_WooMercadoPago_Module.php +42 -43
- includes/module/config/WC_WooMercadoPago_Constants.php +3 -2
- includes/module/preference/WC_WooMercadoPago_PreferenceAbstract.php +13 -6
- includes/module/preference/analytics/WC_WooMercadoPago_PreferenceAnalytics.php +32 -0
- includes/module/sdk/lib/RestClient/AbstractRestClient.php +5 -5
- includes/notification/WC_WooMercadoPago_Notification_Abstract.php +2 -1
- readme.txt +8 -1
- woocommerce-mercadopago.php +2 -2
i18n/languages/woocommerce-mercadopago-es_AR.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_AR.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:54-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-es_CL.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CL.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:55-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-es_CO.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CO.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:55-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-es_ES.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_ES.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:55-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-es_MX.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_MX.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:55-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-es_PE.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_PE.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:55-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-es_UY.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_UY.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:56-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-es_VE.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-es_VE.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:56-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago-pt_BR.mo
CHANGED
|
Binary file
|
i18n/languages/woocommerce-mercadopago-pt_BR.po
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
-
"PO-Revision-Date: 2020-09-
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
| 2 |
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.4.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
|
| 7 |
"Language-Team: \n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
|
| 12 |
+
"PO-Revision-Date: 2020-09-18 09:56-0300\n"
|
| 13 |
"X-Generator: Poedit 2.4.1\n"
|
| 14 |
"X-Domain: woocommerce-mercadopago\n"
|
| 15 |
"Last-Translator: \n"
|
i18n/languages/woocommerce-mercadopago.pot
CHANGED
|
@@ -54,159 +54,159 @@ msgstr ""
|
|
| 54 |
msgid "Cancel order"
|
| 55 |
msgstr ""
|
| 56 |
|
| 57 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 58 |
msgid "Fill in your credentials to enable payment methods."
|
| 59 |
msgstr ""
|
| 60 |
|
| 61 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 62 |
msgid "Set up"
|
| 63 |
msgstr ""
|
| 64 |
|
| 65 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 66 |
msgid "Your opinion helps us get better"
|
| 67 |
msgstr ""
|
| 68 |
|
| 69 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 70 |
msgid "Guides and Documentation"
|
| 71 |
msgstr ""
|
| 72 |
|
| 73 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 74 |
msgid "Report Problem"
|
| 75 |
msgstr ""
|
| 76 |
|
| 77 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 78 |
msgid "By Mercado Pago"
|
| 79 |
msgstr ""
|
| 80 |
|
| 81 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 82 |
msgid "The <strong> Sponsor ID </strong> must be valid!"
|
| 83 |
msgstr ""
|
| 84 |
|
| 85 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 86 |
msgid "The <strong>Sponsor ID</strong> must be from the same country as the seller!"
|
| 87 |
msgstr ""
|
| 88 |
|
| 89 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 90 |
msgid "The payment method is not valid or not available."
|
| 91 |
msgstr ""
|
| 92 |
|
| 93 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 94 |
msgid "The transaction amount cannot be processed by Mercado Pago."
|
| 95 |
msgstr ""
|
| 96 |
|
| 97 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 98 |
msgid "Possible causes: Currency not supported; Amounts below the minimum or above the maximum allowed."
|
| 99 |
msgstr ""
|
| 100 |
|
| 101 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 102 |
msgid "The users are not valid."
|
| 103 |
msgstr ""
|
| 104 |
|
| 105 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 106 |
msgid "Possible causes: Buyer and seller have the same account in Mercado Pago; The transaction involving production and test users."
|
| 107 |
msgstr ""
|
| 108 |
|
| 109 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 110 |
msgid "Unauthorized use of production credentials."
|
| 111 |
msgstr ""
|
| 112 |
|
| 113 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 114 |
msgid "Possible causes: Use permission in use for the credential of the seller."
|
| 115 |
msgstr ""
|
| 116 |
|
| 117 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 118 |
msgid "ERROR: It was not possible to convert the unsupported currency"
|
| 119 |
msgstr ""
|
| 120 |
|
| 121 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 122 |
msgid "a"
|
| 123 |
msgstr ""
|
| 124 |
|
| 125 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 126 |
msgid "Currency conversions should be done outside of this module."
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 130 |
msgid "ATTENTION: The currency"
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 134 |
msgid "defined in WooCommerce is different from that used by the credentials of your country.<br>The currency for transactions made with this payment method will be"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 138 |
msgid "CONVERTED CURRENCY: Your store is converting currency of"
|
| 139 |
msgstr ""
|
| 140 |
|
| 141 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 142 |
msgid "for"
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 146 |
msgid "Colombia"
|
| 147 |
msgstr ""
|
| 148 |
|
| 149 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 150 |
msgid "Argentina"
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 154 |
msgid "Brazil"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 158 |
msgid "Chile"
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 162 |
msgid "Mexico"
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 166 |
msgid "Uruguay"
|
| 167 |
msgstr ""
|
| 168 |
|
| 169 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 170 |
msgid "Venezuela"
|
| 171 |
msgstr ""
|
| 172 |
|
| 173 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 174 |
msgid "Peru"
|
| 175 |
msgstr ""
|
| 176 |
|
| 177 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
| 178 |
msgid "Update the WooCommerce order to "
|
| 179 |
msgstr ""
|
| 180 |
|
| 181 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 182 |
msgid "Payment approved."
|
| 183 |
msgstr ""
|
| 184 |
|
| 185 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 186 |
msgid "Waiting for the ticket payment."
|
| 187 |
msgstr ""
|
| 188 |
|
| 189 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 190 |
msgid "The customer has not made the payment yet."
|
| 191 |
msgstr ""
|
| 192 |
|
| 193 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 194 |
msgid "Payment is pending review."
|
| 195 |
msgstr ""
|
| 196 |
|
| 197 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 198 |
msgid "Payment was declined. The customer can try again."
|
| 199 |
msgstr ""
|
| 200 |
|
| 201 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 202 |
msgid "Payment was returned to the customer."
|
| 203 |
msgstr ""
|
| 204 |
|
| 205 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 206 |
msgid "Payment was canceled."
|
| 207 |
msgstr ""
|
| 208 |
|
| 209 |
-
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:
|
| 210 |
msgid "The payment is in mediation or the purchase was unknown by the customer."
|
| 211 |
msgstr ""
|
| 212 |
|
| 54 |
msgid "Cancel order"
|
| 55 |
msgstr ""
|
| 56 |
|
| 57 |
+
#: includes/module/WC_WooMercadoPago_Module.php:239, includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:405
|
| 58 |
msgid "Fill in your credentials to enable payment methods."
|
| 59 |
msgstr ""
|
| 60 |
|
| 61 |
+
#: includes/module/WC_WooMercadoPago_Module.php:248
|
| 62 |
msgid "Set up"
|
| 63 |
msgstr ""
|
| 64 |
|
| 65 |
+
#: includes/module/WC_WooMercadoPago_Module.php:249
|
| 66 |
msgid "Your opinion helps us get better"
|
| 67 |
msgstr ""
|
| 68 |
|
| 69 |
+
#: includes/module/WC_WooMercadoPago_Module.php:250
|
| 70 |
msgid "Guides and Documentation"
|
| 71 |
msgstr ""
|
| 72 |
|
| 73 |
+
#: includes/module/WC_WooMercadoPago_Module.php:251
|
| 74 |
msgid "Report Problem"
|
| 75 |
msgstr ""
|
| 76 |
|
| 77 |
+
#: includes/module/WC_WooMercadoPago_Module.php:323
|
| 78 |
msgid "By Mercado Pago"
|
| 79 |
msgstr ""
|
| 80 |
|
| 81 |
+
#: includes/module/WC_WooMercadoPago_Module.php:348, includes/module/WC_WooMercadoPago_Module.php:369
|
| 82 |
msgid "The <strong> Sponsor ID </strong> must be valid!"
|
| 83 |
msgstr ""
|
| 84 |
|
| 85 |
+
#: includes/module/WC_WooMercadoPago_Module.php:365
|
| 86 |
msgid "The <strong>Sponsor ID</strong> must be from the same country as the seller!"
|
| 87 |
msgstr ""
|
| 88 |
|
| 89 |
+
#: includes/module/WC_WooMercadoPago_Module.php:396
|
| 90 |
msgid "The payment method is not valid or not available."
|
| 91 |
msgstr ""
|
| 92 |
|
| 93 |
+
#: includes/module/WC_WooMercadoPago_Module.php:399
|
| 94 |
msgid "The transaction amount cannot be processed by Mercado Pago."
|
| 95 |
msgstr ""
|
| 96 |
|
| 97 |
+
#: includes/module/WC_WooMercadoPago_Module.php:400
|
| 98 |
msgid "Possible causes: Currency not supported; Amounts below the minimum or above the maximum allowed."
|
| 99 |
msgstr ""
|
| 100 |
|
| 101 |
+
#: includes/module/WC_WooMercadoPago_Module.php:403
|
| 102 |
msgid "The users are not valid."
|
| 103 |
msgstr ""
|
| 104 |
|
| 105 |
+
#: includes/module/WC_WooMercadoPago_Module.php:404
|
| 106 |
msgid "Possible causes: Buyer and seller have the same account in Mercado Pago; The transaction involving production and test users."
|
| 107 |
msgstr ""
|
| 108 |
|
| 109 |
+
#: includes/module/WC_WooMercadoPago_Module.php:407
|
| 110 |
msgid "Unauthorized use of production credentials."
|
| 111 |
msgstr ""
|
| 112 |
|
| 113 |
+
#: includes/module/WC_WooMercadoPago_Module.php:408
|
| 114 |
msgid "Possible causes: Use permission in use for the credential of the seller."
|
| 115 |
msgstr ""
|
| 116 |
|
| 117 |
+
#: includes/module/WC_WooMercadoPago_Module.php:526
|
| 118 |
msgid "ERROR: It was not possible to convert the unsupported currency"
|
| 119 |
msgstr ""
|
| 120 |
|
| 121 |
+
#: includes/module/WC_WooMercadoPago_Module.php:528
|
| 122 |
msgid "a"
|
| 123 |
msgstr ""
|
| 124 |
|
| 125 |
+
#: includes/module/WC_WooMercadoPago_Module.php:529, includes/module/WC_WooMercadoPago_Module.php:540
|
| 126 |
msgid "Currency conversions should be done outside of this module."
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
+
#: includes/module/WC_WooMercadoPago_Module.php:536
|
| 130 |
msgid "ATTENTION: The currency"
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
+
#: includes/module/WC_WooMercadoPago_Module.php:538
|
| 134 |
msgid "defined in WooCommerce is different from that used by the credentials of your country.<br>The currency for transactions made with this payment method will be"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
+
#: includes/module/WC_WooMercadoPago_Module.php:547
|
| 138 |
msgid "CONVERTED CURRENCY: Your store is converting currency of"
|
| 139 |
msgstr ""
|
| 140 |
|
| 141 |
+
#: includes/module/WC_WooMercadoPago_Module.php:549, templates/checkout/custom_checkout.php:135
|
| 142 |
msgid "for"
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
+
#: includes/module/WC_WooMercadoPago_Module.php:556, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:515
|
| 146 |
msgid "Colombia"
|
| 147 |
msgstr ""
|
| 148 |
|
| 149 |
+
#: includes/module/WC_WooMercadoPago_Module.php:558, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:512
|
| 150 |
msgid "Argentina"
|
| 151 |
msgstr ""
|
| 152 |
|
| 153 |
+
#: includes/module/WC_WooMercadoPago_Module.php:560, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:513
|
| 154 |
msgid "Brazil"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
+
#: includes/module/WC_WooMercadoPago_Module.php:562, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:514
|
| 158 |
msgid "Chile"
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
+
#: includes/module/WC_WooMercadoPago_Module.php:564, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:516
|
| 162 |
msgid "Mexico"
|
| 163 |
msgstr ""
|
| 164 |
|
| 165 |
+
#: includes/module/WC_WooMercadoPago_Module.php:566, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:518
|
| 166 |
msgid "Uruguay"
|
| 167 |
msgstr ""
|
| 168 |
|
| 169 |
+
#: includes/module/WC_WooMercadoPago_Module.php:568
|
| 170 |
msgid "Venezuela"
|
| 171 |
msgstr ""
|
| 172 |
|
| 173 |
+
#: includes/module/WC_WooMercadoPago_Module.php:570, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:517
|
| 174 |
msgid "Peru"
|
| 175 |
msgstr ""
|
| 176 |
|
| 177 |
+
#: includes/module/WC_WooMercadoPago_Module.php:605
|
| 178 |
msgid "Update the WooCommerce order to "
|
| 179 |
msgstr ""
|
| 180 |
|
| 181 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:142
|
| 182 |
msgid "Payment approved."
|
| 183 |
msgstr ""
|
| 184 |
|
| 185 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:187, includes/notification/WC_WooMercadoPago_Notification_Abstract.php:190
|
| 186 |
msgid "Waiting for the ticket payment."
|
| 187 |
msgstr ""
|
| 188 |
|
| 189 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:196
|
| 190 |
msgid "The customer has not made the payment yet."
|
| 191 |
msgstr ""
|
| 192 |
|
| 193 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:207
|
| 194 |
msgid "Payment is pending review."
|
| 195 |
msgstr ""
|
| 196 |
|
| 197 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:216
|
| 198 |
msgid "Payment was declined. The customer can try again."
|
| 199 |
msgstr ""
|
| 200 |
|
| 201 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:225
|
| 202 |
msgid "Payment was returned to the customer."
|
| 203 |
msgstr ""
|
| 204 |
|
| 205 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:234
|
| 206 |
msgid "Payment was canceled."
|
| 207 |
msgstr ""
|
| 208 |
|
| 209 |
+
#: includes/notification/WC_WooMercadoPago_Notification_Abstract.php:244, includes/notification/WC_WooMercadoPago_Notification_Abstract.php:254
|
| 210 |
msgid "The payment is in mediation or the purchase was unknown by the customer."
|
| 211 |
msgstr ""
|
| 212 |
|
includes/module/WC_WooMercadoPago_Module.php
CHANGED
|
@@ -167,6 +167,7 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
|
|
| 167 |
include_once dirname(__FILE__) . '/preference/WC_WooMercadoPago_PreferenceBasic.php';
|
| 168 |
include_once dirname(__FILE__) . '/preference/WC_WooMercadoPago_PreferenceCustom.php';
|
| 169 |
include_once dirname(__FILE__) . '/preference/WC_WooMercadoPago_PreferenceTicket.php';
|
|
|
|
| 170 |
}
|
| 171 |
|
| 172 |
/**
|
|
@@ -226,21 +227,6 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
|
|
| 226 |
*/
|
| 227 |
public function filterPaymentMethodByShipping($methods)
|
| 228 |
{
|
| 229 |
-
$session = WC()->session;
|
| 230 |
-
if (!isset($session)) {
|
| 231 |
-
return $methods;
|
| 232 |
-
}
|
| 233 |
-
$chosen_methods = $session->get('chosen_shipping_methods');
|
| 234 |
-
$chosen_shipping = $chosen_methods[0];
|
| 235 |
-
if (strpos($chosen_shipping, 'woo-mercado-pago-me-normal') !== false || strpos($chosen_shipping, 'woo-mercado-pago-me-express') !== false) {
|
| 236 |
-
$new_array = array();
|
| 237 |
-
foreach ($methods as $payment_method => $payment_method_object) {
|
| 238 |
-
if ($payment_method == 'woo-mercado-pago-basic') {
|
| 239 |
-
$new_array['woo-mercado-pago-basic'] = $payment_method_object;
|
| 240 |
-
}
|
| 241 |
-
}
|
| 242 |
-
return $new_array;
|
| 243 |
-
}
|
| 244 |
return $methods;
|
| 245 |
}
|
| 246 |
|
|
@@ -594,34 +580,34 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
|
|
| 594 |
$gateway_name . '</a>';
|
| 595 |
}
|
| 596 |
|
| 597 |
-
public static function get_map($selector_id)
|
| 598 |
-
{
|
| 599 |
-
$html = '';
|
| 600 |
-
$arr = explode('_', $selector_id);
|
| 601 |
-
$defaults = array(
|
| 602 |
-
'pending' => 'pending',
|
| 603 |
-
'approved' => 'processing',
|
| 604 |
-
'inprocess' => 'on_hold',
|
| 605 |
-
'inmediation' => 'on_hold',
|
| 606 |
-
'rejected' => 'failed',
|
| 607 |
-
'cancelled' => 'cancelled',
|
| 608 |
-
'refunded' => 'refunded',
|
| 609 |
-
'chargedback' => 'refunded'
|
| 610 |
-
);
|
| 611 |
-
$selection = get_option('_mp_' . $selector_id, $defaults[$arr[2]]);
|
| 612 |
-
|
| 613 |
-
foreach (wc_get_order_statuses() as $slug => $status) {
|
| 614 |
-
$slug = str_replace(array('wc-', '-'), array('', '_'), $slug);
|
| 615 |
-
$html .= sprintf(
|
| 616 |
-
'<option value="%s"%s>%s %s</option>',
|
| 617 |
-
$slug,
|
| 618 |
-
selected($selection, $slug, false),
|
| 619 |
-
__('Update the WooCommerce order to ', 'woocommerce-mercadopago'),
|
| 620 |
-
$status
|
| 621 |
-
);
|
| 622 |
-
}
|
| 623 |
-
|
| 624 |
-
return $html;
|
| 625 |
}
|
| 626 |
|
| 627 |
public static function generate_refund_cancel_subscription($domain, $success_msg, $fail_msg, $options, $str1, $str2, $str3, $str4)
|
|
@@ -816,4 +802,17 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
|
|
| 816 |
}
|
| 817 |
return true;
|
| 818 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 819 |
}
|
| 167 |
include_once dirname(__FILE__) . '/preference/WC_WooMercadoPago_PreferenceBasic.php';
|
| 168 |
include_once dirname(__FILE__) . '/preference/WC_WooMercadoPago_PreferenceCustom.php';
|
| 169 |
include_once dirname(__FILE__) . '/preference/WC_WooMercadoPago_PreferenceTicket.php';
|
| 170 |
+
include_once dirname(__FILE__) . '/preference/analytics/WC_WooMercadoPago_PreferenceAnalytics.php';
|
| 171 |
}
|
| 172 |
|
| 173 |
/**
|
| 227 |
*/
|
| 228 |
public function filterPaymentMethodByShipping($methods)
|
| 229 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
return $methods;
|
| 231 |
}
|
| 232 |
|
| 580 |
$gateway_name . '</a>';
|
| 581 |
}
|
| 582 |
|
| 583 |
+
public static function get_map($selector_id)
|
| 584 |
+
{
|
| 585 |
+
$html = '';
|
| 586 |
+
$arr = explode('_', $selector_id);
|
| 587 |
+
$defaults = array(
|
| 588 |
+
'pending' => 'pending',
|
| 589 |
+
'approved' => 'processing',
|
| 590 |
+
'inprocess' => 'on_hold',
|
| 591 |
+
'inmediation' => 'on_hold',
|
| 592 |
+
'rejected' => 'failed',
|
| 593 |
+
'cancelled' => 'cancelled',
|
| 594 |
+
'refunded' => 'refunded',
|
| 595 |
+
'chargedback' => 'refunded'
|
| 596 |
+
);
|
| 597 |
+
$selection = get_option('_mp_' . $selector_id, $defaults[$arr[2]]);
|
| 598 |
+
|
| 599 |
+
foreach (wc_get_order_statuses() as $slug => $status) {
|
| 600 |
+
$slug = str_replace(array('wc-', '-'), array('', '_'), $slug);
|
| 601 |
+
$html .= sprintf(
|
| 602 |
+
'<option value="%s"%s>%s %s</option>',
|
| 603 |
+
$slug,
|
| 604 |
+
selected($selection, $slug, false),
|
| 605 |
+
__('Update the WooCommerce order to ', 'woocommerce-mercadopago'),
|
| 606 |
+
$status
|
| 607 |
+
);
|
| 608 |
+
}
|
| 609 |
+
|
| 610 |
+
return $html;
|
| 611 |
}
|
| 612 |
|
| 613 |
public static function generate_refund_cancel_subscription($domain, $success_msg, $fail_msg, $options, $str1, $str2, $str3, $str4)
|
| 802 |
}
|
| 803 |
return true;
|
| 804 |
}
|
| 805 |
+
|
| 806 |
+
/**
|
| 807 |
+
* @return bool
|
| 808 |
+
*/
|
| 809 |
+
public static function is_mobile()
|
| 810 |
+
{
|
| 811 |
+
$mobile = false;
|
| 812 |
+
$user_agent = $_SERVER['HTTP_USER_AGENT'];
|
| 813 |
+
if (preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i', $user_agent) || preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i', substr($user_agent, 0, 4))) {
|
| 814 |
+
$mobile = true;
|
| 815 |
+
}
|
| 816 |
+
return $mobile;
|
| 817 |
+
}
|
| 818 |
}
|
includes/module/config/WC_WooMercadoPago_Constants.php
CHANGED
|
@@ -9,9 +9,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 9 |
*/
|
| 10 |
class WC_WooMercadoPago_Constants
|
| 11 |
{
|
| 12 |
-
const
|
|
|
|
| 13 |
const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
|
| 14 |
-
const VERSION = '4.
|
| 15 |
const MIN_PHP = 5.6;
|
| 16 |
const API_MP_BASE_URL = 'https://api.mercadopago.com';
|
| 17 |
}
|
| 9 |
*/
|
| 10 |
class WC_WooMercadoPago_Constants
|
| 11 |
{
|
| 12 |
+
const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
|
| 13 |
+
const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
|
| 14 |
const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
|
| 15 |
+
const VERSION = '4.4.0';
|
| 16 |
const MIN_PHP = 5.6;
|
| 17 |
const API_MP_BASE_URL = 'https://api.mercadopago.com';
|
| 18 |
}
|
includes/module/preference/WC_WooMercadoPago_PreferenceAbstract.php
CHANGED
|
@@ -201,7 +201,7 @@ abstract class WC_WooMercadoPago_PreferenceAbstract extends WC_Payment_Gateway
|
|
| 201 |
substr($product_content, 0, 230) . '...' : $product_content
|
| 202 |
)),
|
| 203 |
'picture_url' => sizeof($this->order->get_items()) > 1 ?
|
| 204 |
-
plugins_url('assets/images/cart.png', plugin_dir_path(__FILE__)) : wp_get_attachment_url($product->get_image_id()),
|
| 205 |
'category_id' => get_option('_mp_category_id', 'others'),
|
| 206 |
'quantity' => 1,
|
| 207 |
'unit_price' => $this->number_format_value($item_amount),
|
|
@@ -400,15 +400,19 @@ abstract class WC_WooMercadoPago_PreferenceAbstract extends WC_Payment_Gateway
|
|
| 400 |
public function get_internal_metadata()
|
| 401 |
{
|
| 402 |
$accessToken = get_option('_mp_access_token_prod', '');
|
| 403 |
-
if (empty($accessToken)) {
|
| 404 |
-
return null;
|
| 405 |
-
}
|
| 406 |
-
|
| 407 |
$test_mode = false;
|
|
|
|
| 408 |
if ($this->payment->getOption('checkout_credential_prod', '') == 'no') {
|
| 409 |
$test_mode = true;
|
|
|
|
| 410 |
}
|
| 411 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
$seller = explode('-', $accessToken);
|
| 413 |
$w = WC_WooMercadoPago_Module::woocommerce_instance();
|
| 414 |
$internal_metadata = array(
|
|
@@ -419,7 +423,10 @@ abstract class WC_WooMercadoPago_PreferenceAbstract extends WC_Payment_Gateway
|
|
| 419 |
"sponsor_id" => $this->get_sponsor_id(),
|
| 420 |
"collector" => end($seller),
|
| 421 |
"test_mode" => $test_mode,
|
| 422 |
-
"details" => ""
|
|
|
|
|
|
|
|
|
|
| 423 |
);
|
| 424 |
|
| 425 |
return $internal_metadata;
|
| 201 |
substr($product_content, 0, 230) . '...' : $product_content
|
| 202 |
)),
|
| 203 |
'picture_url' => sizeof($this->order->get_items()) > 1 ?
|
| 204 |
+
plugins_url('../../assets/images/cart.png', plugin_dir_path(__FILE__)) : wp_get_attachment_url($product->get_image_id()),
|
| 205 |
'category_id' => get_option('_mp_category_id', 'others'),
|
| 206 |
'quantity' => 1,
|
| 207 |
'unit_price' => $this->number_format_value($item_amount),
|
| 400 |
public function get_internal_metadata()
|
| 401 |
{
|
| 402 |
$accessToken = get_option('_mp_access_token_prod', '');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
$test_mode = false;
|
| 404 |
+
|
| 405 |
if ($this->payment->getOption('checkout_credential_prod', '') == 'no') {
|
| 406 |
$test_mode = true;
|
| 407 |
+
$accessToken = get_option('_mp_access_token_test', '');
|
| 408 |
}
|
| 409 |
|
| 410 |
+
if (empty($accessToken)) {
|
| 411 |
+
return [];
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
$analytics = new WC_WooMercadoPago_PreferenceAnalytics();
|
| 415 |
+
|
| 416 |
$seller = explode('-', $accessToken);
|
| 417 |
$w = WC_WooMercadoPago_Module::woocommerce_instance();
|
| 418 |
$internal_metadata = array(
|
| 423 |
"sponsor_id" => $this->get_sponsor_id(),
|
| 424 |
"collector" => end($seller),
|
| 425 |
"test_mode" => $test_mode,
|
| 426 |
+
"details" => "",
|
| 427 |
+
"basic_settings" => json_encode($analytics->getBasicSettings(), true),
|
| 428 |
+
"custom_settings" => json_encode($analytics->getCustomSettings(), true),
|
| 429 |
+
"ticket_settings" => json_encode($analytics->getTicketSettings(), true)
|
| 430 |
);
|
| 431 |
|
| 432 |
return $internal_metadata;
|
includes/module/preference/analytics/WC_WooMercadoPago_PreferenceAnalytics.php
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
if (!defined('ABSPATH')) {
|
| 4 |
+
exit;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
class WC_WooMercadoPago_PreferenceAnalytics {
|
| 8 |
+
public static $ignoreFields = ['_mp_public_key_prod', '_mp_public_key_test', 'title','description', '_mp_access_token_prod', '_mp_access_token_test'];
|
| 9 |
+
|
| 10 |
+
public function getBasicSettings(){
|
| 11 |
+
return $this->getSettings('woocommerce_woo-mercado-pago-basic_settings');
|
| 12 |
+
}
|
| 13 |
+
public function getCustomSettings(){
|
| 14 |
+
return $this->getSettings('woocommerce_woo-mercado-pago-custom_settings');
|
| 15 |
+
}
|
| 16 |
+
public function getTicketSettings(){
|
| 17 |
+
return $this->getSettings('woocommerce_woo-mercado-pago-ticket_settings');
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
public function getSettings($option){
|
| 21 |
+
|
| 22 |
+
$db_options = get_option($option, []);
|
| 23 |
+
|
| 24 |
+
$validValues = array();
|
| 25 |
+
foreach ($db_options as $key => $value) {
|
| 26 |
+
if (!empty($value) && !in_array($key, WC_WooMercadoPago_PreferenceAnalytics::$ignoreFields)) {
|
| 27 |
+
$validValues[$key] = $value;
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
return $validValues;
|
| 31 |
+
}
|
| 32 |
+
}
|
includes/module/sdk/lib/RestClient/AbstractRestClient.php
CHANGED
|
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 15 |
* Class AbstractRestClient
|
| 16 |
*/
|
| 17 |
class AbstractRestClient
|
| 18 |
-
{
|
| 19 |
public static $email_admin = '';
|
| 20 |
public static $site_locale = '';
|
| 21 |
public static $check_loop = 0;
|
|
@@ -34,7 +34,7 @@ class AbstractRestClient
|
|
| 34 |
return null;
|
| 35 |
}
|
| 36 |
}
|
| 37 |
-
|
| 38 |
/**
|
| 39 |
* @param $request
|
| 40 |
* @return false|resource
|
|
@@ -56,11 +56,11 @@ class AbstractRestClient
|
|
| 56 |
|
| 57 |
$headers = array('accept: application/json');
|
| 58 |
if ($request['method'] == 'POST' ) {
|
| 59 |
-
$headers[] = 'x-product-id:' . WC_WooMercadoPago_Constants::
|
| 60 |
$headers[] = 'x-platform-id:' . WC_WooMercadoPago_Constants::PLATAFORM_ID;
|
| 61 |
-
$headers[] = 'x-integrator-id:' . get_option('_mp_integrator_id', null);
|
| 62 |
}
|
| 63 |
-
|
| 64 |
$json_content = true;
|
| 65 |
$form_content = false;
|
| 66 |
$default_content_type = true;
|
| 15 |
* Class AbstractRestClient
|
| 16 |
*/
|
| 17 |
class AbstractRestClient
|
| 18 |
+
{
|
| 19 |
public static $email_admin = '';
|
| 20 |
public static $site_locale = '';
|
| 21 |
public static $check_loop = 0;
|
| 34 |
return null;
|
| 35 |
}
|
| 36 |
}
|
| 37 |
+
|
| 38 |
/**
|
| 39 |
* @param $request
|
| 40 |
* @return false|resource
|
| 56 |
|
| 57 |
$headers = array('accept: application/json');
|
| 58 |
if ($request['method'] == 'POST' ) {
|
| 59 |
+
$headers[] = 'x-product-id:' . (WC_WooMercadoPago_Module::is_mobile() ? WC_WooMercadoPago_Constants::PRODUCT_ID_MOBILE : WC_WooMercadoPago_Constants::PRODUCT_ID_DESKTOP);
|
| 60 |
$headers[] = 'x-platform-id:' . WC_WooMercadoPago_Constants::PLATAFORM_ID;
|
| 61 |
+
$headers[] = 'x-integrator-id:' . get_option('_mp_integrator_id', null);
|
| 62 |
}
|
| 63 |
+
|
| 64 |
$json_content = true;
|
| 65 |
$form_content = false;
|
| 66 |
$default_content_type = true;
|
includes/notification/WC_WooMercadoPago_Notification_Abstract.php
CHANGED
|
@@ -96,6 +96,7 @@ abstract class WC_WooMercadoPago_Notification_Abstract
|
|
| 96 |
* @param $processed_status
|
| 97 |
* @param $data
|
| 98 |
* @param $order
|
|
|
|
| 99 |
*/
|
| 100 |
public function proccessStatus($processed_status, $data, $order)
|
| 101 |
{
|
|
@@ -127,7 +128,7 @@ abstract class WC_WooMercadoPago_Notification_Abstract
|
|
| 127 |
$this->mp_rule_charged_back($order);
|
| 128 |
break;
|
| 129 |
default:
|
| 130 |
-
|
| 131 |
}
|
| 132 |
}
|
| 133 |
|
| 96 |
* @param $processed_status
|
| 97 |
* @param $data
|
| 98 |
* @param $order
|
| 99 |
+
* @throws WC_WooMercadoPago_Exception
|
| 100 |
*/
|
| 101 |
public function proccessStatus($processed_status, $data, $order)
|
| 102 |
{
|
| 128 |
$this->mp_rule_charged_back($order);
|
| 129 |
break;
|
| 130 |
default:
|
| 131 |
+
throw new WC_WooMercadoPago_Exception('Process Status - Invalid Status: ' . $processed_status);
|
| 132 |
}
|
| 133 |
}
|
| 134 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce
|
|
| 4 |
Requires at least: 4.9.10
|
| 5 |
Tested up to: 5.5
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 4.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -115,6 +115,13 @@ Set up both the plugin and the checkouts you want to activate on your payment av
|
|
| 115 |
Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
|
| 116 |
|
| 117 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
= v4.3.1 (10/09/2020) =
|
| 119 |
* Bug fixes
|
| 120 |
- Adjusted inventory (for canceled orders) on payments made at the personalized offline checkout
|
| 4 |
Requires at least: 4.9.10
|
| 5 |
Tested up to: 5.5
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 4.4.0
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 115 |
Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks/plugins/official/woo-commerce/">official documentation</a> for more information on the specific fields to configure.
|
| 116 |
|
| 117 |
== Changelog ==
|
| 118 |
+
= v4.4.0 (21/09/2020) =
|
| 119 |
+
* Features
|
| 120 |
+
- Compatibility with WooCommerce v4.5.x
|
| 121 |
+
|
| 122 |
+
* Bug fixes
|
| 123 |
+
- Adjusted error when shipping is not used
|
| 124 |
+
|
| 125 |
= v4.3.1 (10/09/2020) =
|
| 126 |
* Bug fixes
|
| 127 |
- Adjusted inventory (for canceled orders) on payments made at the personalized offline checkout
|
woocommerce-mercadopago.php
CHANGED
|
@@ -4,13 +4,13 @@
|
|
| 4 |
* Plugin Name: Mercado Pago payments for WooCommerce
|
| 5 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
| 6 |
* Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
|
| 7 |
-
* Version: 4.
|
| 8 |
* Author: Mercado Pago
|
| 9 |
* Author URI: https://developers.mercadopago.com/
|
| 10 |
* Text Domain: woocommerce-mercadopago
|
| 11 |
* Domain Path: /i18n/languages/
|
| 12 |
* WC requires at least: 3.0.0
|
| 13 |
-
* WC tested up to: 4.
|
| 14 |
* @package MercadoPago
|
| 15 |
* @category Core
|
| 16 |
* @author Mercado Pago
|
| 4 |
* Plugin Name: Mercado Pago payments for WooCommerce
|
| 5 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
| 6 |
* Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
|
| 7 |
+
* Version: 4.4.0
|
| 8 |
* Author: Mercado Pago
|
| 9 |
* Author URI: https://developers.mercadopago.com/
|
| 10 |
* Text Domain: woocommerce-mercadopago
|
| 11 |
* Domain Path: /i18n/languages/
|
| 12 |
* WC requires at least: 3.0.0
|
| 13 |
+
* WC tested up to: 4.5.0
|
| 14 |
* @package MercadoPago
|
| 15 |
* @category Core
|
| 16 |
* @author Mercado Pago
|
