From ee9d5ece46aa2d8ef99a35853be9f125167b120c Mon Sep 17 00:00:00 2001 From: Fabio Landi Date: Tue, 5 Jan 2021 16:43:56 -0300 Subject: [PATCH 1/3] Fixed load sdk --- assets/js/credit-card.js | 92 +++++++++++----------- assets/js/credit-card.min.js | 2 +- i18n/languages/woocommerce-mercadopago.pot | 10 +-- 3 files changed, 50 insertions(+), 54 deletions(-) diff --git a/assets/js/credit-card.js b/assets/js/credit-card.js index af25ac524..00bf0c544 100644 --- a/assets/js/credit-card.js +++ b/assets/js/credit-card.js @@ -10,11 +10,11 @@ public_key: wc_mercadopago_params.public_key }; - var sdkTagScript = document.createElement('script'); - sdkTagScript.src = 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js?_=wc' + wc_mercadopago_params.plugin_version; - sdkTagScript.onload = function () { + // Set mercadopago public_key + $.getScript('https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js').done(function () { + // Set Public_key Mercadopago.setPublishableKey(seller.public_key); - }; + }); var coupon_of_discounts = { discount_action_url: wc_mercadopago_params.discount_action_url, @@ -66,7 +66,7 @@ function showPaymentsLink() { var frame_payments = document.querySelector('#mp-frame-payments'); $('#button-show-payments').on('click', function () { - frame_payments.style.display = frame_payments.style.display === 'inline-block' ? 'none' : 'inline-block'; + frame_payments.style.display = frame_payments.style.display === 'inline-block' ? 'none' : 'inline-block'; }); } @@ -170,40 +170,40 @@ * Check what information is necessary to pay and show inputs */ function additionalInfoHandler() { - if (additionalInfoNeeded.cardholder_name) { - document.getElementById('mp-card-holder-div').style.display = 'block'; - } else { - document.getElementById('mp-card-holder-div').style.display = 'none'; - } + if (additionalInfoNeeded.cardholder_name) { + document.getElementById('mp-card-holder-div').style.display = 'block'; + } else { + document.getElementById('mp-card-holder-div').style.display = 'none'; + } - if (additionalInfoNeeded.issuer) { - document.getElementById('mp-issuer-div').style.display = 'block'; - document.getElementById('installments-div').classList.remove('mp-col-md-12'); - document.getElementById('installments-div').classList.add('mp-col-md-8'); - Mercadopago.getIssuers(objPaymentMethod.id, getBin(), issuersHandler); - } else { - clearIssuer(); - setInstallments(); - } + if (additionalInfoNeeded.issuer) { + document.getElementById('mp-issuer-div').style.display = 'block'; + document.getElementById('installments-div').classList.remove('mp-col-md-12'); + document.getElementById('installments-div').classList.add('mp-col-md-8'); + Mercadopago.getIssuers(objPaymentMethod.id, getBin(), issuersHandler); + } else { + clearIssuer(); + setInstallments(); + } - if (additionalInfoNeeded.cardholder_identification_type) { - document.getElementById('mp-doc-div').style.display = 'inline-block'; - document.getElementById('mp-doc-type-div').style.display = 'block'; - Mercadopago.getIdentificationTypes(); - } else { - document.getElementById('mp-doc-type-div').style.display = 'none'; - } + if (additionalInfoNeeded.cardholder_identification_type) { + document.getElementById('mp-doc-div').style.display = 'inline-block'; + document.getElementById('mp-doc-type-div').style.display = 'block'; + Mercadopago.getIdentificationTypes(); + } else { + document.getElementById('mp-doc-type-div').style.display = 'none'; + } - if (additionalInfoNeeded.cardholder_identification_number) { - document.getElementById('mp-doc-div').style.display = 'inline-block'; - document.getElementById('mp-doc-number-div').style.display = 'block'; - } else { - document.getElementById('mp-doc-number-div').style.display = 'none'; - } + if (additionalInfoNeeded.cardholder_identification_number) { + document.getElementById('mp-doc-div').style.display = 'inline-block'; + document.getElementById('mp-doc-number-div').style.display = 'block'; + } else { + document.getElementById('mp-doc-number-div').style.display = 'none'; + } - if (!additionalInfoNeeded.cardholder_identification_type && !additionalInfoNeeded.cardholder_identification_number) { - document.getElementById('mp-doc-div').style.display = 'none'; - } + if (!additionalInfoNeeded.cardholder_identification_type && !additionalInfoNeeded.cardholder_identification_number) { + document.getElementById('mp-doc-div').style.display = 'none'; + } } /** @@ -742,23 +742,23 @@ */ function currencyIdToCurrency(currency_id) { if (currency_id === 'ARS') { - return '$'; + return '$'; } else if (currency_id === 'BRL') { - return 'R$'; + return 'R$'; } else if (currency_id === 'COP') { - return '$'; + return '$'; } else if (currency_id === 'CLP') { - return '$'; + return '$'; } else if (currency_id === 'MXN') { - return '$'; + return '$'; } else if (currency_id === 'VEF') { - return 'Bs'; + return 'Bs'; } else if (currency_id === 'PEN') { - return 'S/'; + return 'S/'; } else if (currency_id === 'UYU') { - return '$U'; + return '$U'; } else { - return '$'; + return '$'; } } @@ -802,9 +802,5 @@ $('form#order_review').submit(function () { return mercadoPagoFormHandler(); }); - - window.addEventListener('load', function() { - document.querySelector('body').append(sdkTagScript); - }); }); }(jQuery)); diff --git a/assets/js/credit-card.min.js b/assets/js/credit-card.min.js index 25239e78e..3a3d549f1 100644 --- a/assets/js/credit-card.min.js +++ b/assets/js/credit-card.min.js @@ -1 +1 @@ -!function(L){"use strict";L(function(){var t=!1,d={site_id:wc_mercadopago_params.site_id,public_key:wc_mercadopago_params.public_key},e=document.createElement("script");e.src="https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js?_=wc"+wc_mercadopago_params.plugin_version,e.onload=function(){Mercadopago.setPublishableKey(d.public_key)};var n={discount_action_url:wc_mercadopago_params.discount_action_url,payer_email:wc_mercadopago_params.payer_email,activated:wc_mercadopago_params.coupon_mode,status:!1},c={},r={};function o(){0!==document.getElementById("mp-card-number").value&&(document.getElementById("mp-card-number").value="",i(),y(),_(),g(),f())}function a(){var e=document.querySelector("#mp-frame-payments");L("#button-show-payments").on("click",function(){e.style.display="inline-block"===e.style.display?"none":"inline-block"})}function l(){return document.getElementById("mp-card-number").value.replace(/[ .-]/g,"").slice(0,6)}function u(){return(document.getElementById("mp-amount").value-document.getElementById("mp-discount").value)*document.getElementById("currency_ratio").value}function m(e,o){200===e?(c=o[0],o=c.id,document.getElementById("paymentMethodId").value=o,o=c.secure_thumbnail,document.getElementById("mp-card-number").style.background="url("+o+") 98% 50% no-repeat #fff",function(e){r={issuer:!1,cardholder_name:!1,cardholder_identification_type:!1,cardholder_identification_number:!1};for(var o=0;o'+wc_mercadopago_params.choose+"...",n=[],r=0;r"+(n[c].recommended_message||n[c].installments)+"";e.innerHTML=t,"MLA"===d.site_id&&(_(),L("body").on("change","#mp-installments",s))}else y(),_()}function s(){var e=document.querySelector("#mp-installments"),o=e.options[e.selectedIndex].getAttribute("data-tax"),t="",e="";null!=o&&(t=(o=o.split("|"))[0].replace("_"," "),e=o[1].replace("_"," "),"CFT 0,00%"===t&&"TEA 0,00%"===e&&(e=t="")),document.querySelector("#mp-tax-cft-text").innerHTML=t,document.querySelector("#mp-tax-tea-text").innerHTML=e}function y(){document.getElementById("mp-installments").innerHTML=""}function _(){document.querySelector("#mp-tax-cft-text").innerHTML="",document.querySelector("#mp-tax-tea-text").innerHTML=""}function g(){document.getElementById("mp-issuer-div").style.display="none",document.getElementById("installments-div").classList.remove("mp-col-md-8"),document.getElementById("installments-div").classList.add("mp-dis-md-12"),document.getElementById("mp-issuer").innerHTML=""}function f(){document.getElementById("mp-doc-div").style.display="none",document.getElementById("mp-doc-type-div").style.display="none",document.getElementById("docType").innerHTML="",document.getElementById("docNumber").value=""}function v(){for(var e={},o=u(),t=!1,n=0;n"+C(e.response.currency_id)+" "+Math.round(100*e.response.coupon_amount)/100+" "+wc_mercadopago_params.discount_info2+" "+e.response.name+".
"+wc_mercadopago_params.discount_info3+" "+C(e.response.currency_id)+" "+Math.round(100*document.querySelector("#mp-amount").value)/100+"
"+wc_mercadopago_params.discount_info4+" "+C(e.response.currency_id)+" "+Math.round(100*u())/100+"*
"+wc_mercadopago_params.discount_info5+'
'+wc_mercadopago_params.discount_info6+"",document.querySelector("#mpCouponError").style.display="none",document.querySelector("#couponCode").style.background=null,document.querySelector("#couponCode").style.background="url("+wc_mercadopago_params.check+") 94% 50% no-repeat #fff",document.querySelector("#couponCode").style.border="1px solid #cecece",document.querySelector("#applyCoupon").value=wc_mercadopago_params.remove,document.querySelector("#campaign_id").value=e.response.id,document.querySelector("#campaign").value=e.response.name):(n.status=!1,document.querySelector("#mpCouponApplyed").style.display="none",document.querySelector("#mpCouponError").style.display="block",document.querySelector("#mpCouponError").innerHTML=e.response.message,document.querySelector("#couponCode").style.background=null,document.querySelector("#couponCode").style.background="url("+wc_mercadopago_params.error+") 94% 50% no-repeat #fff",document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#mp-discount").value=0),document.querySelector("#applyCoupon").disabled=!1}})}())}function C(e){return"ARS"===e?"$":"BRL"===e?"R$":"COP"===e||"CLP"===e||"MXN"===e?"$":"VEF"===e?"Bs":"PEN"===e?"S/":"UYU"===e?"$U":"$"}function w(){return t?!(t=!1):!document.getElementById("payment_method_woo-mercado-pago-custom").checked||!!S()&&function(){E(),document.querySelector("#mp-box-loading").style.background="url("+wc_mercadopago_params.loading+") 0 50% no-repeat #fff";var e=h();return Mercadopago.createToken(e,k),!1}()}0'+wc_mercadopago_params.choose+"...",n=[],r=0;r"+(n[c].recommended_message||n[c].installments)+"";e.innerHTML=t,"MLA"===d.site_id&&(y(),w("body").on("change","#mp-installments",p))}else s(),y()}function p(){var e=document.querySelector("#mp-installments"),o=e.options[e.selectedIndex].getAttribute("data-tax"),t="",e="";null!=o&&(t=(o=o.split("|"))[0].replace("_"," "),e=o[1].replace("_"," "),"CFT 0,00%"===t&&"TEA 0,00%"===e&&(e=t="")),document.querySelector("#mp-tax-cft-text").innerHTML=t,document.querySelector("#mp-tax-tea-text").innerHTML=e}function s(){document.getElementById("mp-installments").innerHTML=""}function y(){document.querySelector("#mp-tax-cft-text").innerHTML="",document.querySelector("#mp-tax-tea-text").innerHTML=""}function g(){document.getElementById("mp-issuer-div").style.display="none",document.getElementById("installments-div").classList.remove("mp-col-md-8"),document.getElementById("installments-div").classList.add("mp-dis-md-12"),document.getElementById("mp-issuer").innerHTML=""}function _(){document.getElementById("mp-doc-div").style.display="none",document.getElementById("mp-doc-type-div").style.display="none",document.getElementById("docType").innerHTML="",document.getElementById("docNumber").value=""}function f(){for(var e={},o=l(),t=!1,n=0;n"+B(e.response.currency_id)+" "+Math.round(100*e.response.coupon_amount)/100+" "+wc_mercadopago_params.discount_info2+" "+e.response.name+".
"+wc_mercadopago_params.discount_info3+" "+B(e.response.currency_id)+" "+Math.round(100*document.querySelector("#mp-amount").value)/100+"
"+wc_mercadopago_params.discount_info4+" "+B(e.response.currency_id)+" "+Math.round(100*l())/100+"*
"+wc_mercadopago_params.discount_info5+'
'+wc_mercadopago_params.discount_info6+"",document.querySelector("#mpCouponError").style.display="none",document.querySelector("#couponCode").style.background=null,document.querySelector("#couponCode").style.background="url("+wc_mercadopago_params.check+") 94% 50% no-repeat #fff",document.querySelector("#couponCode").style.border="1px solid #cecece",document.querySelector("#applyCoupon").value=wc_mercadopago_params.remove,document.querySelector("#campaign_id").value=e.response.id,document.querySelector("#campaign").value=e.response.name):(n.status=!1,document.querySelector("#mpCouponApplyed").style.display="none",document.querySelector("#mpCouponError").style.display="block",document.querySelector("#mpCouponError").innerHTML=e.response.message,document.querySelector("#couponCode").style.background=null,document.querySelector("#couponCode").style.background="url("+wc_mercadopago_params.error+") 94% 50% no-repeat #fff",document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#mp-discount").value=0),document.querySelector("#applyCoupon").disabled=!1}})}())}function B(e){return"ARS"===e?"$":"BRL"===e?"R$":"COP"===e||"CLP"===e||"MXN"===e?"$":"VEF"===e?"Bs":"PEN"===e?"S/":"UYU"===e?"$U":"$"}function C(){return t?!(t=!1):!document.getElementById("payment_method_woo-mercado-pago-custom").checked||!!h()&&function(){q(),document.querySelector("#mp-box-loading").style.background="url("+wc_mercadopago_params.loading+") 0 50% no-repeat #fff";var e=b();return Mercadopago.createToken(e,I),!1}()}0Public Key production credential is invalid. Review the field to receive real payments." msgstr "" -#: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:334 +#: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:318 msgid "Public Key test credential is invalid. Review the field to perform tests in your store." msgstr "" -#: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:344 +#: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:328 msgid "Access Token production credential is invalid. Remember that it must be complete to receive real payments." msgstr "" -#: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:354 +#: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:338 msgid "Access Token test credential is invalid. Review the field to perform tests in your store." msgstr "" From 739e6aa1a7de04493fa00f1d32f2fba66caf3a61 Mon Sep 17 00:00:00 2001 From: Fabio Landi Date: Wed, 6 Jan 2021 14:36:43 -0300 Subject: [PATCH 2/3] New release v4.6.2 --- CHANGELOG.md | 3 +++ changelog.log | 4 ++++ .../woocommerce-mercadopago-es_AR.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_AR.po | 4 ++-- .../woocommerce-mercadopago-es_CL.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_CL.po | 4 ++-- .../woocommerce-mercadopago-es_CO.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_CO.po | 4 ++-- .../woocommerce-mercadopago-es_ES.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_ES.po | 4 ++-- .../woocommerce-mercadopago-es_MX.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_MX.po | 4 ++-- .../woocommerce-mercadopago-es_PE.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_PE.po | 4 ++-- .../woocommerce-mercadopago-es_UY.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_UY.po | 4 ++-- .../woocommerce-mercadopago-es_VE.mo | Bin 37974 -> 37974 bytes .../woocommerce-mercadopago-es_VE.po | 4 ++-- .../woocommerce-mercadopago-pt_BR.mo | Bin 37899 -> 37899 bytes .../woocommerce-mercadopago-pt_BR.po | 4 ++-- i18n/languages/woocommerce-mercadopago.pot | 1 + .../config/WC_WooMercadoPago_Constants.php | 2 +- readme.txt | 7 +++++-- woocommerce-mercadopago.php | 2 +- 24 files changed, 33 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 270688e6d..8ab24daf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.6.2] - 2021-01-06 +### Changed + - Changed loading of Mercado Pago SDK at custom checkout ## [4.6.1] - 2021-01-04 ### Added - Add support to LearnPress diff --git a/changelog.log b/changelog.log index 9e0191c27..2375c536f 100644 --- a/changelog.log +++ b/changelog.log @@ -1,5 +1,9 @@ CHANGELOG: == Changelog == += v4.6.2 (06/01/2021) = +* Bug fixes + - Changed loading of Mercado Pago SDK at custom checkout + = v4.6.1 (04/01/2021) = * Features diff --git a/i18n/languages/woocommerce-mercadopago-es_AR.mo b/i18n/languages/woocommerce-mercadopago-es_AR.mo index 2e5a700c8d2fc8f5e5592a95f8da217be5377e61..aefd1cd38b94add8f658663f4e678b13c3116116 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m665f+_0Cn0Ou48F#rGn delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZq5yRX$t`7a11&C diff --git a/i18n/languages/woocommerce-mercadopago-es_AR.po b/i18n/languages/woocommerce-mercadopago-es_AR.po index 0953e1181..1a305fe1b 100644 --- a/i18n/languages/woocommerce-mercadopago-es_AR.po +++ b/i18n/languages/woocommerce-mercadopago-es_AR.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:45-0300\n" +"PO-Revision-Date: 2021-01-06 14:28-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_CL.mo b/i18n/languages/woocommerce-mercadopago-es_CL.mo index eb1a8dac94baefa3a37f99ecb85162d6cf1545a8..e4bc282178150077ec99ccefa126462ae74976d0 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m67@8+_0Cn0Ot-2FaQ7m delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZq5yRX$t`7a11&C diff --git a/i18n/languages/woocommerce-mercadopago-es_CL.po b/i18n/languages/woocommerce-mercadopago-es_CL.po index cdde6ab96..4a7344913 100644 --- a/i18n/languages/woocommerce-mercadopago-es_CL.po +++ b/i18n/languages/woocommerce-mercadopago-es_CL.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:45-0300\n" +"PO-Revision-Date: 2021-01-06 14:27-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_CO.mo b/i18n/languages/woocommerce-mercadopago-es_CO.mo index 34e14719d4a474e725482fdeda7b4e1f10f7b336..92d503a3099344e8a3fc9c4a2861c670bba07145 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m665f+_0Cn0Ou48F#rGn delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZq5yRX$t`7a11&C diff --git a/i18n/languages/woocommerce-mercadopago-es_CO.po b/i18n/languages/woocommerce-mercadopago-es_CO.po index ecb5fe650..7b5664e10 100644 --- a/i18n/languages/woocommerce-mercadopago-es_CO.po +++ b/i18n/languages/woocommerce-mercadopago-es_CO.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:45-0300\n" +"PO-Revision-Date: 2021-01-06 14:28-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_ES.mo b/i18n/languages/woocommerce-mercadopago-es_ES.mo index 48f5004becfacfcf2a27a746f23b7dbc5e02a59e..5a341b0e36ecbbcf3c626f966b5fb940885d21f9 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m665f+_0Cn0Ou48F#rGn delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZq5yRX$t`7a11&C diff --git a/i18n/languages/woocommerce-mercadopago-es_ES.po b/i18n/languages/woocommerce-mercadopago-es_ES.po index 83577b700..0962fb3c9 100644 --- a/i18n/languages/woocommerce-mercadopago-es_ES.po +++ b/i18n/languages/woocommerce-mercadopago-es_ES.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:45-0300\n" +"PO-Revision-Date: 2021-01-06 14:28-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_MX.mo b/i18n/languages/woocommerce-mercadopago-es_MX.mo index 12ae11db8a4f810850978978703130ecdb9e5d06..c631f62168ae3509d88d29600d4e9a86d615eb90 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m665f+_0Cn0Ou48F#rGn delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZq5yRX$t`7a11&C diff --git a/i18n/languages/woocommerce-mercadopago-es_MX.po b/i18n/languages/woocommerce-mercadopago-es_MX.po index d708aa97d..a1e11cc2e 100644 --- a/i18n/languages/woocommerce-mercadopago-es_MX.po +++ b/i18n/languages/woocommerce-mercadopago-es_MX.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:45-0300\n" +"PO-Revision-Date: 2021-01-06 14:28-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_PE.mo b/i18n/languages/woocommerce-mercadopago-es_PE.mo index 1cb460078587dab0aa645adc941b9f25b6e7811d..259f2462737ea738a5228d6d963135e0d8665ce5 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m665f+_0Cn0Ou48F#rGn delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZq5yRX$t`7a11&C diff --git a/i18n/languages/woocommerce-mercadopago-es_PE.po b/i18n/languages/woocommerce-mercadopago-es_PE.po index 897747213..d26ec4c69 100644 --- a/i18n/languages/woocommerce-mercadopago-es_PE.po +++ b/i18n/languages/woocommerce-mercadopago-es_PE.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:45-0300\n" +"PO-Revision-Date: 2021-01-06 14:28-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_UY.mo b/i18n/languages/woocommerce-mercadopago-es_UY.mo index 7955a4282bc86e669c46dc85afcab4f238f3e316..110ab83b89350a26e9c3ec50978bb038e34c18d5 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m665f+_0Cn0Ou48F#rGn delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZO#pQX$t`7b__cJ diff --git a/i18n/languages/woocommerce-mercadopago-es_UY.po b/i18n/languages/woocommerce-mercadopago-es_UY.po index d518e4f58..70b634a01 100644 --- a/i18n/languages/woocommerce-mercadopago-es_UY.po +++ b/i18n/languages/woocommerce-mercadopago-es_UY.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:46-0300\n" +"PO-Revision-Date: 2021-01-06 14:28-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-es_VE.mo b/i18n/languages/woocommerce-mercadopago-es_VE.mo index b8c5fa4159f4fa5d6de28c03d2ba3942aa3f08cf..64e9d00836970539eae821900de907dacb6475dc 100644 GIT binary patch delta 34 ocmcb%g6Y}{rVTxzj7F1tLof3h>KXu%nS!B-m67G<+_0Cn0OuMEG5`Po delta 34 qcmcb%g6Y}{rVTxzjE0kYLof3h=o%X78d)kBT3VTyZO#pQX$t`7b__cJ diff --git a/i18n/languages/woocommerce-mercadopago-es_VE.po b/i18n/languages/woocommerce-mercadopago-es_VE.po index 2141ff896..6d1619d30 100644 --- a/i18n/languages/woocommerce-mercadopago-es_VE.po +++ b/i18n/languages/woocommerce-mercadopago-es_VE.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:46-0300\n" +"PO-Revision-Date: 2021-01-06 14:29-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago-pt_BR.mo b/i18n/languages/woocommerce-mercadopago-pt_BR.mo index 7cec6f1f7211ec87e89f7b904235dfd862204cd2..d9cbbe86e0eca8df44a286accb7bd20b1803fa06 100644 GIT binary patch delta 34 ocmeBP!PLEiX+vcQqtWE5kjuP=x&}aGreJ7dWn{TIDs-bA0MCC5DF6Tf delta 34 qcmeBP!PLEiX+vcQqv7PLkjuOVx`sx&MwSYOmR2Tao1;QE+5rI1+Y2%P diff --git a/i18n/languages/woocommerce-mercadopago-pt_BR.po b/i18n/languages/woocommerce-mercadopago-pt_BR.po index 1f0fc583a..5dbf916f0 100644 --- a/i18n/languages/woocommerce-mercadopago-pt_BR.po +++ b/i18n/languages/woocommerce-mercadopago-pt_BR.po @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin. msgid "" msgstr "" -"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.1\n" +"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "POT-Creation-Date: 2019-09-05T23:48:06-04:00\n" -"PO-Revision-Date: 2020-12-29 19:46-0300\n" +"PO-Revision-Date: 2021-01-06 14:29-0300\n" "X-Generator: Poedit 2.4.2\n" "X-Domain: woocommerce-mercadopago\n" "Last-Translator: \n" diff --git a/i18n/languages/woocommerce-mercadopago.pot b/i18n/languages/woocommerce-mercadopago.pot index 9fe671d6a..e9596eb10 100644 --- a/i18n/languages/woocommerce-mercadopago.pot +++ b/i18n/languages/woocommerce-mercadopago.pot @@ -1035,6 +1035,7 @@ msgid "Select the number of installment" msgstr "" #: templates/checkout/custom_checkout.php:131 +msgid "" msgstr "" #: templates/checkout/custom_checkout.php:134 diff --git a/includes/module/config/WC_WooMercadoPago_Constants.php b/includes/module/config/WC_WooMercadoPago_Constants.php index fcaa2ad24..63df38c5f 100644 --- a/includes/module/config/WC_WooMercadoPago_Constants.php +++ b/includes/module/config/WC_WooMercadoPago_Constants.php @@ -12,7 +12,7 @@ class WC_WooMercadoPago_Constants const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG'; const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0'; const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0'; - const VERSION = '4.6.1'; + const VERSION = '4.6.2'; const MIN_PHP = 5.6; const API_MP_BASE_URL = 'https://api.mercadopago.com'; } diff --git a/readme.txt b/readme.txt index 62968e2ff..bf43ca9ab 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce Requires at least: 4.9.10 Tested up to: 5.6 Requires PHP: 5.6 -Stable tag: 4.6.1 +Stable tag: 4.6.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -116,8 +116,11 @@ Set up both the plugin and the checkouts you want to activate on your payment av Check out our official documentation for more information on the specific fields to configure. == Changelog == -= v4.6.1 (04/01/2021) = += v4.6.2 (06/01/2021) = +* Bug fixes + - Changed loading of Mercado Pago SDK at custom checkout += v4.6.1 (04/01/2021) = * Features - Add support to LearnPress - Compatibility with Wordpress v5.6 and WooCommerce v4.8 diff --git a/woocommerce-mercadopago.php b/woocommerce-mercadopago.php index 11a26f2b8..e50f57b96 100644 --- a/woocommerce-mercadopago.php +++ b/woocommerce-mercadopago.php @@ -4,7 +4,7 @@ * Plugin Name: Mercado Pago payments for WooCommerce * Plugin URI: https://github.com/mercadopago/cart-woocommerce * Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account. - * Version: 4.6.1 + * Version: 4.6.2 * Author: Mercado Pago * Author URI: https://developers.mercadopago.com/ * Text Domain: woocommerce-mercadopago From 4318b16a1434251d91d9bd91d89b504219b3c2a9 Mon Sep 17 00:00:00 2001 From: Fabio Landi Date: Wed, 6 Jan 2021 14:39:47 -0300 Subject: [PATCH 3/3] update change log --- CHANGELOG.md | 2 +- i18n/languages/woocommerce-mercadopago.pot | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab24daf8..cfbef47ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [4.6.2] - 2021-01-06 ### Changed - - Changed loading of Mercado Pago SDK at custom checkout + - Changed loading of Mercado Pago SDK at custom checkout. ## [4.6.1] - 2021-01-04 ### Added - Add support to LearnPress diff --git a/i18n/languages/woocommerce-mercadopago.pot b/i18n/languages/woocommerce-mercadopago.pot index e9596eb10..9fe671d6a 100644 --- a/i18n/languages/woocommerce-mercadopago.pot +++ b/i18n/languages/woocommerce-mercadopago.pot @@ -1035,7 +1035,6 @@ msgid "Select the number of installment" msgstr "" #: templates/checkout/custom_checkout.php:131 -msgid "" msgstr "" #: templates/checkout/custom_checkout.php:134