WooCommerce MercadoPago - Version 4.6.2

Version Description

Download this release

Release Info

Developer mercadopago
Plugin Icon 128x128 WooCommerce MercadoPago
Version 4.6.2
Comparing to
See all releases

Code changes from version 4.6.1 to 4.6.2

assets/js/credit-card.js CHANGED
@@ -10,11 +10,11 @@
10
  public_key: wc_mercadopago_params.public_key
11
  };
12
 
13
- var sdkTagScript = document.createElement('script');
14
- sdkTagScript.src = 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js?_=wc' + wc_mercadopago_params.plugin_version;
15
- sdkTagScript.onload = function () {
16
  Mercadopago.setPublishableKey(seller.public_key);
17
- };
18
 
19
  var coupon_of_discounts = {
20
  discount_action_url: wc_mercadopago_params.discount_action_url,
@@ -66,7 +66,7 @@
66
  function showPaymentsLink() {
67
  var frame_payments = document.querySelector('#mp-frame-payments');
68
  $('#button-show-payments').on('click', function () {
69
- frame_payments.style.display = frame_payments.style.display === 'inline-block' ? 'none' : 'inline-block';
70
  });
71
  }
72
 
@@ -170,40 +170,40 @@
170
  * Check what information is necessary to pay and show inputs
171
  */
172
  function additionalInfoHandler() {
173
- if (additionalInfoNeeded.cardholder_name) {
174
- document.getElementById('mp-card-holder-div').style.display = 'block';
175
- } else {
176
- document.getElementById('mp-card-holder-div').style.display = 'none';
177
- }
178
 
179
- if (additionalInfoNeeded.issuer) {
180
- document.getElementById('mp-issuer-div').style.display = 'block';
181
- document.getElementById('installments-div').classList.remove('mp-col-md-12');
182
- document.getElementById('installments-div').classList.add('mp-col-md-8');
183
- Mercadopago.getIssuers(objPaymentMethod.id, getBin(), issuersHandler);
184
- } else {
185
- clearIssuer();
186
- setInstallments();
187
- }
188
 
189
- if (additionalInfoNeeded.cardholder_identification_type) {
190
- document.getElementById('mp-doc-div').style.display = 'inline-block';
191
- document.getElementById('mp-doc-type-div').style.display = 'block';
192
- Mercadopago.getIdentificationTypes();
193
- } else {
194
- document.getElementById('mp-doc-type-div').style.display = 'none';
195
- }
196
 
197
- if (additionalInfoNeeded.cardholder_identification_number) {
198
- document.getElementById('mp-doc-div').style.display = 'inline-block';
199
- document.getElementById('mp-doc-number-div').style.display = 'block';
200
- } else {
201
- document.getElementById('mp-doc-number-div').style.display = 'none';
202
- }
203
 
204
- if (!additionalInfoNeeded.cardholder_identification_type && !additionalInfoNeeded.cardholder_identification_number) {
205
- document.getElementById('mp-doc-div').style.display = 'none';
206
- }
207
  }
208
 
209
  /**
@@ -742,23 +742,23 @@
742
  */
743
  function currencyIdToCurrency(currency_id) {
744
  if (currency_id === 'ARS') {
745
- return '$';
746
  } else if (currency_id === 'BRL') {
747
- return 'R$';
748
  } else if (currency_id === 'COP') {
749
- return '$';
750
  } else if (currency_id === 'CLP') {
751
- return '$';
752
  } else if (currency_id === 'MXN') {
753
- return '$';
754
  } else if (currency_id === 'VEF') {
755
- return 'Bs';
756
  } else if (currency_id === 'PEN') {
757
- return 'S/';
758
  } else if (currency_id === 'UYU') {
759
- return '$U';
760
  } else {
761
- return '$';
762
  }
763
  }
764
 
@@ -802,9 +802,5 @@
802
  $('form#order_review').submit(function () {
803
  return mercadoPagoFormHandler();
804
  });
805
-
806
- window.addEventListener('load', function() {
807
- document.querySelector('body').append(sdkTagScript);
808
- });
809
  });
