Version Description
Download this release
Release Info
Developer | mercadopago |
Plugin | WooCommerce MercadoPago |
Version | 3.0.11 |
Comparing to | |
See all releases |
Code changes from version 3.0.10 to 3.0.11
- i18n/languages/woocommerce-mercadopago-es_AR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_AR.po +21 -0
- i18n/languages/woocommerce-mercadopago-es_CL.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CL.po +21 -0
- i18n/languages/woocommerce-mercadopago-es_CO.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CO.po +21 -0
- i18n/languages/woocommerce-mercadopago-es_ES.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_ES.po +21 -0
- i18n/languages/woocommerce-mercadopago-es_MX.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_MX.po +21 -0
- i18n/languages/woocommerce-mercadopago-es_PE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_PE.po +21 -0
- i18n/languages/woocommerce-mercadopago-es_UY.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_UY.po +21 -0
- i18n/languages/woocommerce-mercadopago-es_VE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_VE.po +21 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.po +21 -0
- i18n/languages/woocommerce-mercadopago.pot +21 -0
- includes/WC_WooMercadoPago_CustomGateway.php +13 -5
- includes/WC_WooMercadoPago_TicketGateway.php +5 -4
- includes/sdk/lib/mercadopago.php +1 -1
- readme.txt +6 -1
- woocommerce-mercadopago.php +23 -2
i18n/languages/woocommerce-mercadopago-es_AR.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_AR.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-es_CL.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CL.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-es_CO.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_CO.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-es_ES.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_ES.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-es_MX.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_MX.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-es_PE.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_PE.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-es_UY.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_UY.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-es_VE.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-es_VE.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Información obligatoria"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmación después de la aprobación"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "El medio de pago no es válido o no está disponible."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "El monto de transacción no puede ser procesado por Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Los usuários no son válidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso no autorizado de credenciales de producción."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Posibles causas: Moneda no soportada; Montos por debajo del mínimo o por encima del máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Posibles causas: Comprador y vendedor tienen la misma cuenta en Mercado Pago; La transacción involucrando usuários de producción y de prueba."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Posibles causas: Pendencia de permiso de uso en producción para la credencial del vendedor."
|
i18n/languages/woocommerce-mercadopago-pt_BR.mo
CHANGED
Binary file
|
i18n/languages/woocommerce-mercadopago-pt_BR.po
CHANGED
@@ -1038,3 +1038,24 @@ msgstr "Informações obrigatórias"
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmação após aprovação do pagamento"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr "Nota: confirmação após aprovação do pagamento"
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr "O meio de pagamento não é válido ou está indisponível."
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr "O valor da transação não pode ser processado pelo Mercado Pago."
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr "Os usuários envolvidos são inválidos."
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr "Uso não autorizado de credenciais de produção."
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr "Possíveis causas: Moeda não suportada; Valores abaixo do mínimo ou acima do máximo permitido."
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr "Possíveis causas: Comprador e vendedor têm o mesmo email no Mercado Pago; Transação envolvendo usuários de produção e usuários de teste."
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr "Possíveis causas: Pendência de permissão de uso em produção para a credencial do vendedor."
|
i18n/languages/woocommerce-mercadopago.pot
CHANGED
@@ -1038,3 +1038,24 @@ msgstr ""
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1038 |
|
1039 |
msgid "Note: Confirmation under payment approval."
|
1040 |
msgstr ""
|
1041 |
+
|
1042 |
+
msgid "Invalid payment_method_id"
|
1043 |
+
msgstr ""
|
1044 |
+
|
1045 |
+
msgid "Invalid transaction_amount"
|
1046 |
+
msgstr ""
|
1047 |
+
|
1048 |
+
msgid "Invalid users involved"
|
1049 |
+
msgstr ""
|
1050 |
+
|
1051 |
+
msgid "Unauthorized use of live credentials"
|
1052 |
+
msgstr ""
|
1053 |
+
|
1054 |
+
msgid "Posible causes: Currency not supported; Values under the minimal or above the maximun allowed."
|
1055 |
+
msgstr ""
|
1056 |
+
|
1057 |
+
msgid "Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users."
|
1058 |
+
msgstr ""
|
1059 |
+
|
1060 |
+
msgid "Posible causes: Pending permission of use in production of the seller credentials."
|
1061 |
+
msgstr ""
|
includes/WC_WooMercadoPago_CustomGateway.php
CHANGED
@@ -606,6 +606,8 @@ class WC_WooMercadoPago_CustomGateway extends WC_Payment_Gateway {
|
|
606 |
case 'cancelled':
|
607 |
case 'in_mediation':
|
608 |
case 'charged-back':
|
|
|
|
|
609 |
break;
|
610 |
default:
|
611 |
break;
|
@@ -614,7 +616,8 @@ class WC_WooMercadoPago_CustomGateway extends WC_Payment_Gateway {
|
|
614 |
// Process when fields are imcomplete.
|
615 |
wc_add_notice(
|
616 |
'<p>' .
|
617 |
-
__( 'A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?', 'woocommerce-mercadopago' ) . ' MERCADO PAGO: ' .
|
|
|
618 |
'</p>',
|
619 |
'error'
|
620 |
);
|
@@ -627,7 +630,7 @@ class WC_WooMercadoPago_CustomGateway extends WC_Payment_Gateway {
|
|
627 |
// Process when fields are imcomplete.
|
628 |
wc_add_notice(
|
629 |
'<p>' .
|
630 |
-
__( 'A problem was occurred when processing your payment.
|
631 |
'</p>',
|
632 |
'error'
|
633 |
);
|
@@ -1043,6 +1046,9 @@ class WC_WooMercadoPago_CustomGateway extends WC_Payment_Gateway {
|
|
1043 |
}
|
1044 |
global $woocommerce;
|
1045 |
$w_cart = $woocommerce->cart;
|
|
|
|
|
|
|
1046 |
// If we do not have SSL in production environment, we are not allowed to process.
|
1047 |
$_mp_debug_mode = get_option( '_mp_debug_mode', '' );
|
1048 |
if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
|
@@ -1056,10 +1062,12 @@ class WC_WooMercadoPago_CustomGateway extends WC_Payment_Gateway {
|
|
1056 |
return false;
|
1057 |
}
|
1058 |
}
|
|
|
|
|
|
|
|
|
|
|
1059 |
// Check if this gateway is enabled and well configured.
|
1060 |
-
$_mp_public_key = get_option( '_mp_public_key' );
|
1061 |
-
$_mp_access_token = get_option( '_mp_access_token' );
|
1062 |
-
$_site_id_v1 = get_option( '_site_id_v1' );
|
1063 |
$available = ( 'yes' == $this->settings['enabled'] ) &&
|
1064 |
! empty( $_mp_public_key ) &&
|
1065 |
! empty( $_mp_access_token ) &&
|
606 |
case 'cancelled':
|
607 |
case 'in_mediation':
|
608 |
case 'charged-back':
|
609 |
+
// If we enter here (an order generating a direct [cancelled, in_mediation, or charged-back] status),
|
610 |
+
// them there must be something very wrong!
|
611 |
break;
|
612 |
default:
|
613 |
break;
|
616 |
// Process when fields are imcomplete.
|
617 |
wc_add_notice(
|
618 |
'<p>' .
|
619 |
+
__( 'A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?', 'woocommerce-mercadopago' ) . ' MERCADO PAGO: ' .
|
620 |
+
WC_Woo_Mercado_Pago_Module::get_common_error_messages( $response ) .
|
621 |
'</p>',
|
622 |
'error'
|
623 |
);
|
630 |
// Process when fields are imcomplete.
|
631 |
wc_add_notice(
|
632 |
'<p>' .
|
633 |
+
__( 'A problem was occurred when processing your payment. Please, try again.', 'woocommerce-mercadopago' ) .
|
634 |
'</p>',
|
635 |
'error'
|
636 |
);
|
1046 |
}
|
1047 |
global $woocommerce;
|
1048 |
$w_cart = $woocommerce->cart;
|
1049 |
+
$_mp_public_key = get_option( '_mp_public_key' );
|
1050 |
+
$_mp_access_token = get_option( '_mp_access_token' );
|
1051 |
+
$_site_id_v1 = get_option( '_site_id_v1' );
|
1052 |
// If we do not have SSL in production environment, we are not allowed to process.
|
1053 |
$_mp_debug_mode = get_option( '_mp_debug_mode', '' );
|
1054 |
if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
|
1062 |
return false;
|
1063 |
}
|
1064 |
}
|
1065 |
+
// If we don't have SSL, we can only enable this payment method with TEST credentials.
|
1066 |
+
$is_prod_credentials = strpos( $_mp_access_token, 'TEST' ) === false;
|
1067 |
+
if ( ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) && $is_prod_credentials ) {
|
1068 |
+
return false;
|
1069 |
+
}
|
1070 |
// Check if this gateway is enabled and well configured.
|
|
|
|
|
|
|
1071 |
$available = ( 'yes' == $this->settings['enabled'] ) &&
|
1072 |
! empty( $_mp_public_key ) &&
|
1073 |
! empty( $_mp_access_token ) &&
|
includes/WC_WooMercadoPago_TicketGateway.php
CHANGED
@@ -646,7 +646,8 @@ class WC_WooMercadoPago_TicketGateway extends WC_Payment_Gateway {
|
|
646 |
// Process when fields are imcomplete.
|
647 |
wc_add_notice(
|
648 |
'<p>' .
|
649 |
-
__( 'A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?', 'woocommerce-mercadopago' ) . ' MERCADO PAGO: ' .
|
|
|
650 |
'</p>',
|
651 |
'error'
|
652 |
);
|
@@ -1025,6 +1026,9 @@ class WC_WooMercadoPago_TicketGateway extends WC_Payment_Gateway {
|
|
1025 |
}
|
1026 |
global $woocommerce;
|
1027 |
$w_cart = $woocommerce->cart;
|
|
|
|
|
|
|
1028 |
// If we do not have SSL in production environment, we are not allowed to process.
|
1029 |
$_mp_debug_mode = get_option( '_mp_debug_mode', '' );
|
1030 |
if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
|
@@ -1044,9 +1048,6 @@ class WC_WooMercadoPago_TicketGateway extends WC_Payment_Gateway {
|
|
1044 |
return false;
|
1045 |
}
|
1046 |
// Check if this gateway is enabled and well configured.
|
1047 |
-
$_mp_public_key = get_option( '_mp_public_key' );
|
1048 |
-
$_mp_access_token = get_option( '_mp_access_token' );
|
1049 |
-
$_site_id_v1 = get_option( '_site_id_v1' );
|
1050 |
$available = ( 'yes' == $this->settings['enabled'] ) &&
|
1051 |
! empty( $_mp_public_key ) &&
|
1052 |
! empty( $_mp_access_token ) &&
|
646 |
// Process when fields are imcomplete.
|
647 |
wc_add_notice(
|
648 |
'<p>' .
|
649 |
+
__( 'A problem was occurred when processing your payment. Are you sure you have correctly filled all information in the checkout form?', 'woocommerce-mercadopago' ) . ' MERCADO PAGO: ' .
|
650 |
+
WC_Woo_Mercado_Pago_Module::get_common_error_messages( $response ) .
|
651 |
'</p>',
|
652 |
'error'
|
653 |
);
|
1026 |
}
|
1027 |
global $woocommerce;
|
1028 |
$w_cart = $woocommerce->cart;
|
1029 |
+
$_mp_public_key = get_option( '_mp_public_key' );
|
1030 |
+
$_mp_access_token = get_option( '_mp_access_token' );
|
1031 |
+
$_site_id_v1 = get_option( '_site_id_v1' );
|
1032 |
// If we do not have SSL in production environment, we are not allowed to process.
|
1033 |
$_mp_debug_mode = get_option( '_mp_debug_mode', '' );
|
1034 |
if ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
|
1048 |
return false;
|
1049 |
}
|
1050 |
// Check if this gateway is enabled and well configured.
|
|
|
|
|
|
|
1051 |
$available = ( 'yes' == $this->settings['enabled'] ) &&
|
1052 |
! empty( $_mp_public_key ) &&
|
1053 |
! empty( $_mp_access_token ) &&
|
includes/sdk/lib/mercadopago.php
CHANGED
@@ -12,7 +12,7 @@ $GLOBALS['LIB_LOCATION'] = dirname( __FILE__ );
|
|
12 |
|
13 |
class MP {
|
14 |
|
15 |
-
private $version = '3.0.
|
16 |
private $client_id;
|
17 |
private $client_secret;
|
18 |
private $ll_access_token;
|
12 |
|
13 |
class MP {
|
14 |
|
15 |
+
private $version = '3.0.11';
|
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.8
|
5 |
Tested up to: 4.8
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -215,6 +215,11 @@ Features: LatAm Basic Checkout support. Great for merchants who want to get goin
|
|
215 |
|
216 |
== Changelog ==
|
217 |
|
|
|
|
|
|
|
|
|
|
|
218 |
= v3.0.10 (29/01/2018) =
|
219 |
* Improvements
|
220 |
- Improved layout in Credit Card and Ticket forms;
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 4.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 3.0.11
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
215 |
|
216 |
== Changelog ==
|
217 |
|
218 |
+
= v3.0.11 (19/02/2018) =
|
219 |
+
* Improvements
|
220 |
+
- Improved feedback messages when an order fails;
|
221 |
+
- Improved credential validation for custom checkout by credit cards.
|
222 |
+
|
223 |
= v3.0.10 (29/01/2018) =
|
224 |
* Improvements
|
225 |
- Improved layout in Credit Card and Ticket forms;
|
woocommerce-mercadopago.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce MercadoPago
|
4 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
5 |
* Description: This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
|
6 |
-
* Version: 3.0.
|
7 |
* Author: Mercado Pago
|
8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
9 |
* Text Domain: woocommerce-mercadopago
|
@@ -79,6 +79,7 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
|
79 |
* - validate_credentials_v0()
|
80 |
* - validate_credentials_v1()
|
81 |
* - woocommerce_instance()
|
|
|
82 |
* - get_conversion_rate( $used_currency )
|
83 |
* - get_common_settings()
|
84 |
* - get_categories()
|
@@ -105,7 +106,7 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
|
105 |
// ============================================================
|
106 |
|
107 |
// General constants.
|
108 |
-
const VERSION = '3.0.
|
109 |
const MIN_PHP = 5.6;
|
110 |
|
111 |
// Arrays to hold configurations for LatAm environment.
|
@@ -452,6 +453,26 @@ if ( ! class_exists( 'WC_Woo_Mercado_Pago_Module' ) ) :
|
|
452 |
}
|
453 |
}
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
/**
|
456 |
* Summary: Get the rate of conversion between two currencies.
|
457 |
* Description: The currencies are the one used in WooCommerce and the one used in $site_id.
|
3 |
* Plugin Name: WooCommerce MercadoPago
|
4 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
5 |
* Description: This is the <strong>oficial</strong> module of Mercado Pago for WooCommerce plugin. This module enables WooCommerce to use Mercado Pago as a payment Gateway for purchases made in your e-commerce store.
|
6 |
+
* Version: 3.0.11
|
7 |
* Author: Mercado Pago
|
8 |
* Author URI: https://www.mercadopago.com.br/developers/
|
9 |
* Text Domain: woocommerce-mercadopago
|
79 |
* - validate_credentials_v0()
|
80 |
* - validate_credentials_v1()
|
81 |
* - woocommerce_instance()
|
82 |
+
* - get_common_error_messages( $key )
|
83 |
* - get_conversion_rate( $used_currency )
|
84 |
* - get_common_settings()
|
85 |
* - get_categories()
|
106 |
// ============================================================
|
107 |
|
108 |
// General constants.
|
109 |
+
const VERSION = '3.0.11';
|
110 |
const MIN_PHP = 5.6;
|
111 |
|
112 |
// Arrays to hold configurations for LatAm environment.
|
453 |
}
|
454 |
}
|
455 |
|
456 |
+
// Get common error messages
|
457 |
+
public static function get_common_error_messages( $key ) {
|
458 |
+
if ( $key === 'Invalid payment_method_id' ) {
|
459 |
+
return __( 'Invalid payment_method_id', 'woocommerce-mercadopago' );
|
460 |
+
}
|
461 |
+
if ( $key === 'Invalid transaction_amount' ) {
|
462 |
+
return __( 'Invalid transaction_amount', 'woocommerce-mercadopago' ) . ' ' .
|
463 |
+
__( 'Posible causes: Currency not supported; Values under the minimal or above the maximun allowed.', 'woocommerce-mercadopago' );
|
464 |
+
}
|
465 |
+
if ( $key === 'Invalid users involved' ) {
|
466 |
+
return __( 'Invalid users involved', 'woocommerce-mercadopago' ) . ' ' .
|
467 |
+
__( 'Posible causes: Seller and buyer have the same email in Mercado Pago; Transaction involves production and test users.', 'woocommerce-mercadopago' );
|
468 |
+
}
|
469 |
+
if ( $key === 'Unauthorized use of live credentials' ) {
|
470 |
+
return __( 'Unauthorized use of live credentials', 'woocommerce-mercadopago' ) . ' ' .
|
471 |
+
__( 'Posible causes: Pending permission of use in production of the seller credentials.', 'woocommerce-mercadopago' );
|
472 |
+
}
|
473 |
+
return $key;
|
474 |
+
}
|
475 |
+
|
476 |
/**
|
477 |
* Summary: Get the rate of conversion between two currencies.
|
478 |
* Description: The currencies are the one used in WooCommerce and the one used in $site_id.
|