Version Description
Download this release
Release Info
Developer | mercadopago |
Plugin | WooCommerce MercadoPago |
Version | 4.6.1 |
Comparing to | |
See all releases |
Code changes from version 4.6.0 to 4.6.1
- assets/js/basic_config_mercadopago.js +4 -3
- assets/js/basic_config_mercadopago.min.js +1 -1
- assets/js/credit-card.js +4 -5
- assets/js/credit-card.min.js +1 -1
- assets/js/custom_config_mercadopago.js +3 -3
- assets/js/custom_config_mercadopago.min.js +1 -1
- assets/js/ticket_config_mercadopago.js +5 -4
- assets/js/ticket_config_mercadopago.min.js +1 -1
- i18n/languages/woocommerce-mercadopago-es_AR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_AR.po +8 -8
- i18n/languages/woocommerce-mercadopago-es_CL.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CL.po +8 -8
- i18n/languages/woocommerce-mercadopago-es_CO.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_CO.po +8 -8
- i18n/languages/woocommerce-mercadopago-es_ES.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_ES.po +8 -8
- i18n/languages/woocommerce-mercadopago-es_MX.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_MX.po +8 -8
- i18n/languages/woocommerce-mercadopago-es_PE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_PE.po +8 -8
- i18n/languages/woocommerce-mercadopago-es_UY.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_UY.po +8 -8
- i18n/languages/woocommerce-mercadopago-es_VE.mo +0 -0
- i18n/languages/woocommerce-mercadopago-es_VE.po +8 -8
- i18n/languages/woocommerce-mercadopago-pt_BR.mo +0 -0
- i18n/languages/woocommerce-mercadopago-pt_BR.po +8 -8
- i18n/languages/woocommerce-mercadopago.pot +53 -53
- includes/module/WC_WooMercadoPago_Credentials.php +25 -6
- includes/module/WC_WooMercadoPago_Init.php +13 -0
- includes/module/WC_WooMercadoPago_Module.php +2 -0
- includes/module/config/WC_WooMercadoPago_Constants.php +1 -1
- includes/module/preference/WC_WooMercadoPago_PreferenceAbstract.php +1 -1
- includes/module/sdk/lib/MP.php +11 -3
- includes/payments/WC_WooMercadoPago_BasicGateway.php +10 -15
- includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php +1 -16
- includes/payments/hooks/WC_WooMercadoPago_Hook_Basic.php +2 -2
- includes/payments/hooks/WC_WooMercadoPago_Hook_Custom.php +2 -1
- readme.txt +17 -3
- woocommerce-mercadopago.php +2 -2
assets/js/basic_config_mercadopago.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*jshint multistr: true */
|
2 |
|
3 |
-
window.
|
4 |
var makeCollapsibleOptions = function (id_plus, id_less) {
|
5 |
return '<span class="mp-btn-collapsible" id="' + id_plus + '" style="display:block">+</span>\
|
6 |
<span class="mp-btn-collapsible" id="'+ id_less + '" style="display:none">-</span>';
|
@@ -24,7 +24,7 @@ window.onload = function () {
|
|
24 |
var label = document.querySelectorAll('th.titledesc');
|
25 |
for (var j = 0; j < label.length; j++) {
|
26 |
label[j].id = 'mp_field_text';
|
27 |
-
if (label[j].children[0].children[0]
|
28 |
label[j].children[0].children[0].style.position = 'relative';
|
29 |
label[j].children[0].children[0].style.fontSize = '22px';
|
30 |
}
|
@@ -211,7 +211,7 @@ window.onload = function () {
|
|
211 |
});
|
212 |
}
|
213 |
|
214 |
-
|
215 |
|
216 |
//Online payments
|
217 |
window.completeOnlineCheckbox = function () {
|
@@ -253,3 +253,4 @@ window.completeOfflineCheckboxMP = function () {
|
|
253 |
}
|
254 |
}
|
255 |
};
|
|
1 |
/*jshint multistr: true */
|
2 |
|
3 |
+
window.addEventListener('load', function() {
|
4 |
var makeCollapsibleOptions = function (id_plus, id_less) {
|
5 |
return '<span class="mp-btn-collapsible" id="' + id_plus + '" style="display:block">+</span>\
|
6 |
<span class="mp-btn-collapsible" id="'+ id_less + '" style="display:none">-</span>';
|
24 |
var label = document.querySelectorAll('th.titledesc');
|
25 |
for (var j = 0; j < label.length; j++) {
|
26 |
label[j].id = 'mp_field_text';
|
27 |
+
if (label[j] && label[j].children[0] && label[j].children[0].children[0]) {
|
28 |
label[j].children[0].children[0].style.position = 'relative';
|
29 |
label[j].children[0].children[0].style.fontSize = '22px';
|
30 |
}
|
211 |
});
|
212 |
}
|
213 |
|
214 |
+
|
215 |
|
216 |
//Online payments
|
217 |
window.completeOnlineCheckbox = function () {
|
253 |
}
|
254 |
}
|
255 |
};
|
256 |
+
});
|
assets/js/basic_config_mercadopago.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.
|
1 |
+
window.addEventListener("load",function(){function e(e,o){return'<span class="mp-btn-collapsible" id="'+e+'" style="display:block">+</span> <span class="mp-btn-collapsible" id="'+o+'" style="display:none">-</span>'}document.querySelector(".wc-admin-breadcrumb").style.display="none",document.querySelector(".mp-header-logo").style.display="none",document.querySelector("#_wpnonce").parentElement.style.display="none";var o=document.querySelectorAll("h2");void 0!==o[4]&&(o[4].style.display="none");for(var t=document.querySelectorAll("p.description"),c=0;c<t.length;c++)t[c].style.width="420px";for(var n=document.querySelectorAll("th.titledesc"),l=0;l<n.length;l++)n[l].id="mp_field_text",n[l]&&n[l].children[0]&&n[l].children[0].children[0]&&(n[l].children[0].children[0].style.position="relative",n[l].children[0].children[0].style.fontSize="22px");for(var d=document.querySelectorAll(".form-table"),r=0;r<d.length;r++)d[r].id="mp_table_"+r;document.querySelector(".hidden-field-mp-title").setAttribute("type","hidden"),document.querySelector(".hidden-field-mp-desc").setAttribute("type","hidden");o=document.querySelectorAll("#mp_table_0");o[0].children[0].children[0].style.display="none",o[0].children[0].children[1].style.display="none";o=document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_btn_save");if(null===document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_homolog_title")&&null===document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_credential_description_prod")||document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_credential_description_prod").nextElementSibling.append(o.cloneNode(!0)),null!==document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_homolog_title")||null!==document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_options_title")){document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_advanced_settings").nextElementSibling.append(o.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_options_title").nextElementSibling.append(o.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_payments_description").nextElementSibling.append(o.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-basic_checkout_payments_advanced_description").nextElementSibling.append(o.cloneNode(!0));var a=document.querySelector("#woocommerce_woo-mercado-pago-basic_checkout_advanced_settings"),i=a.nextElementSibling;i.style.display="none",a.style.cursor="pointer",a.innerHTML+=e("header_plus","header_less");var m=document.querySelector("#header_plus"),s=document.querySelector("#header_less");a.onclick=function(){"none"===i.style.display?(i.style.display="block",s.style.display="block",m.style.display="none"):(i.style.display="none",s.style.display="none",m.style.display="block")};var a=document.querySelector("#woocommerce_woo-mercado-pago-basic_checkout_payments_advanced_title"),p=document.querySelector("#woocommerce_woo-mercado-pago-basic_checkout_payments_advanced_description").nextElementSibling,y=document.querySelector("#woocommerce_woo-mercado-pago-basic_checkout_payments_advanced_description");p.style.display="none",y.style.display="none",a.style.cursor="pointer",a.innerHTML+=e("header_plus_2","header_less_2");var u=document.querySelector("#header_plus_2"),_=document.querySelector("#header_less_2");a.onclick=function(){"none"===p.style.display?(p.style.display="block",y.style.display="block",_.style.display="block",u.style.display="none"):(p.style.display="none",y.style.display="none",_.style.display="none",u.style.display="block")};for(var a=document.querySelector("#woocommerce_woo-mercado-pago-basic_checkout_payments_description").nextElementSibling.getAttribute("class"),h=document.querySelectorAll("."+a+" td.forminp label"),c=0;c<h.length;c++)h[c].id="mp_input_payments_mt";for(var b="",k="",g=0,f=document.querySelectorAll(".online_payment_method"),w=0;w<f.length;w++)b=f[w].getAttribute("data-translate"),!0===f[w].checked&&(g+=1);g===f.length&&(k="checked");for(var v=0;v<f.length;v++)if(0===v){var S='<div class="all_checkbox"> <label for="checkmeon" id="mp_input_payments"> <input type="checkbox" name="checkmeon" id="checkmeon" '+k+' onclick="completeOnlineCheckbox()"> '+b+" </label> </div>";f[v].parentElement.insertAdjacentHTML("beforebegin",S);break}for(var q="",E="",x=0,A=document.querySelectorAll(".debit_payment_method"),B=0;B<A.length;B++)q=A[B].getAttribute("data-translate"),!0===A[B].checked&&(x+=1);x===A.length&&(E="checked");for(var I=0;I<A.length;I++)if(0===I){var L='<div class="all_checkbox"> <label for="checkmedeb" id="mp_input_payments"> <input type="checkbox" name="checkmedeb" id="checkmedeb" '+E+' onclick="completeDebitCheckbox()"> '+q+" </label> </div>";A[I].parentElement.insertAdjacentHTML("beforebegin",L);break}for(var M="",C="",H=0,N=document.querySelectorAll(".offline_payment_method"),T=0;T<N.length;T++)M=N[T].getAttribute(["data-translate"]),!0===N[T].checked&&(H+=1);H===N.length&&(C="checked");for(var O=0;O<N.length;O++)if(0===O){var j='<div class="all_checkbox"> <label for="checkmeoff" id="mp_input_payments" style="margin-bottom: 37px !important;"> <input type="checkbox" name="checkmeoff" id="checkmeoff" '+C+' onclick="completeOfflineCheckboxMP()"> '+M+" </label> </div>";N[O].parentElement.insertAdjacentHTML("beforebegin",j);break}}a=document.querySelectorAll(".mp-save-button");0!==a.length&&Array.from(a).forEach(function(e){e.addEventListener("click",function(){document.querySelector(".woocommerce-save-button").click()})}),window.completeOnlineCheckbox=function(){for(var e=document.getElementById("checkmeon").checked,o=document.querySelectorAll(".online_payment_method"),t=0;t<o.length;t++)o[t].checked=!0===e},window.completeDebitCheckbox=function(){for(var e=document.getElementById("checkmedeb").checked,o=document.querySelectorAll(".debit_payment_method"),t=0;t<o.length;t++)o[t].checked=!0===e},window.completeOfflineCheckboxMP=function(){for(var e=document.getElementById("checkmeoff").checked,o=document.querySelectorAll(".offline_payment_method"),t=0;t<o.length;t++)o[t].checked=!0===e}});
|
assets/js/credit-card.js
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
};
|
12 |
|
13 |
var sdkTagScript = document.createElement('script');
|
14 |
-
sdkTagScript.src = 'https://secure.mlstatic.com/sdk/javascript/v1/mercadopago.js';
|
15 |
sdkTagScript.onload = function () {
|
16 |
Mercadopago.setPublishableKey(seller.public_key);
|
17 |
};
|
@@ -803,9 +803,8 @@
|
|
803 |
return mercadoPagoFormHandler();
|
804 |
});
|
805 |
|
806 |
-
window.
|
807 |
-
|
808 |
-
|
809 |
-
};
|
810 |
});
|
811 |
}(jQuery));
|
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 |
};
|
803 |
return mercadoPagoFormHandler();
|
804 |
});
|
805 |
|
806 |
+
window.addEventListener('load', function() {
|
807 |
+
document.querySelector('body').append(sdkTagScript);
|
808 |
+
});
|
|
|
809 |
});
|
810 |
}(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",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)):(_(),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&&(g(),L("body").on("change","#mp-installments",s))}else y(),g()}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 g(){document.querySelector("#mp-tax-cft-text").innerHTML="",document.querySelector("#mp-tax-tea-text").innerHTML=""}function _(){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 _()}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="",_(),y(),g(),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.onload=function(){document.querySelector("body").append(e)}})}(jQuery);
|
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);
|
assets/js/custom_config_mercadopago.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*jshint multistr: true */
|
2 |
|
3 |
-
window.
|
4 |
//remove link breadcrumb, header and save button
|
5 |
document.querySelector('.wc-admin-breadcrumb').style.display = 'none';
|
6 |
document.querySelector('.mp-header-logo').style.display = 'none';
|
@@ -18,7 +18,7 @@ window.onload = function () {
|
|
18 |
var label = document.querySelectorAll('th.titledesc');
|
19 |
for (var j = 0; j < label.length; j++) {
|
20 |
label[j].id = 'mp_field_text';
|
21 |
-
if (label[j].children[0].children[0]
|
22 |
label[j].children[0].children[0].style.position = 'relative';
|
23 |
label[j].children[0].children[0].style.fontSize = '22px';
|
24 |
}
|
@@ -114,4 +114,4 @@ window.onload = function () {
|
|
114 |
});
|
115 |
}
|
116 |
|
117 |
-
};
|
1 |
/*jshint multistr: true */
|
2 |
|
3 |
+
window.addEventListener('load', function() {
|
4 |
//remove link breadcrumb, header and save button
|
5 |
document.querySelector('.wc-admin-breadcrumb').style.display = 'none';
|
6 |
document.querySelector('.mp-header-logo').style.display = 'none';
|
18 |
var label = document.querySelectorAll('th.titledesc');
|
19 |
for (var j = 0; j < label.length; j++) {
|
20 |
label[j].id = 'mp_field_text';
|
21 |
+
if (label[j] && label[j].children[0] && label[j].children[0].children[0]) {
|
22 |
label[j].children[0].children[0].style.position = 'relative';
|
23 |
label[j].children[0].children[0].style.fontSize = '22px';
|
24 |
}
|
114 |
});
|
115 |
}
|
116 |
|
117 |
+
});
|
assets/js/custom_config_mercadopago.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.
|
1 |
+
window.addEventListener("load",function(){document.querySelector(".wc-admin-breadcrumb").style.display="none",document.querySelector(".mp-header-logo").style.display="none",document.querySelector("#_wpnonce").parentElement.style.display="none";var e=document.querySelectorAll("h2");void 0!==e[4]&&(e[4].style.display="none");for(var o=document.querySelectorAll("p.description"),t=0;t<o.length;t++)o[t].style.width="420px";for(var c=document.querySelectorAll("th.titledesc"),l=0;l<c.length;l++)c[l].id="mp_field_text",c[l]&&c[l].children[0]&&c[l].children[0].children[0]&&(c[l].children[0].children[0].style.position="relative",c[l].children[0].children[0].style.fontSize="22px");for(var n=document.querySelectorAll(".form-table"),d=0;d<n.length;d++)n[d].id="mp_table_"+d;document.querySelector(".hidden-field-mp-title").setAttribute("type","hidden"),document.querySelector(".hidden-field-mp-desc").setAttribute("type","hidden");e=document.querySelectorAll("#mp_table_0");e[0].children[0].children[0].style.display="none",e[0].children[0].children[1].style.display="none";var s,m,r,a,i,p,u,e=document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_btn_save");null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_homolog_title")&&null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_credential_description_prod")||document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_credential_description_prod").nextElementSibling.append(e.cloneNode(!0)),null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_homolog_title")&&null===document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_custom_options_title")||(document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_advanced_settings").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_custom_options_title").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_payments_subtitle").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description").nextElementSibling.append(e.cloneNode(!0)),y=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_advanced_settings"),(s=y.nextElementSibling).style.display="none",y.style.cursor="pointer",y.innerHTML+='<span class="mp-btn-collapsible" id="header_plus" style="display:block">+</span> <span class="mp-btn-collapsible" id="header_less" style="display:none">-</span>',m=document.querySelector("#header_plus"),r=document.querySelector("#header_less"),y.onclick=function(){"none"===s.style.display?(s.style.display="block",r.style.display="block",m.style.display="none"):(s.style.display="none",r.style.display="none",m.style.display="block")},document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description").nextElementSibling.style.display="none",y=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_custom_payments_advanced_title"),a=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description").nextElementSibling,i=document.querySelector("#woocommerce_woo-mercado-pago-custom_checkout_payments_advanced_description"),a.style.display="none",i.style.display="none",y.style.cursor="pointer",y.innerHTML+='<span class="mp-btn-collapsible" id="header_plus_2" style="display:block">+</span> <span class="mp-btn-collapsible" id="header_less_2" style="display:none">-</span>',p=document.querySelector("#header_plus_2"),u=document.querySelector("#header_less_2"),y.onclick=function(){"none"===a.style.display?(a.style.display="block",u.style.display="block",a.style.display="block",p.style.display="none"):(a.style.display="none",u.style.display="none",i.style.display="none",p.style.display="block")});var y=document.querySelectorAll(".mp-save-button");0!==y.length&&Array.from(y).forEach(function(e){e.addEventListener("click",function(){document.querySelector(".woocommerce-save-button").click()})})});
|
assets/js/ticket_config_mercadopago.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*jshint multistr: true */
|
2 |
|
3 |
-
window.
|
4 |
//remove link breadcrumb, header and save button
|
5 |
document.querySelector('.wc-admin-breadcrumb').style.display = 'none';
|
6 |
document.querySelector('.mp-header-logo').style.display = 'none';
|
@@ -18,7 +18,7 @@ window.onload = function () {
|
|
18 |
var label = document.querySelectorAll('th.titledesc');
|
19 |
for (var j = 0; j < label.length; j++) {
|
20 |
label[j].id = 'mp_field_text';
|
21 |
-
if (label[j].children[0].children[0]
|
22 |
label[j].children[0].children[0].style.position = 'relative';
|
23 |
label[j].children[0].children[0].style.fontSize = '22px';
|
24 |
}
|
@@ -149,7 +149,7 @@ window.onload = function () {
|
|
149 |
});
|
150 |
}
|
151 |
|
152 |
-
|
153 |
|
154 |
//Offline payments
|
155 |
window.completeOfflineCheckbox = function () {
|
@@ -163,4 +163,5 @@ window.completeOfflineCheckbox = function () {
|
|
163 |
offlineInputs[i].checked = false;
|
164 |
}
|
165 |
}
|
166 |
-
};
|
|
1 |
/*jshint multistr: true */
|
2 |
|
3 |
+
window.addEventListener('load', function() {
|
4 |
//remove link breadcrumb, header and save button
|
5 |
document.querySelector('.wc-admin-breadcrumb').style.display = 'none';
|
6 |
document.querySelector('.mp-header-logo').style.display = 'none';
|
18 |
var label = document.querySelectorAll('th.titledesc');
|
19 |
for (var j = 0; j < label.length; j++) {
|
20 |
label[j].id = 'mp_field_text';
|
21 |
+
if (label[j] && label[j].children[0] && label[j].children[0].children[0]) {
|
22 |
label[j].children[0].children[0].style.position = 'relative';
|
23 |
label[j].children[0].children[0].style.fontSize = '22px';
|
24 |
}
|
149 |
});
|
150 |
}
|
151 |
|
152 |
+
|
153 |
|
154 |
//Offline payments
|
155 |
window.completeOfflineCheckbox = function () {
|
163 |
offlineInputs[i].checked = false;
|
164 |
}
|
165 |
}
|
166 |
+
};
|
167 |
+
});
|
assets/js/ticket_config_mercadopago.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.
|
1 |
+
window.addEventListener("load",function(){document.querySelector(".wc-admin-breadcrumb").style.display="none",document.querySelector(".mp-header-logo").style.display="none",document.querySelector("p.submit").style.display="none";var e=document.querySelectorAll("h2");void 0!==e[4]&&(e[4].style.display="none");for(var t=document.querySelectorAll("p.description"),o=0;o<t.length;o++)t[o].style.width="420px";for(var c=document.querySelectorAll("th.titledesc"),l=0;l<c.length;l++)c[l].id="mp_field_text",c[l]&&c[l].children[0]&&c[l].children[0].children[0]&&(c[l].children[0].children[0].style.position="relative",c[l].children[0].children[0].style.fontSize="22px");for(var n=document.querySelectorAll(".form-table"),d=0;d<n.length;d++)n[d].id="mp_table_"+d;document.querySelector(".hidden-field-mp-title").setAttribute("type","hidden"),document.querySelector(".hidden-field-mp-desc").setAttribute("type","hidden");e=document.querySelectorAll("#mp_table_0");e[0].children[0].children[0].style.display="none",e[0].children[0].children[1].style.display="none";e=document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_btn_save");if(null===document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_homolog_title")&&null===document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_credential_description_prod")||document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_credential_description_prod").nextElementSibling.append(e.cloneNode(!0)),null!==document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_homolog_title")||null!==document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_ticket_options_title")){document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_ticket_options_title").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_advanced_settings").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_ticket_payments_description").nextElementSibling.append(e.cloneNode(!0)),document.getElementById("woocommerce_woo-mercado-pago-ticket_checkout_payments_advanced_description").nextElementSibling.append(e.cloneNode(!0));var i=document.querySelector("#woocommerce_woo-mercado-pago-ticket_checkout_advanced_settings"),r=i.nextElementSibling;r.style.display="none",i.style.cursor="pointer",i.innerHTML+='<span class="mp-btn-collapsible" id="header_plus" style="display:block">+</span> <span class="mp-btn-collapsible" id="header_less" style="display:none">-</span>';var a=document.querySelector("#header_plus"),m=document.querySelector("#header_less");i.onclick=function(){"none"===r.style.display?(r.style.display="block",m.style.display="block",a.style.display="none"):(r.style.display="none",m.style.display="none",a.style.display="block")};var i=document.querySelector("#woocommerce_woo-mercado-pago-ticket_checkout_ticket_payments_advanced_title"),s=document.querySelector("#woocommerce_woo-mercado-pago-ticket_checkout_payments_advanced_description").nextElementSibling,p=document.querySelector("#woocommerce_woo-mercado-pago-ticket_checkout_payments_advanced_description");s.style.display="none",p.style.display="none",i.style.cursor="pointer",i.innerHTML+='<span class="mp-btn-collapsible" id="header_plus_2" style="display:block">+</span> <span class="mp-btn-collapsible" id="header_less_2" style="display:none">-</span>';var y=document.querySelector("#header_plus_2"),u=document.querySelector("#header_less_2");i.onclick=function(){"none"===s.style.display?(s.style.display="block",p.style.display="block",u.style.display="block",y.style.display="none"):(s.style.display="none",p.style.display="none",u.style.display="none",y.style.display="block")};for(var i=document.querySelector("#woocommerce_woo-mercado-pago-ticket_checkout_ticket_payments_description").nextElementSibling.getAttribute("class"),_=document.querySelectorAll("."+i+" td.forminp label"),h=0;h<_.length;h++)_[h].id="mp_input_payments_mt";for(var k="",g="",b=0,f=document.querySelectorAll(".ticket_payment_method_select"),w=0;w<f.length;w++)k=f[w].getAttribute("data-translate"),!0===f[w].checked&&(b+=1);b===f.length&&(g="checked");for(var S=0;S<f.length;S++)if(0===S){var v='<div class="all_checkbox"> <label for="checkmeoff" id="mp_input_payments" style="margin-bottom: 37px !important;"> <input type="checkbox" name="checkmeoff" id="checkmeoff" '+g+' onclick="completeOfflineCheckbox()"> '+k+" </label> </div>";f[S].parentElement.insertAdjacentHTML("beforebegin",v);break}}i=document.querySelectorAll(".mp-save-button");0!==i.length&&Array.from(i).forEach(function(e){e.addEventListener("click",function(){document.querySelector(".woocommerce-save-button").click()})}),window.completeOfflineCheckbox=function(){for(var e=document.getElementById("checkmeoff").checked,t=document.querySelectorAll(".ticket_payment_method_select"),o=0;o<t.length;o++)t[o].checked=!0===e}});
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilita la experiencia del Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Acepta todos los medios de pago y lleva tus cobros a otro nivel"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configura las preferencias de pago en tu tienda"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilita la experiencia del Checkout Pro en tu tienda online, selecciona los medios de pago disponibles para tus clientes y<br> define el máximo de cuotas en el que podrán pagarte."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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.
|
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-
|
13 |
"X-Generator: Poedit 2.4.2\n"
|
14 |
"X-Domain: woocommerce-mercadopago\n"
|
15 |
"Last-Translator: \n"
|
@@ -144,12 +144,12 @@ msgid "Accept all method of payment and take your charges to another level"
|
|
144 |
msgstr "Aceite todos os meios de pagamento e leve suas cobranças a outro nível"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
-
msgid "
|
148 |
-
msgstr "Checkout
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
-
msgid "Mercado Pago Checkout"
|
152 |
-
msgstr "
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
@@ -285,8 +285,8 @@ msgid "Set payment preferences in your store"
|
|
285 |
msgstr "Configure as experiências de pagamento na sua loja"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
-
msgid "Enable the experience of the
|
289 |
-
msgstr "Habilite a experiência do Checkout
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
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"
|
144 |
msgstr "Aceite todos os meios de pagamento e leve suas cobranças a outro nível"
|
145 |
|
146 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:245
|
147 |
+
msgid "Checkout Pro %s"
|
148 |
+
msgstr "Checkout Pro %s"
|
149 |
|
150 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:29
|
151 |
+
msgid "Mercado Pago - Checkout Pro"
|
152 |
+
msgstr "Mercado Pago - Checkout Pro"
|
153 |
|
154 |
#: includes/payments/WC_WooMercadoPago_TicketGateway.php:220
|
155 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:269
|
285 |
msgstr "Configure as experiências de pagamento na sua loja"
|
286 |
|
287 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:282
|
288 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
289 |
+
msgstr "Habilite a experiência do Checkout Pro na sua loja virtual, selecione os meios de pagamento disponíveis para seus clientes e<br> defina o número máximo de vezes que podem parcelar suas compras."
|
290 |
|
291 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:252
|
292 |
msgid "Turn your online store into your customers preferred payment gateway. Choose if the final payment experience will be inside or outside your store."
|
i18n/languages/woocommerce-mercadopago.pot
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the woocommerce-mercadopago package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
@@ -22,11 +22,11 @@ msgstr ""
|
|
22 |
msgid "Convert Currency"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: includes/helpers/WC_WooMercadoPago_Helpers_CurrencyConverter.php:332, includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
26 |
msgid "No"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: includes/helpers/WC_WooMercadoPago_Helpers_CurrencyConverter.php:333, includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
30 |
msgid "Yes"
|
31 |
msgstr ""
|
32 |
|
@@ -66,127 +66,127 @@ msgstr ""
|
|
66 |
msgid "Cancel order"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
70 |
msgid "Fill in your credentials to enable payment methods."
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
74 |
msgid "Set up"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
78 |
msgid "Your opinion helps us get better"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
82 |
msgid "Guides and Documentation"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
86 |
msgid "Report Problem"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
90 |
msgid "By Mercado Pago"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
94 |
msgid "The <strong> Sponsor ID </strong> must be valid!"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
98 |
msgid "The <strong>Sponsor ID</strong> must be from the same country as the seller!"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
102 |
msgid "The payment method is not valid or not available."
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
106 |
msgid "The transaction amount cannot be processed by Mercado Pago."
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
110 |
msgid "Possible causes: Currency not supported; Amounts below the minimum or above the maximum allowed."
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
114 |
msgid "The users are not valid."
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
118 |
msgid "Possible causes: Buyer and seller have the same account in Mercado Pago; The transaction involving production and test users."
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
122 |
msgid "Unauthorized use of production credentials."
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
126 |
msgid "Possible causes: Use permission in use for the credential of the seller."
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
130 |
msgid "ERROR: It was not possible to convert the unsupported currency"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
134 |
msgid "a"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
138 |
msgid "Currency conversions should be done outside of this module."
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
142 |
msgid "ATTENTION: The currency"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
146 |
msgid "defined in WooCommerce is different from that used by the credentials of your country.<br>The currency for transactions made with this payment method will be"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
150 |
msgid "CONVERTED CURRENCY: Your store is converting currency of"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
154 |
msgid "for"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
158 |
msgid "Colombia"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
162 |
msgid "Argentina"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
166 |
msgid "Brazil"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
170 |
msgid "Chile"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
174 |
msgid "Mexico"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
178 |
msgid "Uruguay"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
182 |
msgid "Venezuela"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
186 |
msgid "Peru"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: includes/module/WC_WooMercadoPago_Module.php:
|
190 |
msgid "Update the WooCommerce order to "
|
191 |
msgstr ""
|
192 |
|
@@ -259,7 +259,7 @@ msgid "It offers all means of payment: credit and debit cards, cash and account
|
|
259 |
msgstr ""
|
260 |
|
261 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:30
|
262 |
-
msgid "Mercado Pago Checkout"
|
263 |
msgstr ""
|
264 |
|
265 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:32
|
@@ -267,7 +267,7 @@ msgid "Pay with the payment method you prefer"
|
|
267 |
msgstr ""
|
268 |
|
269 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:246
|
270 |
-
msgid "
|
271 |
msgstr ""
|
272 |
|
273 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:249
|
@@ -283,7 +283,7 @@ msgid "Configure Mercado Pago for WooCommerce"
|
|
283 |
msgstr ""
|
284 |
|
285 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:283
|
286 |
-
msgid "Enable the experience of the
|
287 |
msgstr ""
|
288 |
|
289 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:296
|
@@ -338,51 +338,51 @@ msgstr ""
|
|
338 |
msgid "Payment URL pending"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
342 |
msgid "Select offline payments"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
346 |
msgid "Select debit cards"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
350 |
msgid "Select credit cards"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
354 |
msgid "Payment methods"
|
355 |
msgstr ""
|
356 |
|
357 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
358 |
msgid "Choose the available payment methods in your store."
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
362 |
msgid "Activate the available payment methods to your clients."
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
366 |
msgid "Return to the store"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
370 |
msgid "Do you want your customer to automatically return to the store after payment?"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
374 |
msgid "installments"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
378 |
msgid "installment"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
382 |
msgid "discount of"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:
|
386 |
msgid "fee of"
|
387 |
msgstr ""
|
388 |
|
@@ -1205,19 +1205,19 @@ msgstr ""
|
|
1205 |
msgid " and fee of"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
-
#: includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:
|
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:
|
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:
|
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:
|
1221 |
msgid "<b>Access Token</b> test credential is invalid. Review the field to perform tests in your store."
|
1222 |
msgstr ""
|
1223 |
|
1 |
+
# Copyright (C) 2021 woocommerce-mercadopago
|
2 |
# This file is distributed under the same license as the woocommerce-mercadopago package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
22 |
msgid "Convert Currency"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: includes/helpers/WC_WooMercadoPago_Helpers_CurrencyConverter.php:332, includes/payments/WC_WooMercadoPago_BasicGateway.php:500, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:593, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:677, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:963, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:1070, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:1105, includes/payments/WC_WooMercadoPago_TicketGateway.php:281
|
26 |
msgid "No"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: includes/helpers/WC_WooMercadoPago_Helpers_CurrencyConverter.php:333, includes/payments/WC_WooMercadoPago_BasicGateway.php:499, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:594, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:678, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:964, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:1071, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:1104, includes/payments/WC_WooMercadoPago_TicketGateway.php:282
|
30 |
msgid "Yes"
|
31 |
msgstr ""
|
32 |
|
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 |
|
73 |
+
#: includes/module/WC_WooMercadoPago_Module.php:251
|
74 |
msgid "Set up"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: includes/module/WC_WooMercadoPago_Module.php:252
|
78 |
msgid "Your opinion helps us get better"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: includes/module/WC_WooMercadoPago_Module.php:253
|
82 |
msgid "Guides and Documentation"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: includes/module/WC_WooMercadoPago_Module.php:254
|
86 |
msgid "Report Problem"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: includes/module/WC_WooMercadoPago_Module.php:325
|
90 |
msgid "By Mercado Pago"
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: includes/module/WC_WooMercadoPago_Module.php:350, includes/module/WC_WooMercadoPago_Module.php:371
|
94 |
msgid "The <strong> Sponsor ID </strong> must be valid!"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: includes/module/WC_WooMercadoPago_Module.php:367
|
98 |
msgid "The <strong>Sponsor ID</strong> must be from the same country as the seller!"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/module/WC_WooMercadoPago_Module.php:398
|
102 |
msgid "The payment method is not valid or not available."
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: includes/module/WC_WooMercadoPago_Module.php:401
|
106 |
msgid "The transaction amount cannot be processed by Mercado Pago."
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: includes/module/WC_WooMercadoPago_Module.php:402
|
110 |
msgid "Possible causes: Currency not supported; Amounts below the minimum or above the maximum allowed."
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: includes/module/WC_WooMercadoPago_Module.php:405
|
114 |
msgid "The users are not valid."
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: includes/module/WC_WooMercadoPago_Module.php:406
|
118 |
msgid "Possible causes: Buyer and seller have the same account in Mercado Pago; The transaction involving production and test users."
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: includes/module/WC_WooMercadoPago_Module.php:409
|
122 |
msgid "Unauthorized use of production credentials."
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: includes/module/WC_WooMercadoPago_Module.php:410
|
126 |
msgid "Possible causes: Use permission in use for the credential of the seller."
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: includes/module/WC_WooMercadoPago_Module.php:528
|
130 |
msgid "ERROR: It was not possible to convert the unsupported currency"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: includes/module/WC_WooMercadoPago_Module.php:530
|
134 |
msgid "a"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: includes/module/WC_WooMercadoPago_Module.php:531, includes/module/WC_WooMercadoPago_Module.php:542
|
138 |
msgid "Currency conversions should be done outside of this module."
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: includes/module/WC_WooMercadoPago_Module.php:538
|
142 |
msgid "ATTENTION: The currency"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: includes/module/WC_WooMercadoPago_Module.php:540
|
146 |
msgid "defined in WooCommerce is different from that used by the credentials of your country.<br>The currency for transactions made with this payment method will be"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: includes/module/WC_WooMercadoPago_Module.php:549
|
150 |
msgid "CONVERTED CURRENCY: Your store is converting currency of"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: includes/module/WC_WooMercadoPago_Module.php:551, templates/checkout/custom_checkout.php:135
|
154 |
msgid "for"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: includes/module/WC_WooMercadoPago_Module.php:558, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:536
|
158 |
msgid "Colombia"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: includes/module/WC_WooMercadoPago_Module.php:560, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:533
|
162 |
msgid "Argentina"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: includes/module/WC_WooMercadoPago_Module.php:562, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:534
|
166 |
msgid "Brazil"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: includes/module/WC_WooMercadoPago_Module.php:564, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:535
|
170 |
msgid "Chile"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: includes/module/WC_WooMercadoPago_Module.php:566, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:537
|
174 |
msgid "Mexico"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: includes/module/WC_WooMercadoPago_Module.php:568, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:539
|
178 |
msgid "Uruguay"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: includes/module/WC_WooMercadoPago_Module.php:570
|
182 |
msgid "Venezuela"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: includes/module/WC_WooMercadoPago_Module.php:572, includes/payments/WC_WooMercadoPago_PaymentAbstract.php:538
|
186 |
msgid "Peru"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: includes/module/WC_WooMercadoPago_Module.php:607
|
190 |
msgid "Update the WooCommerce order to "
|
191 |
msgstr ""
|
192 |
|
259 |
msgstr ""
|
260 |
|
261 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:30
|
262 |
+
msgid "Mercado Pago - Checkout Pro"
|
263 |
msgstr ""
|
264 |
|
265 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:32
|
267 |
msgstr ""
|
268 |
|
269 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:246
|
270 |
+
msgid "Checkout Pro %s"
|
271 |
msgstr ""
|
272 |
|
273 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:249
|
283 |
msgstr ""
|
284 |
|
285 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:283
|
286 |
+
msgid "Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you."
|
287 |
msgstr ""
|
288 |
|
289 |
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:296
|
338 |
msgid "Payment URL pending"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:462
|
342 |
msgid "Select offline payments"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:451
|
346 |
msgid "Select debit cards"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:440
|
350 |
msgid "Select credit cards"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:469, includes/payments/WC_WooMercadoPago_TicketGateway.php:331
|
354 |
msgid "Payment methods"
|
355 |
msgstr ""
|
356 |
|
357 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:470, includes/payments/WC_WooMercadoPago_TicketGateway.php:332
|
358 |
msgid "Choose the available payment methods in your store."
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:476, includes/payments/WC_WooMercadoPago_TicketGateway.php:335
|
362 |
msgid "Activate the available payment methods to your clients."
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:494
|
366 |
msgid "Return to the store"
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:497
|
370 |
msgid "Do you want your customer to automatically return to the store after payment?"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:526
|
374 |
msgid "installments"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:530
|
378 |
msgid "installment"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:598, includes/payments/WC_WooMercadoPago_BasicGateway.php:598, includes/payments/WC_WooMercadoPago_BasicGateway.php:585, includes/payments/WC_WooMercadoPago_BasicGateway.php:585, includes/payments/WC_WooMercadoPago_CustomGateway.php:352, includes/payments/WC_WooMercadoPago_CustomGateway.php:352, includes/payments/WC_WooMercadoPago_CustomGateway.php:340, includes/payments/WC_WooMercadoPago_CustomGateway.php:340, includes/payments/WC_WooMercadoPago_TicketGateway.php:451, includes/payments/WC_WooMercadoPago_TicketGateway.php:451, includes/payments/WC_WooMercadoPago_TicketGateway.php:438, includes/payments/WC_WooMercadoPago_TicketGateway.php:438, includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:100, includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:98
|
382 |
msgid "discount of"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: includes/payments/WC_WooMercadoPago_BasicGateway.php:603, includes/payments/WC_WooMercadoPago_BasicGateway.php:603, includes/payments/WC_WooMercadoPago_BasicGateway.php:590, includes/payments/WC_WooMercadoPago_BasicGateway.php:590, includes/payments/WC_WooMercadoPago_CustomGateway.php:357, includes/payments/WC_WooMercadoPago_CustomGateway.php:357, includes/payments/WC_WooMercadoPago_CustomGateway.php:345, includes/payments/WC_WooMercadoPago_CustomGateway.php:345, includes/payments/WC_WooMercadoPago_TicketGateway.php:456, includes/payments/WC_WooMercadoPago_TicketGateway.php:456, includes/payments/WC_WooMercadoPago_TicketGateway.php:443, includes/payments/WC_WooMercadoPago_TicketGateway.php:443, includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php:102
|
386 |
msgid "fee of"
|
387 |
msgstr ""
|
388 |
|
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 |
|
includes/module/WC_WooMercadoPago_Credentials.php
CHANGED
@@ -49,6 +49,27 @@ class WC_WooMercadoPago_Credentials
|
|
49 |
$this->clientSecret = get_option('_mp_client_secret');
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
/**
|
53 |
* @return bool|string
|
54 |
*/
|
@@ -161,9 +182,7 @@ class WC_WooMercadoPago_Credentials
|
|
161 |
update_option('_site_id_v1', $get_request['response']['site_id'], true);
|
162 |
update_option('_collector_id_v1', $get_request['response']['id'], true);
|
163 |
|
164 |
-
|
165 |
-
self::updatePaymentMethods($mp_v1, $access_token, $payments_response);
|
166 |
-
self::updateTicketMethod($mp_v1, $access_token, $payments_response);
|
167 |
|
168 |
$currency_ratio = WC_WooMercadoPago_Module::get_conversion_rate(
|
169 |
WC_WooMercadoPago_Module::$country_configs[$get_request['response']['site_id']]['currency']
|
@@ -178,7 +197,7 @@ class WC_WooMercadoPago_Credentials
|
|
178 |
}
|
179 |
} catch (WC_WooMercadoPago_Exception $e) {
|
180 |
$log = WC_WooMercadoPago_Log::init_mercado_pago_log('WC_WooMercadoPago_Credentials');
|
181 |
-
$log->write_log('validate_credentials_v1', 'Exception ERROR');
|
182 |
}
|
183 |
|
184 |
self::setNoCredentials();
|
@@ -193,7 +212,7 @@ class WC_WooMercadoPago_Credentials
|
|
193 |
public static function getPaymentResponse($mpInstance, $accessToken)
|
194 |
{
|
195 |
$seller = get_option('_collector_id_v1', '');
|
196 |
-
$payments = $mpInstance->
|
197 |
if (isset($payments['response'])) {
|
198 |
return $payments['response'];
|
199 |
}
|
@@ -266,7 +285,7 @@ class WC_WooMercadoPago_Credentials
|
|
266 |
}
|
267 |
|
268 |
$payment_methods_ticket = array();
|
269 |
-
$excluded = array('
|
270 |
|
271 |
foreach ($paymentsResponse as $payment) {
|
272 |
if (
|
49 |
$this->clientSecret = get_option('_mp_client_secret');
|
50 |
}
|
51 |
|
52 |
+
public static function mercadopago_payment_update()
|
53 |
+
{
|
54 |
+
try {
|
55 |
+
$mp_v1 = WC_WooMercadoPago_Module::getMpInstanceSingleton();
|
56 |
+
if ($mp_v1 instanceof MP == false) {
|
57 |
+
self::setNoCredentials();
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
$access_token = $mp_v1->get_access_token();
|
62 |
+
if (!empty($access_token)) {
|
63 |
+
$payments_response = self::getPaymentResponse($mp_v1, $access_token);
|
64 |
+
self::updatePaymentMethods($mp_v1, $access_token, $payments_response);
|
65 |
+
self::updateTicketMethod($mp_v1, $access_token, $payments_response);
|
66 |
+
}
|
67 |
+
} catch (WC_WooMercadoPago_Exception $e) {
|
68 |
+
$log = WC_WooMercadoPago_Log::init_mercado_pago_log('WC_WooMercadoPago_Credentials');
|
69 |
+
$log->write_log('mercadopago_payment_update', 'Exception ERROR' . $e->getMessage());
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
/**
|
74 |
* @return bool|string
|
75 |
*/
|
182 |
update_option('_site_id_v1', $get_request['response']['site_id'], true);
|
183 |
update_option('_collector_id_v1', $get_request['response']['id'], true);
|
184 |
|
185 |
+
self::mercadopago_payment_update();
|
|
|
|
|
186 |
|
187 |
$currency_ratio = WC_WooMercadoPago_Module::get_conversion_rate(
|
188 |
WC_WooMercadoPago_Module::$country_configs[$get_request['response']['site_id']]['currency']
|
197 |
}
|
198 |
} catch (WC_WooMercadoPago_Exception $e) {
|
199 |
$log = WC_WooMercadoPago_Log::init_mercado_pago_log('WC_WooMercadoPago_Credentials');
|
200 |
+
$log->write_log('validate_credentials_v1', 'Exception ERROR' . $e->getMessage());
|
201 |
}
|
202 |
|
203 |
self::setNoCredentials();
|
212 |
public static function getPaymentResponse($mpInstance, $accessToken)
|
213 |
{
|
214 |
$seller = get_option('_collector_id_v1', '');
|
215 |
+
$payments = $mpInstance->get_payment_methods($accessToken);
|
216 |
if (isset($payments['response'])) {
|
217 |
return $payments['response'];
|
218 |
}
|
285 |
}
|
286 |
|
287 |
$payment_methods_ticket = array();
|
288 |
+
$excluded = array('paypal');
|
289 |
|
290 |
foreach ($paymentsResponse as $payment) {
|
291 |
if (
|
includes/module/WC_WooMercadoPago_Init.php
CHANGED
@@ -95,6 +95,18 @@ class WC_WooMercadoPago_Init
|
|
95 |
}
|
96 |
}
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
/**
|
99 |
* Init the plugin
|
100 |
*/
|
@@ -130,6 +142,7 @@ class WC_WooMercadoPago_Init
|
|
130 |
|
131 |
WC_WooMercadoPago_Module::init_mercado_pago_class();
|
132 |
WC_WooMercadoPago_ReviewNotice::initMercadopagoReviewNotice();
|
|
|
133 |
|
134 |
add_action('woocommerce_order_actions', array(__CLASS__, 'add_mp_order_meta_box_actions'));
|
135 |
} else {
|
95 |
}
|
96 |
}
|
97 |
|
98 |
+
/**
|
99 |
+
* Update plugin version in db
|
100 |
+
*/
|
101 |
+
public static function update_plugin_version()
|
102 |
+
{
|
103 |
+
$oldVersion = get_option('_mp_version', '0');
|
104 |
+
if (version_compare(WC_WooMercadoPago_Constants::VERSION, $oldVersion, '>')) {
|
105 |
+
do_action('mercadopago_plugin_updated');
|
106 |
+
update_option('_mp_version', WC_WooMercadoPago_Constants::VERSION, true);
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
/**
|
111 |
* Init the plugin
|
112 |
*/
|
142 |
|
143 |
WC_WooMercadoPago_Module::init_mercado_pago_class();
|
144 |
WC_WooMercadoPago_ReviewNotice::initMercadopagoReviewNotice();
|
145 |
+
self::update_plugin_version();
|
146 |
|
147 |
add_action('woocommerce_order_actions', array(__CLASS__, 'add_mp_order_meta_box_actions'));
|
148 |
} else {
|
includes/module/WC_WooMercadoPago_Module.php
CHANGED
@@ -38,6 +38,7 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
|
|
38 |
add_filter('woocommerce_available_payment_gateways', array($this, 'filterPaymentMethodByShipping'));
|
39 |
add_filter('plugin_action_links_' . WC_MERCADOPAGO_BASENAME, array($this, 'woomercadopago_settings_link'));
|
40 |
add_filter('plugin_row_meta', array($this, 'mp_plugin_row_meta'), 10, 2);
|
|
|
41 |
|
42 |
if (is_admin()) {
|
43 |
//validate credentials
|
@@ -613,6 +614,7 @@ class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
|
|
613 |
|
614 |
public static function generate_refund_cancel_subscription($domain, $success_msg, $fail_msg, $options, $str1, $str2, $str3, $str4)
|
615 |
{
|
|
|
616 |
$subscription_js = '<script type="text/javascript">
|
617 |
( function() {
|
618 |
var MPSubscription = {}
|
38 |
add_filter('woocommerce_available_payment_gateways', array($this, 'filterPaymentMethodByShipping'));
|
39 |
add_filter('plugin_action_links_' . WC_MERCADOPAGO_BASENAME, array($this, 'woomercadopago_settings_link'));
|
40 |
add_filter('plugin_row_meta', array($this, 'mp_plugin_row_meta'), 10, 2);
|
41 |
+
add_action('mercadopago_plugin_updated', array('WC_WooMercadoPago_Credentials', 'mercadopago_payment_update'));
|
42 |
|
43 |
if (is_admin()) {
|
44 |
//validate credentials
|
614 |
|
615 |
public static function generate_refund_cancel_subscription($domain, $success_msg, $fail_msg, $options, $str1, $str2, $str3, $str4)
|
616 |
{
|
617 |
+
error_log('generate_refund_cancel_subscription');
|
618 |
$subscription_js = '<script type="text/javascript">
|
619 |
( function() {
|
620 |
var MPSubscription = {}
|
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.
|
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.1';
|
16 |
const MIN_PHP = 5.6;
|
17 |
const API_MP_BASE_URL = 'https://api.mercadopago.com';
|
18 |
}
|
includes/module/preference/WC_WooMercadoPago_PreferenceAbstract.php
CHANGED
@@ -181,7 +181,7 @@ abstract class WC_WooMercadoPago_PreferenceAbstract extends WC_Payment_Gateway
|
|
181 |
$items = array();
|
182 |
foreach ($this->order->get_items() as $item) {
|
183 |
if ($item['qty']) {
|
184 |
-
$product =
|
185 |
$product_title = method_exists($product, 'get_description') ? $product->get_name() : $product->post->post_title;
|
186 |
$product_content = method_exists($product, 'get_description') ? $product->get_description() : $product->post->post_content;
|
187 |
// Calculates line amount and discounts.
|
181 |
$items = array();
|
182 |
foreach ($this->order->get_items() as $item) {
|
183 |
if ($item['qty']) {
|
184 |
+
$product = wc_get_product($item['product_id']);
|
185 |
$product_title = method_exists($product, 'get_description') ? $product->get_name() : $product->post->post_title;
|
186 |
$product_content = method_exists($product, 'get_description') ? $product->get_description() : $product->post->post_content;
|
187 |
// Calculates line amount and discounts.
|
includes/module/sdk/lib/MP.php
CHANGED
@@ -534,17 +534,25 @@ class MP
|
|
534 |
* @return array|null
|
535 |
* @throws WC_WooMercadoPago_Exception
|
536 |
*/
|
537 |
-
public function get_payment_methods()
|
538 |
{
|
539 |
$request = array(
|
540 |
'headers' => array(
|
541 |
-
'Authorization' => 'Bearer ' . $
|
542 |
),
|
543 |
'uri' => '/v1/payment_methods',
|
544 |
);
|
545 |
|
546 |
$response = MPRestClient::get($request);
|
547 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
return $response;
|
549 |
}
|
550 |
|
534 |
* @return array|null
|
535 |
* @throws WC_WooMercadoPago_Exception
|
536 |
*/
|
537 |
+
public function get_payment_methods($accessToken)
|
538 |
{
|
539 |
$request = array(
|
540 |
'headers' => array(
|
541 |
+
'Authorization' => 'Bearer ' . $accessToken
|
542 |
),
|
543 |
'uri' => '/v1/payment_methods',
|
544 |
);
|
545 |
|
546 |
$response = MPRestClient::get($request);
|
547 |
+
|
548 |
+
if ($response['status'] > 202) {
|
549 |
+
$log = WC_WooMercadoPago_Log::init_mercado_pago_log('get_payment_methods');
|
550 |
+
$log->write_log('API get_payment_methods error: ', $response['response']['message']);
|
551 |
+
return null;
|
552 |
+
}
|
553 |
+
|
554 |
+
asort($response);
|
555 |
+
|
556 |
return $response;
|
557 |
}
|
558 |
|
includes/payments/WC_WooMercadoPago_BasicGateway.php
CHANGED
@@ -27,7 +27,7 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
|
|
27 |
$this->description = __('It offers all means of payment: credit and debit cards, cash and account money. Your customers choose whether they pay as guests or from their Mercado Pago account.', 'woocommerce-mercadopago');
|
28 |
|
29 |
$this->form_fields = array();
|
30 |
-
$this->method_title = __('Mercado Pago Checkout', 'woocommerce-mercadopago');
|
31 |
$this->method = $this->getOption('method', 'redirect');
|
32 |
$this->title = __('Pay with the payment method you prefer', 'woocommerce-mercadopago');
|
33 |
$this->method_description = $this->getMethodDescription($this->description);
|
@@ -243,7 +243,7 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
|
|
243 |
{
|
244 |
$checkout_header = array(
|
245 |
'title' => sprintf(
|
246 |
-
__('
|
247 |
'<div class="row">
|
248 |
<div class="mp-col-md-12 mp_subtitle_header">
|
249 |
' . __('Accept all method of payment and take your charges to another level', 'woocommerce-mercadopago') . '
|
@@ -280,7 +280,7 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
|
|
280 |
public function field_checkout_options_description()
|
281 |
{
|
282 |
$checkout_options_description = array(
|
283 |
-
'title' => __('Enable the experience of the
|
284 |
'type' => 'title',
|
285 |
'class' => 'mp_small_text'
|
286 |
);
|
@@ -415,10 +415,8 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
|
|
415 |
|
416 |
//change type atm to ticket
|
417 |
foreach ($all_payments as $key => $value) {
|
418 |
-
if ($value['type'] == 'atm') {
|
419 |
$all_payments[$key]['type'] = 'ticket';
|
420 |
-
} else {
|
421 |
-
continue;
|
422 |
}
|
423 |
}
|
424 |
|
@@ -431,10 +429,6 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
|
|
431 |
$count_payment = 0;
|
432 |
|
433 |
foreach ($all_payments as $payment_method) {
|
434 |
-
if ($payment_method['type'] == 'account_money') {
|
435 |
-
$count_payment++;
|
436 |
-
continue;
|
437 |
-
} else {
|
438 |
if ($payment_method['type'] == 'credit_card') {
|
439 |
$element = array(
|
440 |
'label' => $payment_method['name'],
|
@@ -469,18 +463,19 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
|
|
469 |
),
|
470 |
);
|
471 |
}
|
472 |
-
}
|
473 |
|
474 |
-
|
|
|
475 |
$element['title'] = __('Payment methods', 'woocommerce-mercadopago');
|
476 |
$element['desc_tip'] = __('Choose the available payment methods in your store.', 'woocommerce-mercadopago');
|
477 |
}
|
|
|
|
|
|
|
478 |
if ($count_payment == count($get_payment_methods)) {
|
479 |
$element['description'] = __('Activate the available payment methods to your clients.', 'woocommerce-mercadopago');
|
480 |
}
|
481 |
|
482 |
-
$count_payment++;
|
483 |
-
|
484 |
$ex_payments["ex_payments_" . $payment_method['id']] = $element;
|
485 |
$ex_payments_sort[] = "ex_payments_" . $payment_method['id'];
|
486 |
}
|
@@ -616,7 +611,7 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
|
|
616 |
'redirect' => $this->create_preference($order)
|
617 |
);
|
618 |
} elseif ('modal' == $this->method) {
|
619 |
-
$this->log->write_log(__FUNCTION__, 'preparing to render
|
620 |
return array(
|
621 |
'result' => 'success',
|
622 |
'redirect' => $order->get_checkout_payment_url(true)
|
27 |
$this->description = __('It offers all means of payment: credit and debit cards, cash and account money. Your customers choose whether they pay as guests or from their Mercado Pago account.', 'woocommerce-mercadopago');
|
28 |
|
29 |
$this->form_fields = array();
|
30 |
+
$this->method_title = __('Mercado Pago - Checkout Pro', 'woocommerce-mercadopago');
|
31 |
$this->method = $this->getOption('method', 'redirect');
|
32 |
$this->title = __('Pay with the payment method you prefer', 'woocommerce-mercadopago');
|
33 |
$this->method_description = $this->getMethodDescription($this->description);
|
243 |
{
|
244 |
$checkout_header = array(
|
245 |
'title' => sprintf(
|
246 |
+
__('Checkout Pro %s', 'woocommerce-mercadopago'),
|
247 |
'<div class="row">
|
248 |
<div class="mp-col-md-12 mp_subtitle_header">
|
249 |
' . __('Accept all method of payment and take your charges to another level', 'woocommerce-mercadopago') . '
|
280 |
public function field_checkout_options_description()
|
281 |
{
|
282 |
$checkout_options_description = array(
|
283 |
+
'title' => __('Enable the experience of the Checkout Pro in your online store, select the means of payment available to your customers and<br> define the maximum fees in which they can pay you.', 'woocommerce-mercadopago'),
|
284 |
'type' => 'title',
|
285 |
'class' => 'mp_small_text'
|
286 |
);
|
415 |
|
416 |
//change type atm to ticket
|
417 |
foreach ($all_payments as $key => $value) {
|
418 |
+
if ($value['type'] == 'atm' || $value['type'] == 'bank_transfer') {
|
419 |
$all_payments[$key]['type'] = 'ticket';
|
|
|
|
|
420 |
}
|
421 |
}
|
422 |
|
429 |
$count_payment = 0;
|
430 |
|
431 |
foreach ($all_payments as $payment_method) {
|
|
|
|
|
|
|
|
|
432 |
if ($payment_method['type'] == 'credit_card') {
|
433 |
$element = array(
|
434 |
'label' => $payment_method['name'],
|
463 |
),
|
464 |
);
|
465 |
}
|
|
|
466 |
|
467 |
+
|
468 |
+
if ($count_payment == 0) {
|
469 |
$element['title'] = __('Payment methods', 'woocommerce-mercadopago');
|
470 |
$element['desc_tip'] = __('Choose the available payment methods in your store.', 'woocommerce-mercadopago');
|
471 |
}
|
472 |
+
|
473 |
+
$count_payment++;
|
474 |
+
|
475 |
if ($count_payment == count($get_payment_methods)) {
|
476 |
$element['description'] = __('Activate the available payment methods to your clients.', 'woocommerce-mercadopago');
|
477 |
}
|
478 |
|
|
|
|
|
479 |
$ex_payments["ex_payments_" . $payment_method['id']] = $element;
|
480 |
$ex_payments_sort[] = "ex_payments_" . $payment_method['id'];
|
481 |
}
|
611 |
'redirect' => $this->create_preference($order)
|
612 |
);
|
613 |
} elseif ('modal' == $this->method) {
|
614 |
+
$this->log->write_log(__FUNCTION__, 'preparing to render Checkout Pro view.');
|
615 |
return array(
|
616 |
'result' => 'success',
|
617 |
'redirect' => $order->get_checkout_payment_url(true)
|
includes/payments/hooks/WC_WooMercadoPago_Hook_Abstract.php
CHANGED
@@ -113,6 +113,7 @@ abstract class WC_WooMercadoPago_Hook_Abstract
|
|
113 |
$woo = WC_WooMercadoPago_Module::woocommerce_instance();
|
114 |
$gateways = $woo->payment_gateways->get_available_payment_gateways();
|
115 |
|
|
|
116 |
$available_payments = array();
|
117 |
foreach ($gateways as $gateway) {
|
118 |
$available_payments[] = $gateway->id;
|
@@ -198,22 +199,6 @@ abstract class WC_WooMercadoPago_Hook_Abstract
|
|
198 |
*/
|
199 |
private function validateCredentials($key, $value, $valueCredentialProduction = null)
|
200 |
{
|
201 |
-
if ($key == '_mp_public_key_test' && $value == $this->payment->mp_public_key_test) {
|
202 |
-
return true;
|
203 |
-
}
|
204 |
-
|
205 |
-
if ($key == '_mp_access_token_test' && $value == $this->payment->mp_access_token_test) {
|
206 |
-
return true;
|
207 |
-
}
|
208 |
-
|
209 |
-
if ($key == '_mp_public_key_prod' && $value == $this->payment->mp_public_key_prod) {
|
210 |
-
return true;
|
211 |
-
}
|
212 |
-
|
213 |
-
if ($key == '_mp_access_token_prod' && $value == $this->payment->mp_access_token_prod) {
|
214 |
-
return true;
|
215 |
-
}
|
216 |
-
|
217 |
if ($this->validatePublicKey($key, $value)) {
|
218 |
return true;
|
219 |
}
|
113 |
$woo = WC_WooMercadoPago_Module::woocommerce_instance();
|
114 |
$gateways = $woo->payment_gateways->get_available_payment_gateways();
|
115 |
|
116 |
+
|
117 |
$available_payments = array();
|
118 |
foreach ($gateways as $gateway) {
|
119 |
$available_payments[] = $gateway->id;
|
199 |
*/
|
200 |
private function validateCredentials($key, $value, $valueCredentialProduction = null)
|
201 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
if ($this->validatePublicKey($key, $value)) {
|
203 |
return true;
|
204 |
}
|
includes/payments/hooks/WC_WooMercadoPago_Hook_Basic.php
CHANGED
@@ -75,7 +75,7 @@ class WC_WooMercadoPago_Hook_Basic extends WC_WooMercadoPago_Hook_Abstract
|
|
75 |
'</a>';
|
76 |
return $html;
|
77 |
} else {
|
78 |
-
$this->payment->log->write_log(__FUNCTION__, 'unable to build
|
79 |
$html = '<p>' .
|
80 |
__('There was an error processing your payment. Please try again or contact us for Assistance.', 'woocommerce-mercadopago') .
|
81 |
'</p>' .
|
@@ -122,4 +122,4 @@ class WC_WooMercadoPago_Hook_Basic extends WC_WooMercadoPago_Hook_Abstract
|
|
122 |
return;
|
123 |
}
|
124 |
|
125 |
-
}
|
75 |
'</a>';
|
76 |
return $html;
|
77 |
} else {
|
78 |
+
$this->payment->log->write_log(__FUNCTION__, 'unable to build Checkout Pro URL.');
|
79 |
$html = '<p>' .
|
80 |
__('There was an error processing your payment. Please try again or contact us for Assistance.', 'woocommerce-mercadopago') .
|
81 |
'</p>' .
|
122 |
return;
|
123 |
}
|
124 |
|
125 |
+
}
|
includes/payments/hooks/WC_WooMercadoPago_Hook_Custom.php
CHANGED
@@ -90,7 +90,8 @@ class WC_WooMercadoPago_Hook_Custom extends WC_WooMercadoPago_Hook_Abstract
|
|
90 |
'discount_info6' => __('Terms and conditions of use', 'woocommerce-mercadopago'),
|
91 |
'loading' => plugins_url('../../assets/images/', plugin_dir_path(__FILE__)) . 'loading.gif',
|
92 |
'check' => plugins_url('../../assets/images/', plugin_dir_path(__FILE__)) . 'check.png',
|
93 |
-
'error' => plugins_url('../../assets/images/', plugin_dir_path(__FILE__)) . 'error.png'
|
|
|
94 |
)
|
95 |
);
|
96 |
}
|
90 |
'discount_info6' => __('Terms and conditions of use', 'woocommerce-mercadopago'),
|
91 |
'loading' => plugins_url('../../assets/images/', plugin_dir_path(__FILE__)) . 'loading.gif',
|
92 |
'check' => plugins_url('../../assets/images/', plugin_dir_path(__FILE__)) . 'check.png',
|
93 |
+
'error' => plugins_url('../../assets/images/', plugin_dir_path(__FILE__)) . 'error.png',
|
94 |
+
'plugin_version' => WC_WooMercadoPago_Constants::VERSION
|
95 |
)
|
96 |
);
|
97 |
}
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: mercadopago, mercadolivre, claudiosanches, marcelohama
|
3 |
Tags: ecommerce, mercadopago, woocommerce
|
4 |
Requires at least: 4.9.10
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 4.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -116,6 +116,20 @@ 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.0 (01/12/2020) =
|
120 |
* Features
|
121 |
- Add review rating banner
|
@@ -124,7 +138,7 @@ Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks
|
|
124 |
|
125 |
* Bug fixes
|
126 |
- Fixed error that prevents configuring the Mercado Pago plugin
|
127 |
-
|
128 |
= v4.5.0 (26/10/2020) =
|
129 |
* Features
|
130 |
- Compatibility with WooCommerce v4.6.x
|
2 |
Contributors: mercadopago, mercadolivre, claudiosanches, marcelohama
|
3 |
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 |
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
|
124 |
+
- Added version in SDK Mercado Pago
|
125 |
+
- Added compatibility with WooCommerce Accepted Payment Methods plugin
|
126 |
+
|
127 |
+
* Bug fixes
|
128 |
+
- Changed event load of credit-card.js in checkout page
|
129 |
+
- Changed API to get payment_methods in Checkout Custo Offline and Checkout pro
|
130 |
+
- Changed event load in admin payments config
|
131 |
+
- Changed name Checkout Mercado Pago to Checkout Pro
|
132 |
+
|
133 |
= v4.6.0 (01/12/2020) =
|
134 |
* Features
|
135 |
- Add review rating banner
|
138 |
|
139 |
* Bug fixes
|
140 |
- Fixed error that prevents configuring the Mercado Pago plugin
|
141 |
+
|
142 |
= v4.5.0 (26/10/2020) =
|
143 |
* Features
|
144 |
- Compatibility with WooCommerce v4.6.x
|
woocommerce-mercadopago.php
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
* Plugin Name: Mercado Pago payments for WooCommerce
|
5 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
6 |
* Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
|
7 |
-
* Version: 4.6.
|
8 |
* Author: Mercado Pago
|
9 |
* Author URI: https://developers.mercadopago.com/
|
10 |
* Text Domain: woocommerce-mercadopago
|
11 |
* Domain Path: /i18n/languages/
|
12 |
* WC requires at least: 3.0.0
|
13 |
-
* WC tested up to: 4.
|
14 |
* @package MercadoPago
|
15 |
* @category Core
|
16 |
* @author Mercado Pago
|
4 |
* Plugin Name: Mercado Pago payments for WooCommerce
|
5 |
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
|
6 |
* Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
|
7 |
+
* Version: 4.6.1
|
8 |
* Author: Mercado Pago
|
9 |
* Author URI: https://developers.mercadopago.com/
|
10 |
* Text Domain: woocommerce-mercadopago
|
11 |
* Domain Path: /i18n/languages/
|
12 |
* WC requires at least: 3.0.0
|
13 |
+
* WC tested up to: 4.8.0
|
14 |
* @package MercadoPago
|
15 |
* @category Core
|
16 |
* @author Mercado Pago
|