810
  }(jQuery));
10
  public_key: wc_mercadopago_params.public_key
11
  };
12
 
13
+ // Set mercadopago public_key
14
+ $.getScript('https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js').done(function () {
15
+ // Set Public_key
16
  Mercadopago.setPublishableKey(seller.public_key);
17
+ });
18
 
19
  var coupon_of_discounts = {
20
  discount_action_url: wc_mercadopago_params.discount_action_url,
66
  function showPaymentsLink() {
67
  var frame_payments = document.querySelector('#mp-frame-payments');
68
  $('#button-show-payments').on('click', function () {
69
+ frame_payments.style.display = frame_payments.style.display === 'inline-block' ? 'none' : 'inline-block';
70
  });
71
  }
72
 
170
  * Check what information is necessary to pay and show inputs
171
  */
172
  function additionalInfoHandler() {
173
+ if (additionalInfoNeeded.cardholder_name) {
174
+ document.getElementById('mp-card-holder-div').style.display = 'block';
175
+ } else {
176
+ document.getElementById('mp-card-holder-div').style.display = 'none';
177
+ }
178
 
179
+ if (additionalInfoNeeded.issuer) {
180
+ document.getElementById('mp-issuer-div').style.display = 'block';
181
+ document.getElementById('installments-div').classList.remove('mp-col-md-12');
182
+ document.getElementById('installments-div').classList.add('mp-col-md-8');
183
+ Mercadopago.getIssuers(objPaymentMethod.id, getBin(), issuersHandler);
184
+ } else {
185
+ clearIssuer();
186
+ setInstallments();
187
+ }
188
 
189
+ if (additionalInfoNeeded.cardholder_identification_type) {
190
+ document.getElementById('mp-doc-div').style.display = 'inline-block';
191
+ document.getElementById('mp-doc-type-div').style.display = 'block';
192
+ Mercadopago.getIdentificationTypes();
193
+ } else {
194
+ document.getElementById('mp-doc-type-div').style.display = 'none';
195
+ }
196
 
197
+ if (additionalInfoNeeded.cardholder_identification_number) {
198
+ document.getElementById('mp-doc-div').style.display = 'inline-block';
199
+ document.getElementById('mp-doc-number-div').style.display = 'block';
200
+ } else {
201
+ document.getElementById('mp-doc-number-div').style.display = 'none';
202
+ }
203
 
204
+ if (!additionalInfoNeeded.cardholder_identification_type && !additionalInfoNeeded.cardholder_identification_number) {
205
+ document.getElementById('mp-doc-div').style.display = 'none';
206
+ }
207
  }
208
 
209
  /**
742
  */
743
  function currencyIdToCurrency(currency_id) {
744
  if (currency_id === 'ARS') {
745
+ return '$';
746
  } else if (currency_id === 'BRL') {
747
+ return 'R$';
748
  } else if (currency_id === 'COP') {
749
+ return '$';
750
  } else if (currency_id === 'CLP') {
751
+ return '$';
752
  } else if (currency_id === 'MXN') {
753
+ return '$';
754
  } else if (currency_id === 'VEF') {
755
+ return 'Bs';
756
  } else if (currency_id === 'PEN') {
757
+ return 'S/';
758
  } else if (currency_id === 'UYU') {
759
+ return '$U';
760
  } else {
761
+ return '$';
762
  }
763
  }
764
 
802
  $('form#order_review').submit(function () {
803
  return mercadoPagoFormHandler();
804
  });
 
 
 
 
805
  });
806
  }(jQuery));
