Version Description
2017/04/07 =
Adicionado suporte ao novo sistema de logs do WooCommerce 3.0, assim permitindo que seja utilizado sistema de logs personalizados.
Adicionado validao e higienizao no cdigo de transao do PagSeguro antes de salvar.
Download this release
Release Info
Developer | claudiosanches |
Plugin | WooCommerce PagSeguro |
Version | 2.12.2 |
Comparing to | |
See all releases |
Code changes from version 2.12.1 to 2.12.2
- assets/css/{transparent-checkout.css → frontend/transparent-checkout.css} +0 -0
- assets/css/frontend/transparent-checkout.min.css +1 -0
- assets/css/transparent-checkout.min.css +0 -1
- assets/js/{admin.js → admin/admin.js} +0 -0
- assets/js/{admin.min.js → admin/admin.min.js} +0 -0
- assets/js/{transparent-checkout.js → frontend/transparent-checkout.js} +0 -0
- assets/js/frontend/transparent-checkout.min.js +1 -0
- assets/js/transparent-checkout.min.js +0 -1
- includes/class-wc-pagseguro-gateway.php +9 -5
- languages/woocommerce-pagseguro.pot +76 -76
- readme.txt +9 -3
- woocommerce-pagseguro.php +2 -2
assets/css/{transparent-checkout.css → frontend/transparent-checkout.css}
RENAMED
File without changes
|
assets/css/frontend/transparent-checkout.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
#pagseguro-payment-form{display:none}#pagseguro-bank-transfer-form ul:after,#pagseguro-bank-transfer-form ul:before,#pagseguro-payment-methods:after,#pagseguro-payment-methods:before{content:" ";display:table}#pagseguro-bank-transfer-form ul:after,#pagseguro-payment-methods:after{clear:both}#pagseguro-bank-transfer-form ul,#pagseguro-payment-methods{list-style:none;margin:0 0 10px;padding:0}#pagseguro-bank-transfer-form ul input[type=radio],#pagseguro-payment-methods input[type=radio]{display:none}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li{border-color:transparent transparent #bbb;border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-style:solid;border-width:1px;display:block;float:left;list-style:none;margin:0;padding:0}.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li{padding:5px!important}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods label,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods label{cursor:pointer;display:block;font-weight:700;margin:0;padding:5px 10px}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li.active{border-color:#bbb #bbb transparent;border-style:solid;border-width:1px}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form p,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form p{margin-bottom:.5em}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form li,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form li{border:none;display:block;float:left;list-style:none;margin:0;padding:0;width:130px}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form label,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form label{cursor:pointer;display:block;font-weight:700;margin:0;padding:5px 10px;text-align:center}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form i,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form i{background-color:transparent;background-image:url(../images/transparent-checkout-icons.png);background-repeat:no-repeat;display:block;height:51px;margin:0 auto;width:51px}#pagseguro-icon-bradesco{background-position:0 -51px}#pagseguro-icon-itau{background-position:-204px -51px}#pagseguro-icon-bancodobrasil{background-position:-51px -51px}#pagseguro-icon-banrisul{background-position:-102px -51px}#pagseguro-icon-hsbc{background-position:-153px -51px}#pagseguro-bank-transfer-form li.active #pagseguro-icon-bradesco,#pagseguro-icon-bradesco:hover{background-position:0 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-itau,#pagseguro-icon-itau:hover{background-position:-204px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-bancodobrasil,#pagseguro-icon-bancodobrasil:hover{background-position:-51px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-banrisul,#pagseguro-icon-banrisul:hover{background-position:-102px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-hsbc,#pagseguro-icon-hsbc:hover{background-position:-153px 0}#pagseguro-icon-ticket{background:transparent url(../images/transparent-checkout-icons.png) no-repeat top right;display:block;float:left;height:51px;margin:0 10px 5px 0;width:51px}.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field{float:none;width:100%}.woocommerce-pagseguro-form-storefront .woocommerce-error ul{margin:0;padding:0}@media screen and (max-width:500px){.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li{border:none;-webkit-border-radius:0;border-radius:0;float:none;margin:0;padding:0}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li.active{border:none}#pagseguro-payment-methods input[type=radio]{display:inline}.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last,.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last{float:none;width:96%}}
|
assets/css/transparent-checkout.min.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
#pagseguro-bank-transfer-form ul input[type=radio],#pagseguro-payment-form,#pagseguro-payment-methods input[type=radio]{display:none}#pagseguro-bank-transfer-form ul:after,#pagseguro-bank-transfer-form ul:before,#pagseguro-payment-methods:after,#pagseguro-payment-methods:before{content:" ";display:table}#pagseguro-bank-transfer-form ul:after,#pagseguro-payment-methods:after{clear:both}#pagseguro-bank-transfer-form ul,#pagseguro-payment-methods{list-style:none;margin:0 0 10px;padding:0}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li{border-color:transparent transparent #bbb;border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-style:solid;border-width:1px;display:block;float:left;list-style:none;margin:0;padding:0}.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li{padding:5px!important}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods label,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods label{cursor:pointer;display:block;font-weight:700;margin:0;padding:5px 10px}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li.active{border-color:#bbb #bbb transparent;border-style:solid;border-width:1px}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form p,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form p{margin-bottom:.5em}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form li,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form li{border:none;display:block;float:left;list-style:none;margin:0;padding:0;width:130px}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form label,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form label{cursor:pointer;display:block;font-weight:700;margin:0;padding:5px 10px;text-align:center}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form i,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form i{background-color:transparent;background-image:url(../images/transparent-checkout-icons.png);background-repeat:no-repeat;display:block;height:51px;margin:0 auto;width:51px}#pagseguro-icon-bradesco{background-position:0 -51px}#pagseguro-icon-itau{background-position:-204px -51px}#pagseguro-icon-bancodobrasil{background-position:-51px -51px}#pagseguro-icon-banrisul{background-position:-102px -51px}#pagseguro-icon-hsbc{background-position:-153px -51px}#pagseguro-bank-transfer-form li.active #pagseguro-icon-bradesco,#pagseguro-icon-bradesco:hover{background-position:0 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-itau,#pagseguro-icon-itau:hover{background-position:-204px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-bancodobrasil,#pagseguro-icon-bancodobrasil:hover{background-position:-51px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-banrisul,#pagseguro-icon-banrisul:hover{background-position:-102px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-hsbc,#pagseguro-icon-hsbc:hover{background-position:-153px 0}#pagseguro-icon-ticket{background:url(../images/transparent-checkout-icons.png) top right no-repeat;display:block;float:left;height:51px;margin:0 10px 5px 0;width:51px}.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field{float:none;width:100%}.woocommerce-pagseguro-form-storefront .woocommerce-error ul{margin:0;padding:0}@media screen and (max-width:500px){.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li{border:none;-webkit-border-radius:0;border-radius:0;float:none;margin:0;padding:0}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li.active{border:none}#pagseguro-payment-methods input[type=radio]{display:inline}.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last,.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last{float:none;width:96%}}
|
|
assets/js/{admin.js → admin/admin.js}
RENAMED
File without changes
|
assets/js/{admin.min.js → admin/admin.min.js}
RENAMED
File without changes
|
assets/js/{transparent-checkout.js → frontend/transparent-checkout.js}
RENAMED
File without changes
|
assets/js/frontend/transparent-checkout.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){"use strict";a(function(){function b(b){a("#pagseguro-credit-card-form").attr("data-credit-card-brand",b)}function c(a){return"R$ "+parseFloat(a,10).toFixed(2).replace(".",",").toString()}function d(a){var b=!0===a.interestFree?" "+wc_pagseguro_params.interest_free:"";return'<option value="'+a.quantity+'" data-installment-value="'+a.installmentAmount+'">'+a.quantity+"x "+c(a.installmentAmount)+b+"</option>"}function e(b){var c=a("#pagseguro-credit-card-form");a(".woocommerce-error",c).remove(),c.prepend('<div class="woocommerce-error" style="margin-bottom: 0.5em !important;">'+b+"</div>")}function f(){var b=a("#pagseguro-payment-methods");1===a("input[type=radio]",b).length&&b.hide()}function g(b){a(".pagseguro-method-form").hide(),a("#pagseguro-payment-methods li").removeClass("active"),a("#pagseguro-"+b+"-form").show(),a("#pagseguro-payment-method-"+b).parent("label").parent("li").addClass("active")}function h(){f(),a("#pagseguro-payment-form").show(),g(a("#pagseguro-payment-methods input[type=radio]:checked").val()),a("#pagseguro-card-holder-cpf").mask("000.000.000-00"),a("#pagseguro-card-holder-birth-date").mask("00/00/0000");var b=function(a){return 11===a.replace(/\D/g,"").length?"(00) 00000-0000":"(00) 0000-00009"},c={onKeyPress:function(a,c,d,e){d.mask(b.apply({},arguments),e)}};a("#pagseguro-card-holder-phone").mask(b,c),a("#pagseguro-bank-transfer-form input[type=radio]:checked").parent("label").parent("li").addClass("active")}function i(){if(j)return j=!1,!0;if(!a("#payment_method_pagseguro").is(":checked"))return!0;if("credit-card"!==a("body li.payment_method_pagseguro input[name=pagseguro_payment_method]:checked").val())return a("form.checkout, form#order_review").append(a('<input name="pagseguro_sender_hash" type="hidden" />').val(PagSeguroDirectPayment.getSenderHash())),!0;var b=a("form.checkout, form#order_review"),c=a("#pagseguro-credit-card-form",b),d=!1,f="",g=c.attr("data-credit-card-brand"),h=a("#pagseguro-card-number",b).val().replace(/[^\d]/g,""),i=a("#pagseguro-card-cvc",b).val(),k=a("#pagseguro-card-expiry",b).val().replace(/[^\d]/g,"").substr(0,2),l=a("#pagseguro-card-expiry",b).val().replace(/[^\d]/g,"").substr(2),m=a("#pagseguro-card-installments",b),n=new Date;return f+="<ul>",void 0!==g&&"error"!==g||(f+="<li>"+wc_pagseguro_params.invalid_card+"</li>",d=!0),2===k.length&&4===l.length||(f+="<li>"+wc_pagseguro_params.invalid_expiry+"</li>",d=!0),2===k.length&&4===l.length&&(k>12||l<=n.getFullYear()-1||l>=n.getFullYear()+20||k<n.getMonth()+2&&l.toString()===n.getFullYear().toString())&&(f+="<li>"+wc_pagseguro_params.expired_date+"</li>",d=!0),"0"===m.val()&&(f+="<li>"+wc_pagseguro_params.empty_installments+"</li>",d=!0),f+="</ul>",d?e(f):PagSeguroDirectPayment.createCardToken({brand:g,cardNumber:h,cvv:i,expirationMonth:k,expirationYear:l,success:function(c){a("input[name=pagseguro_credit_card_hash], input[name=pagseguro_credit_card_hash], input[name=pagseguro_installment_value]",b).remove(),b.append(a('<input name="pagseguro_credit_card_hash" type="hidden" />').val(c.card.token)),b.append(a('<input name="pagseguro_sender_hash" type="hidden" />').val(PagSeguroDirectPayment.getSenderHash())),b.append(a('<input name="pagseguro_installment_value" type="hidden" />').val(a("option:selected",m).attr("data-installment-value"))),j=!0,b.submit()},error:function(){e(wc_pagseguro_params.general_error)}}),!1}var j=!1;wc_pagseguro_params.session_id?(PagSeguroDirectPayment.setSessionId(wc_pagseguro_params.session_id),"1"===wc_checkout_params.is_checkout?a("body").on("updated_checkout",function(){h()}):h(),a("body").on("click","#pagseguro-bank-transfer-form input[type=radio]",function(){a("#pagseguro-bank-transfer-form li").removeClass("active"),a(this).parent("label").parent("li").addClass("active")}),a("body").on("click","#pagseguro-payment-methods input[type=radio]",function(){g(a(this).val())}),a("body").on("focusout","#pagseguro-card-number",function(){var c=a(this).val().replace(/[^\d]/g,"").substr(0,6),d=a("body #pagseguro-card-installments");6===c.length&&(d.empty(),d.attr("disabled","disabled"),PagSeguroDirectPayment.getBrand({cardBin:c,success:function(c){a("body").trigger("pagseguro_credit_card_brand",c.brand.name),b(c.brand.name)},error:function(){a("body").trigger("pagseguro_credit_card_brand","error"),b("error")}}))}),a("body").on("focus","#pagseguro-card-number, #pagseguro-card-expiry",function(){a("#pagseguro-credit-card-form .woocommerce-error").remove()}),a("body").on("pagseguro_credit_card_brand",function(b,c){"error"!==c?PagSeguroDirectPayment.getInstallments({amount:a("body #pagseguro-cart-total").val(),brand:c,success:function(b){var f=a("body #pagseguro-card-installments");!1===b.error?(f.empty(),f.removeAttr("disabled"),f.append('<option value="0">--</option>'),a.each(b.installments[c],function(a,b){f.append(d(b))})):e(wc_pagseguro_params.invalid_card)},error:function(){e(wc_pagseguro_params.invalid_card)}}):e(wc_pagseguro_params.invalid_card)}),a("form.checkout").on("checkout_place_order_pagseguro",function(){return i()}),a("form#order_review").submit(function(){return i()})):a("body").on("updated_checkout",function(){a("#pagseguro-payment-form").remove()})})}(jQuery);
|
assets/js/transparent-checkout.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(a){"use strict";a(function(){function b(b){a("#pagseguro-credit-card-form").attr("data-credit-card-brand",b)}function c(a){return"R$ "+parseFloat(a,10).toFixed(2).replace(".",",").toString()}function d(a){var b=!0===a.interestFree?" "+wc_pagseguro_params.interest_free:"";return'<option value="'+a.quantity+'" data-installment-value="'+a.installmentAmount+'">'+a.quantity+"x "+c(a.installmentAmount)+b+"</option>"}function e(b){var c=a("#pagseguro-credit-card-form");a(".woocommerce-error",c).remove(),c.prepend('<div class="woocommerce-error" style="margin-bottom: 0.5em !important;">'+b+"</div>")}function f(){var b=a("#pagseguro-payment-methods");1===a("input[type=radio]",b).length&&b.hide()}function g(b){a(".pagseguro-method-form").hide(),a("#pagseguro-payment-methods li").removeClass("active"),a("#pagseguro-"+b+"-form").show(),a("#pagseguro-payment-method-"+b).parent("label").parent("li").addClass("active")}function h(){f(),a("#pagseguro-payment-form").show(),g(a("#pagseguro-payment-methods input[type=radio]:checked").val()),a("#pagseguro-card-holder-cpf").mask("000.000.000-00"),a("#pagseguro-card-holder-birth-date").mask("00/00/0000");var b=function(a){return 11===a.replace(/\D/g,"").length?"(00) 00000-0000":"(00) 0000-00009"},c={onKeyPress:function(a,c,d,e){d.mask(b.apply({},arguments),e)}};a("#pagseguro-card-holder-phone").mask(b,c),a("#pagseguro-bank-transfer-form input[type=radio]:checked").parent("label").parent("li").addClass("active")}function i(){if(j)return j=!1,!0;if(!a("#payment_method_pagseguro").is(":checked"))return!0;if("credit-card"!==a("body li.payment_method_pagseguro input[name=pagseguro_payment_method]:checked").val())return a("form.checkout, form#order_review").append(a('<input name="pagseguro_sender_hash" type="hidden" />').val(PagSeguroDirectPayment.getSenderHash())),!0;var b=a("form.checkout, form#order_review"),c=a("#pagseguro-credit-card-form",b),d=!1,f="",g=c.attr("data-credit-card-brand"),h=a("#pagseguro-card-number",b).val().replace(/[^\d]/g,""),i=a("#pagseguro-card-cvc",b).val(),k=a("#pagseguro-card-expiry",b).val().replace(/[^\d]/g,"").substr(0,2),l=a("#pagseguro-card-expiry",b).val().replace(/[^\d]/g,"").substr(2),m=a("#pagseguro-card-installments",b),n=new Date;return f+="<ul>",("undefined"==typeof g||"error"===g)&&(f+="<li>"+wc_pagseguro_params.invalid_card+"</li>",d=!0),(2!==k.length||4!==l.length)&&(f+="<li>"+wc_pagseguro_params.invalid_expiry+"</li>",d=!0),2===k.length&&4===l.length&&(k>12||l<=n.getFullYear()-1||l>=n.getFullYear()+20||k<n.getMonth()+2&&l.toString()===n.getFullYear().toString())&&(f+="<li>"+wc_pagseguro_params.expired_date+"</li>",d=!0),"0"===m.val()&&(f+="<li>"+wc_pagseguro_params.empty_installments+"</li>",d=!0),f+="</ul>",d?e(f):PagSeguroDirectPayment.createCardToken({brand:g,cardNumber:h,cvv:i,expirationMonth:k,expirationYear:l,success:function(c){a("input[name=pagseguro_credit_card_hash], input[name=pagseguro_credit_card_hash], input[name=pagseguro_installment_value]",b).remove(),b.append(a('<input name="pagseguro_credit_card_hash" type="hidden" />').val(c.card.token)),b.append(a('<input name="pagseguro_sender_hash" type="hidden" />').val(PagSeguroDirectPayment.getSenderHash())),b.append(a('<input name="pagseguro_installment_value" type="hidden" />').val(a("option:selected",m).attr("data-installment-value"))),j=!0,b.submit()},error:function(){e(wc_pagseguro_params.general_error)}}),!1}var j=!1;wc_pagseguro_params.session_id?(PagSeguroDirectPayment.setSessionId(wc_pagseguro_params.session_id),"1"===wc_checkout_params.is_checkout?a("body").on("updated_checkout",function(){h()}):h(),a("body").on("click","#pagseguro-bank-transfer-form input[type=radio]",function(){a("#pagseguro-bank-transfer-form li").removeClass("active"),a(this).parent("label").parent("li").addClass("active")}),a("body").on("click","#pagseguro-payment-methods input[type=radio]",function(){g(a(this).val())}),a("body").on("focusout","#pagseguro-card-number",function(){var c=a(this).val().replace(/[^\d]/g,"").substr(0,6),d=a("body #pagseguro-card-installments");6===c.length&&(d.empty(),d.attr("disabled","disabled"),PagSeguroDirectPayment.getBrand({cardBin:c,success:function(c){a("body").trigger("pagseguro_credit_card_brand",c.brand.name),b(c.brand.name)},error:function(){a("body").trigger("pagseguro_credit_card_brand","error"),b("error")}}))}),a("body").on("focus","#pagseguro-card-number, #pagseguro-card-expiry",function(){a("#pagseguro-credit-card-form .woocommerce-error").remove()}),a("body").on("pagseguro_credit_card_brand",function(b,c){"error"!==c?PagSeguroDirectPayment.getInstallments({amount:a("body #pagseguro-cart-total").val(),brand:c,success:function(b){var f=a("body #pagseguro-card-installments");!1===b.error?(f.empty(),f.removeAttr("disabled"),f.append('<option value="0">--</option>'),a.each(b.installments[c],function(a,b){f.append(d(b))})):e(wc_pagseguro_params.invalid_card)},error:function(){e(wc_pagseguro_params.invalid_card)}}):e(wc_pagseguro_params.invalid_card)}),a("form.checkout").on("checkout_place_order_pagseguro",function(){return i()}),a("form#order_review").submit(function(){return i()})):a("body").on("updated_checkout",function(){a("#pagseguro-payment-form").remove()})})}(jQuery);
|
|
includes/class-wc-pagseguro-gateway.php
CHANGED
@@ -50,7 +50,11 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
50 |
|
51 |
// Active logs.
|
52 |
if ( 'yes' == $this->debug ) {
|
53 |
-
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
// Set the API.
|
@@ -133,9 +137,9 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
133 |
$session_id = $this->api->get_session_id();
|
134 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
135 |
|
136 |
-
wp_enqueue_style( 'pagseguro-checkout', plugins_url( 'assets/css/transparent-checkout' . $suffix . '.css', plugin_dir_path( __FILE__ ) ), array(), WC_PagSeguro::VERSION );
|
137 |
wp_enqueue_script( 'pagseguro-library', $this->api->get_direct_payment_url(), array(), null, true );
|
138 |
-
wp_enqueue_script( 'pagseguro-checkout', plugins_url( 'assets/js/transparent-checkout' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery', 'pagseguro-library', 'woocommerce-extra-checkout-fields-for-brazil-front' ), WC_PagSeguro::VERSION, true );
|
139 |
|
140 |
wp_localize_script(
|
141 |
'pagseguro-checkout',
|
@@ -310,7 +314,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
310 |
public function admin_options() {
|
311 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
312 |
|
313 |
-
wp_enqueue_script( 'pagseguro-admin', plugins_url( 'assets/js/admin' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery' ), WC_PagSeguro::VERSION, true );
|
314 |
|
315 |
include dirname( __FILE__ ) . '/admin/views/html-admin-page.php';
|
316 |
}
|
@@ -555,7 +559,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
555 |
$order->add_order_note( __( 'PagSeguro: Payment approved.', 'woocommerce-pagseguro' ) );
|
556 |
|
557 |
// Changing the order for processing and reduces the stock.
|
558 |
-
$order->payment_complete( $posted->code );
|
559 |
|
560 |
break;
|
561 |
case 4 :
|
50 |
|
51 |
// Active logs.
|
52 |
if ( 'yes' == $this->debug ) {
|
53 |
+
if ( function_exists( 'wc_get_logger' ) ) {
|
54 |
+
$this->log = wc_get_logger();
|
55 |
+
} else {
|
56 |
+
$this->log = new WC_Logger();
|
57 |
+
}
|
58 |
}
|
59 |
|
60 |
// Set the API.
|
137 |
$session_id = $this->api->get_session_id();
|
138 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
139 |
|
140 |
+
wp_enqueue_style( 'pagseguro-checkout', plugins_url( 'assets/css/frontend/transparent-checkout' . $suffix . '.css', plugin_dir_path( __FILE__ ) ), array(), WC_PagSeguro::VERSION );
|
141 |
wp_enqueue_script( 'pagseguro-library', $this->api->get_direct_payment_url(), array(), null, true );
|
142 |
+
wp_enqueue_script( 'pagseguro-checkout', plugins_url( 'assets/js/frontend/transparent-checkout' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery', 'pagseguro-library', 'woocommerce-extra-checkout-fields-for-brazil-front' ), WC_PagSeguro::VERSION, true );
|
143 |
|
144 |
wp_localize_script(
|
145 |
'pagseguro-checkout',
|
314 |
public function admin_options() {
|
315 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
316 |
|
317 |
+
wp_enqueue_script( 'pagseguro-admin', plugins_url( 'assets/js/admin/admin' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery' ), WC_PagSeguro::VERSION, true );
|
318 |
|
319 |
include dirname( __FILE__ ) . '/admin/views/html-admin-page.php';
|
320 |
}
|
559 |
$order->add_order_note( __( 'PagSeguro: Payment approved.', 'woocommerce-pagseguro' ) );
|
560 |
|
561 |
// Changing the order for processing and reduces the stock.
|
562 |
+
$order->payment_complete( sanitize_text_field( (string) $posted->code ) );
|
563 |
|
564 |
break;
|
565 |
case 4 :
|
languages/woocommerce-pagseguro.pot
CHANGED
@@ -2,17 +2,17 @@
|
|
2 |
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce PagSeguro 2.12.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
|
8 |
-
"POT-Creation-Date: 2017-04-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
-
"X-Generator: grunt-wp-
|
16 |
|
17 |
#: includes/admin/views/html-admin-help-message.php:14
|
18 |
msgid ""
|
@@ -75,7 +75,7 @@ msgid "You should inform your token."
|
|
75 |
msgstr ""
|
76 |
|
77 |
#: includes/class-wc-pagseguro-api.php:151
|
78 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
79 |
#: templates/transparent-checkout-form.php:20
|
80 |
msgid "Credit Card"
|
81 |
msgstr ""
|
@@ -85,7 +85,7 @@ msgid "Billet"
|
|
85 |
msgstr ""
|
86 |
|
87 |
#: includes/class-wc-pagseguro-api.php:153
|
88 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
89 |
#: templates/transparent-checkout-form.php:24
|
90 |
msgid "Bank Transfer"
|
91 |
msgstr ""
|
@@ -209,7 +209,7 @@ msgstr ""
|
|
209 |
#: includes/class-wc-pagseguro-api.php:748
|
210 |
#: includes/class-wc-pagseguro-api.php:768
|
211 |
#: includes/class-wc-pagseguro-gateway.php:24
|
212 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
213 |
msgid "PagSeguro"
|
214 |
msgstr ""
|
215 |
|
@@ -241,303 +241,303 @@ msgstr ""
|
|
241 |
msgid "Proceed to payment"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
245 |
msgid "interest free"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
249 |
msgid "Invalid credit card number."
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
253 |
msgid "Invalid expiry date, please use the MM / YYYY date format."
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
257 |
msgid "Please check the expiry date and use a valid format as MM / YYYY."
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
261 |
msgid ""
|
262 |
"Unable to process the data from your credit card on the PagSeguro, please "
|
263 |
"try again or contact us for assistance."
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
267 |
msgid "Select a number of installments."
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
271 |
msgid "System Status > Logs"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
275 |
msgid "Enable/Disable"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
279 |
msgid "Enable PagSeguro"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
283 |
msgid "Title"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
287 |
msgid "This controls the title which the user sees during checkout."
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
291 |
msgid "Description"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
295 |
msgid "This controls the description which the user sees during checkout."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
299 |
#: templates/lightbox-checkout.php:19
|
300 |
msgid "Pay via PagSeguro"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
304 |
msgid "Integration"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
308 |
msgid "Integration method"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
312 |
msgid ""
|
313 |
"Choose how the customer will interact with the PagSeguro. Redirect (Client "
|
314 |
"goes to PagSeguro page) or Lightbox (Inside your store)"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
318 |
msgid "Redirect (default)"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
322 |
msgid "Lightbox"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
326 |
msgid "Transparent Checkout"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
330 |
msgid "PagSeguro Sandbox"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
334 |
msgid "Enable PagSeguro Sandbox"
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
338 |
msgid "PagSeguro Sandbox can be used to test the payments."
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
342 |
msgid "PagSeguro Email"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
346 |
msgid ""
|
347 |
"Please enter your PagSeguro email address. This is needed in order to take "
|
348 |
"payment."
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
352 |
msgid "PagSeguro Token"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
356 |
msgid ""
|
357 |
"Please enter your PagSeguro token. This is needed to process the payment "
|
358 |
"and notifications. Is possible generate a new token %s."
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
362 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
363 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
364 |
msgid "here"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
368 |
msgid "PagSeguro Sandbox Email"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
372 |
msgid ""
|
373 |
"Please enter your PagSeguro sandbox email address. You can get your sandbox "
|
374 |
"email %s."
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
378 |
msgid "PagSeguro Sandbox Token"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
382 |
msgid ""
|
383 |
"Please enter your PagSeguro sandbox token. You can get your sandbox token "
|
384 |
"%s."
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
388 |
msgid "Transparent Checkout Options"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
392 |
msgid "Enable Credit Card for Transparente Checkout"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
396 |
msgid "Enable Bank Transfer for Transparente Checkout"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
400 |
#: templates/transparent-checkout-form.php:28
|
401 |
msgid "Banking Ticket"
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
405 |
msgid "Enable Banking Ticket for Transparente Checkout"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
409 |
msgid "Banking Ticket Tax Message"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
413 |
msgid ""
|
414 |
"Display a message alerting the customer that will be charged R$ 1,00 for "
|
415 |
"payment by Banking Ticket"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
419 |
msgid "Integration Behavior"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
423 |
msgid "Send only the order total"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
427 |
msgid ""
|
428 |
"If this option is enabled will only send the order total, not the list of "
|
429 |
"items."
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
433 |
msgid "Invoice Prefix"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
437 |
msgid ""
|
438 |
"Please enter a prefix for your invoice numbers. If you use your PagSeguro "
|
439 |
"account for multiple stores ensure this prefix is unqiue as PagSeguro will "
|
440 |
"not allow orders with the same invoice number."
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
444 |
msgid "Gateway Testing"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
448 |
msgid "Debug Log"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
452 |
msgid "Enable logging"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
456 |
msgid "Log PagSeguro events, such as API requests, inside %s"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
460 |
msgid "PagSeguro Request Unauthorized"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
464 |
msgid "Payer email"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
468 |
msgid "Payer name"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
472 |
msgid "Payment type"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
476 |
msgid "Payment method"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
480 |
#: templates/transparent-checkout-form.php:54
|
481 |
msgid "Installments"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
485 |
msgid "Payment URL"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
489 |
msgid ""
|
490 |
"PagSeguro: The buyer initiated the transaction, but so far the PagSeguro "
|
491 |
"not received any payment information."
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
495 |
msgid "PagSeguro: Payment under review."
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
499 |
msgid "PagSeguro: Payment approved."
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
503 |
msgid "PagSeguro: Payment completed and credited to your account."
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
507 |
msgid "PagSeguro: Payment came into dispute."
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
511 |
msgid "Payment for order %s came into dispute"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
515 |
msgid "Payment in dispute"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
519 |
msgid ""
|
520 |
"Order %s has been marked as on-hold, because the payment came into dispute "
|
521 |
"in PagSeguro."
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
525 |
msgid "PagSeguro: Payment refunded."
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
529 |
msgid "Payment for order %s refunded"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
533 |
msgid "Payment refunded"
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
537 |
msgid "Order %s has been marked as refunded by PagSeguro."
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
541 |
msgid "PagSeguro: Payment canceled."
|
542 |
msgstr ""
|
543 |
|
2 |
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce PagSeguro 2.12.2\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
|
8 |
+
"POT-Creation-Date: 2017-04-07 16:27:54+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
+
"X-Generator: grunt-wp-i18n1.0.0\n"
|
16 |
|
17 |
#: includes/admin/views/html-admin-help-message.php:14
|
18 |
msgid ""
|
75 |
msgstr ""
|
76 |
|
77 |
#: includes/class-wc-pagseguro-api.php:151
|
78 |
+
#: includes/class-wc-pagseguro-gateway.php:255
|
79 |
#: templates/transparent-checkout-form.php:20
|
80 |
msgid "Credit Card"
|
81 |
msgstr ""
|
85 |
msgstr ""
|
86 |
|
87 |
#: includes/class-wc-pagseguro-api.php:153
|
88 |
+
#: includes/class-wc-pagseguro-gateway.php:261
|
89 |
#: templates/transparent-checkout-form.php:24
|
90 |
msgid "Bank Transfer"
|
91 |
msgstr ""
|
209 |
#: includes/class-wc-pagseguro-api.php:748
|
210 |
#: includes/class-wc-pagseguro-api.php:768
|
211 |
#: includes/class-wc-pagseguro-gateway.php:24
|
212 |
+
#: includes/class-wc-pagseguro-gateway.php:190
|
213 |
msgid "PagSeguro"
|
214 |
msgstr ""
|
215 |
|
241 |
msgid "Proceed to payment"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/class-wc-pagseguro-gateway.php:149
|
245 |
msgid "interest free"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: includes/class-wc-pagseguro-gateway.php:150
|
249 |
msgid "Invalid credit card number."
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: includes/class-wc-pagseguro-gateway.php:151
|
253 |
msgid "Invalid expiry date, please use the MM / YYYY date format."
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: includes/class-wc-pagseguro-gateway.php:152
|
257 |
msgid "Please check the expiry date and use a valid format as MM / YYYY."
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: includes/class-wc-pagseguro-gateway.php:153
|
261 |
msgid ""
|
262 |
"Unable to process the data from your credit card on the PagSeguro, please "
|
263 |
"try again or contact us for assistance."
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: includes/class-wc-pagseguro-gateway.php:154
|
267 |
msgid "Select a number of installments."
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: includes/class-wc-pagseguro-gateway.php:168
|
271 |
msgid "System Status > Logs"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: includes/class-wc-pagseguro-gateway.php:180
|
275 |
msgid "Enable/Disable"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: includes/class-wc-pagseguro-gateway.php:182
|
279 |
msgid "Enable PagSeguro"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: includes/class-wc-pagseguro-gateway.php:186
|
283 |
msgid "Title"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: includes/class-wc-pagseguro-gateway.php:188
|
287 |
msgid "This controls the title which the user sees during checkout."
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/class-wc-pagseguro-gateway.php:193
|
291 |
msgid "Description"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/class-wc-pagseguro-gateway.php:195
|
295 |
msgid "This controls the description which the user sees during checkout."
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: includes/class-wc-pagseguro-gateway.php:196
|
299 |
#: templates/lightbox-checkout.php:19
|
300 |
msgid "Pay via PagSeguro"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: includes/class-wc-pagseguro-gateway.php:199
|
304 |
msgid "Integration"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: includes/class-wc-pagseguro-gateway.php:204
|
308 |
msgid "Integration method"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: includes/class-wc-pagseguro-gateway.php:206
|
312 |
msgid ""
|
313 |
"Choose how the customer will interact with the PagSeguro. Redirect (Client "
|
314 |
"goes to PagSeguro page) or Lightbox (Inside your store)"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: includes/class-wc-pagseguro-gateway.php:211
|
318 |
msgid "Redirect (default)"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: includes/class-wc-pagseguro-gateway.php:212
|
322 |
msgid "Lightbox"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: includes/class-wc-pagseguro-gateway.php:213
|
326 |
msgid "Transparent Checkout"
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: includes/class-wc-pagseguro-gateway.php:217
|
330 |
msgid "PagSeguro Sandbox"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: includes/class-wc-pagseguro-gateway.php:219
|
334 |
msgid "Enable PagSeguro Sandbox"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: includes/class-wc-pagseguro-gateway.php:222
|
338 |
msgid "PagSeguro Sandbox can be used to test the payments."
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/class-wc-pagseguro-gateway.php:225
|
342 |
msgid "PagSeguro Email"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: includes/class-wc-pagseguro-gateway.php:227
|
346 |
msgid ""
|
347 |
"Please enter your PagSeguro email address. This is needed in order to take "
|
348 |
"payment."
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: includes/class-wc-pagseguro-gateway.php:232
|
352 |
msgid "PagSeguro Token"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: includes/class-wc-pagseguro-gateway.php:234
|
356 |
msgid ""
|
357 |
"Please enter your PagSeguro token. This is needed to process the payment "
|
358 |
"and notifications. Is possible generate a new token %s."
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: includes/class-wc-pagseguro-gateway.php:234
|
362 |
+
#: includes/class-wc-pagseguro-gateway.php:240
|
363 |
+
#: includes/class-wc-pagseguro-gateway.php:246
|
364 |
msgid "here"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: includes/class-wc-pagseguro-gateway.php:238
|
368 |
msgid "PagSeguro Sandbox Email"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: includes/class-wc-pagseguro-gateway.php:240
|
372 |
msgid ""
|
373 |
"Please enter your PagSeguro sandbox email address. You can get your sandbox "
|
374 |
"email %s."
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/class-wc-pagseguro-gateway.php:244
|
378 |
msgid "PagSeguro Sandbox Token"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: includes/class-wc-pagseguro-gateway.php:246
|
382 |
msgid ""
|
383 |
"Please enter your PagSeguro sandbox token. You can get your sandbox token "
|
384 |
"%s."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: includes/class-wc-pagseguro-gateway.php:250
|
388 |
msgid "Transparent Checkout Options"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/class-wc-pagseguro-gateway.php:257
|
392 |
msgid "Enable Credit Card for Transparente Checkout"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/class-wc-pagseguro-gateway.php:263
|
396 |
msgid "Enable Bank Transfer for Transparente Checkout"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: includes/class-wc-pagseguro-gateway.php:267
|
400 |
#: templates/transparent-checkout-form.php:28
|
401 |
msgid "Banking Ticket"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: includes/class-wc-pagseguro-gateway.php:269
|
405 |
msgid "Enable Banking Ticket for Transparente Checkout"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: includes/class-wc-pagseguro-gateway.php:273
|
409 |
msgid "Banking Ticket Tax Message"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: includes/class-wc-pagseguro-gateway.php:275
|
413 |
msgid ""
|
414 |
"Display a message alerting the customer that will be charged R$ 1,00 for "
|
415 |
"payment by Banking Ticket"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: includes/class-wc-pagseguro-gateway.php:279
|
419 |
msgid "Integration Behavior"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: includes/class-wc-pagseguro-gateway.php:284
|
423 |
msgid "Send only the order total"
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: includes/class-wc-pagseguro-gateway.php:286
|
427 |
msgid ""
|
428 |
"If this option is enabled will only send the order total, not the list of "
|
429 |
"items."
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: includes/class-wc-pagseguro-gateway.php:290
|
433 |
msgid "Invoice Prefix"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: includes/class-wc-pagseguro-gateway.php:292
|
437 |
msgid ""
|
438 |
"Please enter a prefix for your invoice numbers. If you use your PagSeguro "
|
439 |
"account for multiple stores ensure this prefix is unqiue as PagSeguro will "
|
440 |
"not allow orders with the same invoice number."
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: includes/class-wc-pagseguro-gateway.php:297
|
444 |
msgid "Gateway Testing"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: includes/class-wc-pagseguro-gateway.php:302
|
448 |
msgid "Debug Log"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: includes/class-wc-pagseguro-gateway.php:304
|
452 |
msgid "Enable logging"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: includes/class-wc-pagseguro-gateway.php:306
|
456 |
msgid "Log PagSeguro events, such as API requests, inside %s"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: includes/class-wc-pagseguro-gateway.php:465
|
460 |
msgid "PagSeguro Request Unauthorized"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: includes/class-wc-pagseguro-gateway.php:485
|
464 |
msgid "Payer email"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: includes/class-wc-pagseguro-gateway.php:488
|
468 |
msgid "Payer name"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: includes/class-wc-pagseguro-gateway.php:492
|
472 |
msgid "Payment type"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: includes/class-wc-pagseguro-gateway.php:496
|
476 |
msgid "Payment method"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: includes/class-wc-pagseguro-gateway.php:500
|
480 |
#: templates/transparent-checkout-form.php:54
|
481 |
msgid "Installments"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: includes/class-wc-pagseguro-gateway.php:504
|
485 |
msgid "Payment URL"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: includes/class-wc-pagseguro-gateway.php:551
|
489 |
msgid ""
|
490 |
"PagSeguro: The buyer initiated the transaction, but so far the PagSeguro "
|
491 |
"not received any payment information."
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: includes/class-wc-pagseguro-gateway.php:555
|
495 |
msgid "PagSeguro: Payment under review."
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: includes/class-wc-pagseguro-gateway.php:559
|
499 |
msgid "PagSeguro: Payment approved."
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: includes/class-wc-pagseguro-gateway.php:566
|
503 |
msgid "PagSeguro: Payment completed and credited to your account."
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: includes/class-wc-pagseguro-gateway.php:570
|
507 |
msgid "PagSeguro: Payment came into dispute."
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: includes/class-wc-pagseguro-gateway.php:572
|
511 |
msgid "Payment for order %s came into dispute"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: includes/class-wc-pagseguro-gateway.php:573
|
515 |
msgid "Payment in dispute"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: includes/class-wc-pagseguro-gateway.php:574
|
519 |
msgid ""
|
520 |
"Order %s has been marked as on-hold, because the payment came into dispute "
|
521 |
"in PagSeguro."
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: includes/class-wc-pagseguro-gateway.php:579
|
525 |
msgid "PagSeguro: Payment refunded."
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: includes/class-wc-pagseguro-gateway.php:581
|
529 |
msgid "Payment for order %s refunded"
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: includes/class-wc-pagseguro-gateway.php:582
|
533 |
msgid "Payment refunded"
|
534 |
msgstr ""
|
535 |
|
536 |
+
#: includes/class-wc-pagseguro-gateway.php:583
|
537 |
msgid "Order %s has been marked as refunded by PagSeguro."
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: includes/class-wc-pagseguro-gateway.php:588
|
541 |
msgid "PagSeguro: Payment canceled."
|
542 |
msgstr ""
|
543 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://claudiosanches.com/doacoes/
|
|
4 |
Tags: woocommerce, pagseguro, payment
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 2.12.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -255,6 +255,11 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
255 |
|
256 |
== Changelog ==
|
257 |
|
|
|
|
|
|
|
|
|
|
|
258 |
= 2.12.1 - 2017/04/04 =
|
259 |
|
260 |
* Correção dos títulos dos campos personalizados salvos ao fazer um pedido.
|
@@ -296,6 +301,7 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
296 |
|
297 |
== Upgrade Notice ==
|
298 |
|
299 |
-
= 2.12.
|
300 |
|
301 |
-
*
|
|
4 |
Tags: woocommerce, pagseguro, payment
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 2.12.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
255 |
|
256 |
== Changelog ==
|
257 |
|
258 |
+
= 2.12.2 - 2017/04/07 =
|
259 |
+
|
260 |
+
* Adicionado suporte ao novo sistema de logs do WooCommerce 3.0, assim permitindo que seja utilizado sistema de logs personalizados.
|
261 |
+
* Adicionado validação e higienização no código de transação do PagSeguro antes de salvar.
|
262 |
+
|
263 |
= 2.12.1 - 2017/04/04 =
|
264 |
|
265 |
* Correção dos títulos dos campos personalizados salvos ao fazer um pedido.
|
301 |
|
302 |
== Upgrade Notice ==
|
303 |
|
304 |
+
= 2.12.2 =
|
305 |
|
306 |
+
* Adicionado suporte ao novo sistema de logs do WooCommerce 3.0, assim permitindo que seja utilizado sistema de logs personalizados.
|
307 |
+
* Adicionado validação e higienização no código de transação do PagSeguro antes de salvar.
|
woocommerce-pagseguro.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Gateway de pagamento PagSeguro para WooCommerce.
|
6 |
* Author: Claudio Sanches
|
7 |
* Author URI: http://claudiosanches.com/
|
8 |
-
* Version: 2.12.
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: woocommerce-pagseguro
|
11 |
* Domain Path: languages/
|
@@ -29,7 +29,7 @@ if ( ! class_exists( 'WC_PagSeguro' ) ) :
|
|
29 |
*
|
30 |
* @var string
|
31 |
*/
|
32 |
-
const VERSION = '2.12.
|
33 |
|
34 |
/**
|
35 |
* Instance of this class.
|
5 |
* Description: Gateway de pagamento PagSeguro para WooCommerce.
|
6 |
* Author: Claudio Sanches
|
7 |
* Author URI: http://claudiosanches.com/
|
8 |
+
* Version: 2.12.2
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: woocommerce-pagseguro
|
11 |
* Domain Path: languages/
|
29 |
*
|
30 |
* @var string
|
31 |
*/
|
32 |
+
const VERSION = '2.12.2';
|
33 |
|
34 |
/**
|
35 |
* Instance of this class.
|