assets/js/credit-card.min.js CHANGED
@@ -1 +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<e.length;o++)"issuer_id"===e[o]&&(r.issuer=!0),"cardholder_name"===e[o]&&(r.cardholder_name=!0),"cardholder_identification_type"===e[o]&&(r.cardholder_identification_type=!0),"cardholder_identification_number"===e[o]&&(r.cardholder_identification_number=!0)}(c.additional_info_needed),function(){r.cardholder_name?document.getElementById("mp-card-holder-div").style.display="block":document.getElementById("mp-card-holder-div").style.display="none";r.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(c.id,l(),b)):(g(),v());r.cardholder_identification_type?(document.getElementById("mp-doc-div").style.display="inline-block",document.getElementById("mp-doc-type-div").style.display="block",Mercadopago.getIdentificationTypes()):document.getElementById("mp-doc-type-div").style.display="none";r.cardholder_identification_number?(document.getElementById("mp-doc-div").style.display="inline-block",document.getElementById("mp-doc-number-div").style.display="block"):document.getElementById("mp-doc-number-div").style.display="none";r.cardholder_identification_type||r.cardholder_identification_number||(document.getElementById("mp-doc-div").style.display="none")}(),document.getElementById("mp-card-number").classList.remove("mp-form-control-error"),document.getElementById("mp-error-E301").style.display="none"):(i(),document.getElementById("mp-card-number").classList.add("mp-form-control-error"),document.getElementById("mp-error-E301").style.display="inline-block")}function i(){document.getElementById("mp-card-number").style.background="no-repeat #fff"}function p(e,o){if(200===e){for(var e=document.getElementById("mp-installments"),t='<option value="-1">'+wc_mercadopago_params.choose+"...</option>",n=[],r=0;r<o.length;r++)"aggregator"===o[r].processing_mode&&(n=o[r].payer_costs);for(var c=0;c<n.length;c++)t+='<option value="'+n[c].installments+'" '+function(e){var o="";if("MLA"!==d.site_id)return o;for(var t=0;t<e.length;t++)-1!==e[t].indexOf("CFT_")&&(o='data-tax="'+e[t]+'"');return o}(n[c].labels)+">"+(n[c].recommended_message||n[c].installments)+"</option>";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.additional_info_needed.length;n++)"issuer_id"===c.additional_info_needed[n]&&(t=!0);if(t){var r=document.getElementById("mp-issuer").value,e={bin:l(),amount:o,issuer_id:r};if("-1"===r)return}else e={bin:l(),amount:o};Mercadopago.getInstallments(e,p)}function b(e,o){if(200===e){var t=document.getElementById("mp-issuer"),n=document.createDocumentFragment();t.options.length=0;e=new Option(wc_mercadopago_params.choose+"...","-1");n.appendChild(e);for(var r=0;r<o.length;r++){var c="default"===o[r].name?"Otro":o[r].name;n.appendChild(new Option(c,o[r].id))}t.appendChild(n),t.removeAttribute("disabled"),L("body").on("change","#mp-issuer",v)}else g()}function h(){return document.querySelector("#mercadopago-form")}function S(){E();var e,o,t,n=function(){for(var e=!1,o=h(),t=o.querySelectorAll("[data-checkout]"),n=["installments","securityCode","cardExpirationDate","cardNumber"],r=0;r<t.length;r++){var c,d=t[r];-1<n.indexOf(d.getAttribute("data-checkout"))&&("-1"!==d.value&&""!==d.value||(0<(c=o.querySelectorAll('span[data-main="#'+d.id+'"]')).length&&(c[0].style.display="inline-block"),d.classList.add("mp-form-control-error"),e=!0))}return e||e}(),t=(t=!1,r.issuer&&("-1"!==(e=document.getElementById("mp-issuer")).value&&""!==e.value||(e.classList.add("mp-form-control-error"),t=!0)),r.cardholder_name&&("-1"!==(e=document.getElementById("mp-card-holder-name")).value&&""!==e.value||(e.classList.add("mp-form-control-error"),t=!0)),r.cardholder_identification_type&&("-1"!==(o=document.getElementById("docType")).value&&""!==o.value||(o.classList.add("mp-form-control-error"),t=!0)),r.cardholder_identification_number&&("-1"!==(o=document.getElementById("docNumber")).value&&""!==o.value||(o.classList.add("mp-form-control-error"),document.getElementById("mp-error-324").style.display="inline-block",t=!0)),t||t);return!n&&!t||(I(),void q())}function q(){void 0!==document.querySelectorAll(".mp-form-control-error")&&document.querySelectorAll(".mp-form-control-error")[0].focus()}function E(){for(var e=0;e<document.querySelectorAll("[data-checkout]").length;e++){var o=document.querySelectorAll("[data-checkout]")[e];o.classList.remove("mp-error-input"),o.classList.remove("mp-form-control-error")}for(var t=0;t<document.querySelectorAll(".mp-error").length;t++){document.querySelectorAll(".mp-error")[t].style.display="none"}}function I(){0<L("form#order_review").length&&L(".blockOverlay").css("display","none")}function k(e,o){document.querySelector("#mp-box-loading").style.background="",200!==e&&201!==e?(function(e){for(var o=h(),t=0;t<e.cause.length;t++){var n=e.cause[t],r=void 0;void 0!==(r="208"===n.code||"209"===n.code||"325"===n.code||"326"===n.code?o.querySelector("#mp-error-208"):o.querySelector("#mp-error-"+n.code))&&(n=o.querySelector(r.getAttribute("data-main")),r.style.display="inline-block",n.classList.add("mp-form-control-error"))}}(o),I(),q()):(document.querySelector("#token").value=o.id,t=!0,L("form.checkout, form#order_review").submit())}function B(){o(),document.querySelector("#mpCouponApplyed").style.display="none",""===document.querySelector("#couponCode").value?(n.status=!1,document.querySelector("#mpCouponError").style.display="block",document.querySelector("#mpCouponError").innerHTML=wc_mercadopago_params.coupon_empty,document.querySelector("#couponCode").style.background=null,document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#mp-discount").value=0):n.status?(n.status=!1,document.querySelector("#mpCouponError").style.display="none",document.querySelector("#applyCoupon").style.background=null,document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#couponCode").value="",document.querySelector("#couponCode").style.background=null,document.querySelector("#mp-discount").value=0):(document.querySelector("#mpCouponError").style.display="none",document.querySelector("#couponCode").style.background="url("+wc_mercadopago_params.loading+") 98% 50% no-repeat #fff",document.querySelector("#couponCode").style.border="1px solid #cecece",document.querySelector("#applyCoupon").disabled=!0,function(){var e=n.discount_action_url,o="?";0<=e.indexOf("?")&&(o="&");e+=o+"site_id="+wc_mercadopago_params.site_id,e+="&coupon_id="+document.querySelector("#couponCode").value,e+="&amount="+document.querySelector("#mp-amount").value,e+="&payer="+n.payer_email,L.ajax({url:e,method:"GET",timeout:5e3,error:function(){n.status=!1,document.querySelector("#mpCouponApplyed").style.display="none",document.querySelector("#mpCouponError").style.display="none",document.querySelector("#applyCoupon").style.background=null,document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#couponCode").value="",document.querySelector("#couponCode").style.background=null,document.querySelector("#mp-discount").value=0},success:function(e){200===e.status?(n.status=!0,document.querySelector("#mpCouponApplyed").style.display="block",document.querySelector("#mp-discount").value=e.response.coupon_amount,document.querySelector("#mpCouponApplyed").innerHTML=wc_mercadopago_params.discount_info1+" <strong>"+C(e.response.currency_id)+" "+Math.round(100*e.response.coupon_amount)/100+"</strong> "+wc_mercadopago_params.discount_info2+" "+e.response.name+".<br>"+wc_mercadopago_params.discount_info3+" <strong>"+C(e.response.currency_id)+" "+Math.round(100*document.querySelector("#mp-amount").value)/100+"</strong><br>"+wc_mercadopago_params.discount_info4+" <strong>"+C(e.response.currency_id)+" "+Math.round(100*u())/100+"*</strong><br><i>"+wc_mercadopago_params.discount_info5+'</i><br><a href="https://api.mercadolibre.com/campaigns/'+e.response.id+'/terms_and_conditions?format_type=html" target="_blank">'+wc_mercadopago_params.discount_info6+"</a>",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<L("form#order_review").length&&("yes"===n.activated&&L("#applyCoupon").on("click",B),a()),L("body").on("updated_checkout",function(){"yes"===n.activated&&L("#applyCoupon").on("click",B),o(),a()}),L("body").on("change","#mp-card-number",function(){E(),document.getElementById("mp-card-holder-name").value="",document.getElementById("mp-card-expiration-date").value="",document.getElementById("mp-security-code").value="",g(),y(),_(),f();var e=l();if(e.length<6)return void i();6<=e.length&&Mercadopago.getPaymentMethod({bin:e},m)}),L("form.checkout").on("checkout_place_order_woo-mercado-pago-custom",w),L("form#order_review").submit(w),window.addEventListener("load",function(){document.querySelector("body").append(e)})})}(jQuery);
1
+ !function(w){"use strict";w(function(){var t=!1,d={site_id:wc_mercadopago_params.site_id,public_key:wc_mercadopago_params.public_key};w.getScript("https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js").done(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 e(){0!==document.getElementById("mp-card-number").value&&(document.getElementById("mp-card-number").value="",m(),s(),y(),g(),_())}function o(){var e=document.querySelector("#mp-frame-payments");w("#button-show-payments").on("click",function(){e.style.display="inline-block"===e.style.display?"none":"inline-block"})}function a(){return document.getElementById("mp-card-number").value.replace(/[ .-]/g,"").slice(0,6)}function l(){return(document.getElementById("mp-amount").value-document.getElementById("mp-discount").value)*document.getElementById("currency_ratio").value}function u(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<e.length;o++)"issuer_id"===e[o]&&(r.issuer=!0),"cardholder_name"===e[o]&&(r.cardholder_name=!0),"cardholder_identification_type"===e[o]&&(r.cardholder_identification_type=!0),"cardholder_identification_number"===e[o]&&(r.cardholder_identification_number=!0)}(c.additional_info_needed),function(){r.cardholder_name?document.getElementById("mp-card-holder-div").style.display="block":document.getElementById("mp-card-holder-div").style.display="none";r.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(c.id,a(),v)):(g(),f());r.cardholder_identification_type?(document.getElementById("mp-doc-div").style.display="inline-block",document.getElementById("mp-doc-type-div").style.display="block",Mercadopago.getIdentificationTypes()):document.getElementById("mp-doc-type-div").style.display="none";r.cardholder_identification_number?(document.getElementById("mp-doc-div").style.display="inline-block",document.getElementById("mp-doc-number-div").style.display="block"):document.getElementById("mp-doc-number-div").style.display="none";r.cardholder_identification_type||r.cardholder_identification_number||(document.getElementById("mp-doc-div").style.display="none")}(),document.getElementById("mp-card-number").classList.remove("mp-form-control-error"),document.getElementById("mp-error-E301").style.display="none"):(m(),document.getElementById("mp-card-number").classList.add("mp-form-control-error"),document.getElementById("mp-error-E301").style.display="inline-block")}function m(){document.getElementById("mp-card-number").style.background="no-repeat #fff"}function i(e,o){if(200===e){for(var e=document.getElementById("mp-installments"),t='<option value="-1">'+wc_mercadopago_params.choose+"...</option>",n=[],r=0;r<o.length;r++)"aggregator"===o[r].processing_mode&&(n=o[r].payer_costs);for(var c=0;c<n.length;c++)t+='<option value="'+n[c].installments+'" '+function(e){var o="";if("MLA"!==d.site_id)return o;for(var t=0;t<e.length;t++)-1!==e[t].indexOf("CFT_")&&(o='data-tax="'+e[t]+'"');return o}(n[c].labels)+">"+(n[c].recommended_message||n[c].installments)+"</option>";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<c.additional_info_needed.length;n++)"issuer_id"===c.additional_info_needed[n]&&(t=!0);if(t){var r=document.getElementById("mp-issuer").value,e={bin:a(),amount:o,issuer_id:r};if("-1"===r)return}else e={bin:a(),amount:o};Mercadopago.getInstallments(e,i)}function v(e,o){if(200===e){var t=document.getElementById("mp-issuer"),n=document.createDocumentFragment();t.options.length=0;e=new Option(wc_mercadopago_params.choose+"...","-1");n.appendChild(e);for(var r=0;r<o.length;r++){var c="default"===o[r].name?"Otro":o[r].name;n.appendChild(new Option(c,o[r].id))}t.appendChild(n),t.removeAttribute("disabled"),w("body").on("change","#mp-issuer",f)}else g()}function b(){return document.querySelector("#mercadopago-form")}function h(){q();var e,o,t,n=function(){for(var e=!1,o=b(),t=o.querySelectorAll("[data-checkout]"),n=["installments","securityCode","cardExpirationDate","cardNumber"],r=0;r<t.length;r++){var c,d=t[r];-1<n.indexOf(d.getAttribute("data-checkout"))&&("-1"!==d.value&&""!==d.value||(0<(c=o.querySelectorAll('span[data-main="#'+d.id+'"]')).length&&(c[0].style.display="inline-block"),d.classList.add("mp-form-control-error"),e=!0))}return e||e}(),t=(t=!1,r.issuer&&("-1"!==(e=document.getElementById("mp-issuer")).value&&""!==e.value||(e.classList.add("mp-form-control-error"),t=!0)),r.cardholder_name&&("-1"!==(e=document.getElementById("mp-card-holder-name")).value&&""!==e.value||(e.classList.add("mp-form-control-error"),t=!0)),r.cardholder_identification_type&&("-1"!==(o=document.getElementById("docType")).value&&""!==o.value||(o.classList.add("mp-form-control-error"),t=!0)),r.cardholder_identification_number&&("-1"!==(o=document.getElementById("docNumber")).value&&""!==o.value||(o.classList.add("mp-form-control-error"),document.getElementById("mp-error-324").style.display="inline-block",t=!0)),t||t);return!n&&!t||(E(),void S())}function S(){void 0!==document.querySelectorAll(".mp-form-control-error")&&document.querySelectorAll(".mp-form-control-error")[0].focus()}function q(){for(var e=0;e<document.querySelectorAll("[data-checkout]").length;e++){var o=document.querySelectorAll("[data-checkout]")[e];o.classList.remove("mp-error-input"),o.classList.remove("mp-form-control-error")}for(var t=0;t<document.querySelectorAll(".mp-error").length;t++){document.querySelectorAll(".mp-error")[t].style.display="none"}}function E(){0<w("form#order_review").length&&w(".blockOverlay").css("display","none")}function I(e,o){document.querySelector("#mp-box-loading").style.background="",200!==e&&201!==e?(function(e){for(var o=b(),t=0;t<e.cause.length;t++){var n=e.cause[t],r=void 0;void 0!==(r="208"===n.code||"209"===n.code||"325"===n.code||"326"===n.code?o.querySelector("#mp-error-208"):o.querySelector("#mp-error-"+n.code))&&(n=o.querySelector(r.getAttribute("data-main")),r.style.display="inline-block",n.classList.add("mp-form-control-error"))}}(o),E(),S()):(document.querySelector("#token").value=o.id,t=!0,w("form.checkout, form#order_review").submit())}function k(){e(),document.querySelector("#mpCouponApplyed").style.display="none",""===document.querySelector("#couponCode").value?(n.status=!1,document.querySelector("#mpCouponError").style.display="block",document.querySelector("#mpCouponError").innerHTML=wc_mercadopago_params.coupon_empty,document.querySelector("#couponCode").style.background=null,document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#mp-discount").value=0):n.status?(n.status=!1,document.querySelector("#mpCouponError").style.display="none",document.querySelector("#applyCoupon").style.background=null,document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#couponCode").value="",document.querySelector("#couponCode").style.background=null,document.querySelector("#mp-discount").value=0):(document.querySelector("#mpCouponError").style.display="none",document.querySelector("#couponCode").style.background="url("+wc_mercadopago_params.loading+") 98% 50% no-repeat #fff",document.querySelector("#couponCode").style.border="1px solid #cecece",document.querySelector("#applyCoupon").disabled=!0,function(){var e=n.discount_action_url,o="?";0<=e.indexOf("?")&&(o="&");e+=o+"site_id="+wc_mercadopago_params.site_id,e+="&coupon_id="+document.querySelector("#couponCode").value,e+="&amount="+document.querySelector("#mp-amount").value,e+="&payer="+n.payer_email,w.ajax({url:e,method:"GET",timeout:5e3,error:function(){n.status=!1,document.querySelector("#mpCouponApplyed").style.display="none",document.querySelector("#mpCouponError").style.display="none",document.querySelector("#applyCoupon").style.background=null,document.querySelector("#applyCoupon").value=wc_mercadopago_params.apply,document.querySelector("#couponCode").value="",document.querySelector("#couponCode").style.background=null,document.querySelector("#mp-discount").value=0},success:function(e){200===e.status?(n.status=!0,document.querySelector("#mpCouponApplyed").style.display="block",document.querySelector("#mp-discount").value=e.response.coupon_amount,document.querySelector("#mpCouponApplyed").innerHTML=wc_mercadopago_params.discount_info1+" <strong>"+B(e.response.currency_id)+" "+Math.round(100*e.response.coupon_amount)/100+"</strong> "+wc_mercadopago_params.discount_info2+" "+e.response.name+".<br>"+wc_mercadopago_params.discount_info3+" <strong>"+B(e.response.currency_id)+" "+Math.round(100*document.querySelector("#mp-amount").value)/100+"</strong><br>"+wc_mercadopago_params.discount_info4+" <strong>"+B(e.response.currency_id)+" "+Math.round(100*l())/100+"*</strong><br><i>"+wc_mercadopago_params.discount_info5+'</i><br><a href="https://api.mercadolibre.com/campaigns/'+e.response.id+'/terms_and_conditions?format_type=html" target="_blank">'+wc_mercadopago_params.discount_info6+"</a>",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}()}0<w("form#order_review").length&&("yes"===n.activated&&w("#applyCoupon").on("click",k),o()),w("body").on("updated_checkout",function(){"yes"===n.activated&&w("#applyCoupon").on("click",k),e(),o()}),w("body").on("change","#mp-card-number",function(){q(),document.getElementById("mp-card-holder-name").value="",document.getElementById("mp-card-expiration-date").value="",document.getElementById("mp-security-code").value="",g(),s(),y(),_();var e=a();if(e.length<6)return void m();6<=e.length&&Mercadopago.getPaymentMethod({bin:e},u)}),w("form.checkout").on("checkout_place_order_woo-mercado-pago-custom",C),w("form#order_review").submit(C)})}(jQuery);
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.1\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-12-29 19:45-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:28-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:45-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:27-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:45-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:28-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:45-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:28-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:45-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:28-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:45-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:28-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:46-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:28-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:46-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:29-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.1\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-12-29 19:46-0300\n"
13
  "X-Generator: Poedit 2.4.2\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.6.2\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: 2021-01-06 14:29-0300\n"
13
  "X-Generator: Poedit 2.4.2\n"
14
  "X-Domain: woocommerce-mercadopago\n"
15
  "Last-Translator: \n"
i18n/languages/woocommerce-mercadopago.pot CHANGED
@@ -66,7 +66,7 @@ msgstr ""
66
  msgid "Cancel order"
67
  msgstr ""
68
 
69
- #: includes/module/WC_WooMercadoPago_Module.php:242, includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:364
70
  msgid "Fill in your credentials to enable payment methods."
71
  msgstr ""
72
 
@@ -1205,19 +1205,19 @@ msgstr ""
1205
  msgid " and fee of"
1206
  msgstr ""
1207
 
1208
- #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:324
1209
  msgid "<b>Public Key</b> production credential is invalid. Review the field to receive real payments."
1210
  msgstr ""
1211
 
1212
- #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:334
1213
  msgid "<b>Public Key</b> test credential is invalid. Review the field to perform tests in your store."
1214
  msgstr ""
1215
 
1216
- #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:344
1217
  msgid "<b>Access Token</b> production credential is invalid. Remember that it must be complete to receive real payments."
1218
  msgstr ""
1219
 
1220
- #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:354
1221
  msgid "<b>Access Token</b> test credential is invalid. Review the field to perform tests in your store."
1222
  msgstr ""
1223
 
66
  msgid "Cancel order"
67
  msgstr ""
68
 
69
+ #: includes/module/WC_WooMercadoPago_Module.php:242, includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:348
70
  msgid "Fill in your credentials to enable payment methods."
71
  msgstr ""
72
 
1205
  msgid " and fee of"
1206
  msgstr ""
1207
 
1208
+ #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:308
1209
  msgid "<b>Public Key</b> production credential is invalid. Review the field to receive real payments."
1210
  msgstr ""
1211
 
1212
+ #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:318
1213
  msgid "<b>Public Key</b> test credential is invalid. Review the field to perform tests in your store."
1214
  msgstr ""
1215
 
1216
+ #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:328
1217
  msgid "<b>Access Token</b> production credential is invalid. Remember that it must be complete to receive real payments."
1218
  msgstr ""
1219
 
1220
+ #: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:338
1221
  msgid "<b>Access Token</b> test credential is invalid. Review the field to perform tests in your store."
1222
  msgstr ""
1223
 
includes/module/config/WC_WooMercadoPago_Constants.php CHANGED
@@ -12,7 +12,7 @@ class WC_WooMercadoPago_Constants
12
  const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
13
  const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
14
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
15
- const VERSION = '4.6.1';
16
  const MIN_PHP = 5.6;
17
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
18
  }
12
  const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
13
  const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
14
  const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
15
+ const VERSION = '4.6.2';
16
  const MIN_PHP = 5.6;
17
  const API_MP_BASE_URL = 'https://api.mercadopago.com';
18
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: ecommerce, mercadopago, woocommerce
4
  Requires at least: 4.9.10
5
  Tested up to: 5.6
6
  Requires PHP: 5.6
7
- Stable tag: 4.6.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -116,8 +116,11 @@ Set up both the plugin and the checkouts you want to activate on your payment av
116
  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.
117
 
118
  == Changelog ==
119
- = v4.6.1 (04/01/2021) =
 
 
120
 
 
121
  * Features
122
  - Add support to LearnPress
123
  - Compatibility with Wordpress v5.6 and WooCommerce v4.8
4
  Requires at least: 4.9.10
5
  Tested up to: 5.6
6
  Requires PHP: 5.6
7
+ Stable tag: 4.6.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
116
  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.
117
 
118
  == Changelog ==
119
+ = v4.6.2 (06/01/2021) =
120
+ * Bug fixes
121
+ - Changed loading of Mercado Pago SDK at custom checkout
122
 
123
+ = v4.6.1 (04/01/2021) =
124
  * Features
125
  - Add support to LearnPress
126
  - Compatibility with Wordpress v5.6 and WooCommerce v4.8
woocommerce-mercadopago.php CHANGED
@@ -4,7 +4,7 @@
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.6.1
8
  * Author: Mercado Pago
9
  * Author URI: https://developers.mercadopago.com/
10
  * Text Domain: woocommerce-mercadopago
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.6.2
8
  * Author: Mercado Pago
9
  * Author URI: https://developers.mercadopago.com/
10
  * Text Domain: woocommerce-mercadopago