WooCommerce PagSeguro - Version 2.12.5

Version Description

  • 2017/05/11 =

  • Corrigido valor total das parcelas do carto de crdito no checkout transparente, o valor tinha parado de ser atualizado no WooCommerce 3.0.

Download this release

Release Info

Developer claudiosanches
Plugin Icon 128x128 WooCommerce PagSeguro
Version 2.12.5
Comparing to
See all releases

Code changes from version 2.12.4 to 2.12.5

assets/js/frontend/transparent-checkout.js CHANGED
@@ -250,6 +250,13 @@
250
  });
251
  }
252
  });
 
 
 
 
 
 
 
253
 
254
  // Set the errors.
255
  $( 'body' ).on( 'focus', '#pagseguro-card-number, #pagseguro-card-expiry', function() {
@@ -260,7 +267,7 @@
260
  $( 'body' ).on( 'pagseguro_credit_card_brand', function( event, brand ) {
261
  if ( 'error' !== brand ) {
262
  PagSeguroDirectPayment.getInstallments({
263
- amount: $( 'body #pagseguro-cart-total' ).val(),
264
  brand: brand,
265
  success: function( data ) {
266
  var instalmments = $( 'body #pagseguro-card-installments' );
250
  });
251
  }
252
  });
253
+ $( 'body' ).on( 'updated_checkout', function() {
254
+ var field = $( 'body #pagseguro-card-number' );
255
+
256
+ if ( 0 < field.length ) {
257
+ field.focusout();
258
+ }
259
+ });
260
 
261
  // Set the errors.
262
  $( 'body' ).on( 'focus', '#pagseguro-card-number, #pagseguro-card-expiry', function() {
267
  $( 'body' ).on( 'pagseguro_credit_card_brand', function( event, brand ) {
268
  if ( 'error' !== brand ) {
269
  PagSeguroDirectPayment.getInstallments({
270
+ amount: $( 'body #pagseguro-payment-form' ).data( 'cart_total' ),
271
  brand: brand,
272
  success: function( data ) {
273
  var instalmments = $( 'body #pagseguro-card-installments' );
assets/js/frontend/transparent-checkout.min.js CHANGED
@@ -1 +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);
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("updated_checkout",function(){var b=a("body #pagseguro-card-number");0<b.length&&b.focusout()}),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-payment-form").data("cart_total"),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);
languages/woocommerce-pagseguro.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce PagSeguro 2.12.4\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
8
- "POT-Creation-Date: 2017-04-12 16:41:52+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -76,7 +76,7 @@ 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 ""
82
 
@@ -86,7 +86,7 @@ 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 ""
92
 
@@ -397,7 +397,7 @@ 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
 
@@ -477,7 +477,7 @@ 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
 
@@ -630,109 +630,109 @@ msgstr ""
630
  msgid "Please use the following button to make the payment in your bankline."
631
  msgstr ""
632
 
633
- #: templates/transparent-checkout-form.php:36
634
  msgid "Card Holder Name"
635
  msgstr ""
636
 
637
- #: templates/transparent-checkout-form.php:36
638
  msgid "as recorded on the card"
639
  msgstr ""
640
 
641
- #: templates/transparent-checkout-form.php:40
642
  msgid "Card Number"
643
  msgstr ""
644
 
645
- #: templates/transparent-checkout-form.php:45
646
  msgid "Expiry (MM/YYYY)"
647
  msgstr ""
648
 
649
- #: templates/transparent-checkout-form.php:46
650
  msgid "MM / YYYY"
651
  msgstr ""
652
 
653
- #: templates/transparent-checkout-form.php:49
654
  msgid "Security Code"
655
  msgstr ""
656
 
657
- #: templates/transparent-checkout-form.php:50
658
  msgid "CVC"
659
  msgstr ""
660
 
661
- #: templates/transparent-checkout-form.php:54
662
  msgid "the minimum value of the installment is R$ 5,00"
663
  msgstr ""
664
 
665
- #: templates/transparent-checkout-form.php:60
666
  msgid "Card Holder CPF"
667
  msgstr ""
668
 
669
- #: templates/transparent-checkout-form.php:65
670
  msgid "Card Holder Birth Date"
671
  msgstr ""
672
 
673
- #: templates/transparent-checkout-form.php:66
674
  msgid "DD / MM / YYYY"
675
  msgstr ""
676
 
677
- #: templates/transparent-checkout-form.php:69
678
  msgid "Card Holder Phone"
679
  msgstr ""
680
 
681
- #: templates/transparent-checkout-form.php:70
682
  msgid "(xx) xxxx-xxxx"
683
  msgstr ""
684
 
685
- #: templates/transparent-checkout-form.php:78
686
  msgid "Select your bank:"
687
  msgstr ""
688
 
689
- #: templates/transparent-checkout-form.php:80
690
  msgid "Banco Ita&uacute;"
691
  msgstr ""
692
 
693
- #: templates/transparent-checkout-form.php:81
694
  msgid "Banco do Brasil"
695
  msgstr ""
696
 
697
- #: templates/transparent-checkout-form.php:82
698
  msgid "Banco Banrisul"
699
  msgstr ""
700
 
701
- #: templates/transparent-checkout-form.php:83
702
  msgid "Banco HSBC"
703
  msgstr ""
704
 
705
- #: templates/transparent-checkout-form.php:85
706
  msgid ""
707
  "* After clicking \"Proceed to payment\" you will have access to the link "
708
  "that will take you to your bank's website, so you can make the payment in "
709
  "total security."
710
  msgstr ""
711
 
712
- #: templates/transparent-checkout-form.php:94
713
  msgid "The order will be confirmed only after the payment approval."
714
  msgstr ""
715
 
716
- #: templates/transparent-checkout-form.php:97
717
  msgid "Tax"
718
  msgstr ""
719
 
720
- #: templates/transparent-checkout-form.php:97
721
  msgid "R$ 1,00 (rate applied to cover management risk costs of the payment method)."
722
  msgstr ""
723
 
724
- #: templates/transparent-checkout-form.php:100
725
  msgid ""
726
  "* After clicking \"Proceed to payment\" you will have access to banking "
727
  "ticket which you can print and pay in your internet banking or in a lottery "
728
  "retailer."
729
  msgstr ""
730
 
731
- #: templates/transparent-checkout-form.php:105
732
  msgid "This purchase is being made in Brazil"
733
  msgstr ""
734
 
735
- #: templates/transparent-checkout-form.php:105
736
  msgid "Brazilian flag"
737
  msgstr ""
738
 
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce PagSeguro 2.12.5\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
8
+ "POT-Creation-Date: 2017-05-11 16:33:10+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
76
 
77
  #: includes/class-wc-pagseguro-api.php:151
78
  #: includes/class-wc-pagseguro-gateway.php:255
79
+ #: templates/transparent-checkout-form.php:19
80
  msgid "Credit Card"
81
  msgstr ""
82
 
86
 
87
  #: includes/class-wc-pagseguro-api.php:153
88
  #: includes/class-wc-pagseguro-gateway.php:261
89
+ #: templates/transparent-checkout-form.php:23
90
  msgid "Bank Transfer"
91
  msgstr ""
92
 
397
  msgstr ""
398
 
399
  #: includes/class-wc-pagseguro-gateway.php:267
400
+ #: templates/transparent-checkout-form.php:27
401
  msgid "Banking Ticket"
402
  msgstr ""
403
 
477
  msgstr ""
478
 
479
  #: includes/class-wc-pagseguro-gateway.php:500
480
+ #: templates/transparent-checkout-form.php:53
481
  msgid "Installments"
482
  msgstr ""
483
 
630
  msgid "Please use the following button to make the payment in your bankline."
631
  msgstr ""
632
 
633
+ #: templates/transparent-checkout-form.php:35
634
  msgid "Card Holder Name"
635
  msgstr ""
636
 
637
+ #: templates/transparent-checkout-form.php:35
638
  msgid "as recorded on the card"
639
  msgstr ""
640
 
641
+ #: templates/transparent-checkout-form.php:39
642
  msgid "Card Number"
643
  msgstr ""
644
 
645
+ #: templates/transparent-checkout-form.php:44
646
  msgid "Expiry (MM/YYYY)"
647
  msgstr ""
648
 
649
+ #: templates/transparent-checkout-form.php:45
650
  msgid "MM / YYYY"
651
  msgstr ""
652
 
653
+ #: templates/transparent-checkout-form.php:48
654
  msgid "Security Code"
655
  msgstr ""
656
 
657
+ #: templates/transparent-checkout-form.php:49
658
  msgid "CVC"
659
  msgstr ""
660
 
661
+ #: templates/transparent-checkout-form.php:53
662
  msgid "the minimum value of the installment is R$ 5,00"
663
  msgstr ""
664
 
665
+ #: templates/transparent-checkout-form.php:59
666
  msgid "Card Holder CPF"
667
  msgstr ""
668
 
669
+ #: templates/transparent-checkout-form.php:64
670
  msgid "Card Holder Birth Date"
671
  msgstr ""
672
 
673
+ #: templates/transparent-checkout-form.php:65
674
  msgid "DD / MM / YYYY"
675
  msgstr ""
676
 
677
+ #: templates/transparent-checkout-form.php:68
678
  msgid "Card Holder Phone"
679
  msgstr ""
680
 
681
+ #: templates/transparent-checkout-form.php:69
682
  msgid "(xx) xxxx-xxxx"
683
  msgstr ""
684
 
685
+ #: templates/transparent-checkout-form.php:77
686
  msgid "Select your bank:"
687
  msgstr ""
688
 
689
+ #: templates/transparent-checkout-form.php:79
690
  msgid "Banco Ita&uacute;"
691
  msgstr ""
692
 
693
+ #: templates/transparent-checkout-form.php:80
694
  msgid "Banco do Brasil"
695
  msgstr ""
696
 
697
+ #: templates/transparent-checkout-form.php:81
698
  msgid "Banco Banrisul"
699
  msgstr ""
700
 
701
+ #: templates/transparent-checkout-form.php:82
702
  msgid "Banco HSBC"
703
  msgstr ""
704
 
705
+ #: templates/transparent-checkout-form.php:84
706
  msgid ""
707
  "* After clicking \"Proceed to payment\" you will have access to the link "
708
  "that will take you to your bank's website, so you can make the payment in "
709
  "total security."
710
  msgstr ""
711
 
712
+ #: templates/transparent-checkout-form.php:93
713
  msgid "The order will be confirmed only after the payment approval."
714
  msgstr ""
715
 
716
+ #: templates/transparent-checkout-form.php:96
717
  msgid "Tax"
718
  msgstr ""
719
 
720
+ #: templates/transparent-checkout-form.php:96
721
  msgid "R$ 1,00 (rate applied to cover management risk costs of the payment method)."
722
  msgstr ""
723
 
724
+ #: templates/transparent-checkout-form.php:99
725
  msgid ""
726
  "* After clicking \"Proceed to payment\" you will have access to banking "
727
  "ticket which you can print and pay in your internet banking or in a lottery "
728
  "retailer."
729
  msgstr ""
730
 
731
+ #: templates/transparent-checkout-form.php:104
732
  msgid "This purchase is being made in Brazil"
733
  msgstr ""
734
 
735
+ #: templates/transparent-checkout-form.php:104
736
  msgid "Brazilian flag"
737
  msgstr ""
738
 
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.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -255,6 +255,10 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
255
 
256
  == Changelog ==
257
 
 
 
 
 
258
  = 2.12.4 - 2017/04/12 =
259
 
260
  * Corrigido icones no checkout transparente.
@@ -309,6 +313,6 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
309
 
310
  == Upgrade Notice ==
311
 
312
- = 2.12.4 =
313
 
314
- * Corrigido icones no checkout transparente.
4
  Tags: woocommerce, pagseguro, payment
5
  Requires at least: 4.0
6
  Tested up to: 4.7
7
+ Stable tag: 2.12.5
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.5 - 2017/05/11 =
259
+
260
+ * Corrigido valor total das parcelas do cartão de crédito no checkout transparente, o valor tinha parado de ser atualizado no WooCommerce 3.0.
261
+
262
  = 2.12.4 - 2017/04/12 =
263
 
264
  * Corrigido icones no checkout transparente.
313
 
314
  == Upgrade Notice ==
315
 
316
+ = 2.12.5 =
317
 
318
+ * Corrigido valor total das parcelas do cartão de crédito no checkout transparente, o valor tinha parado de ser atualizado no WooCommerce 3.0.
templates/transparent-checkout-form.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Claudio_Sanches
6
  * @package WooCommerce_PagSeguro/Templates
7
- * @version 2.12.0
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -12,8 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
12
  }
13
  ?>
14
 
15
- <fieldset id="pagseguro-payment-form" class="<?php echo 'storefront' === basename( get_template_directory() ) ? 'woocommerce-pagseguro-form-storefront' : ''; ?>">
16
- <input type="hidden" id="pagseguro-cart-total" value="<?php echo esc_attr( number_format( $cart_total, 2, '.', '' ) ); ?>" />
17
 
18
  <ul id="pagseguro-payment-methods">
19
  <?php if ( 'yes' == $tc_credit ) : ?>
4
  *
5
  * @author Claudio_Sanches
6
  * @package WooCommerce_PagSeguro/Templates
7
+ * @version 2.12.5
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
12
  }
13
  ?>
14
 
15
+ <fieldset id="pagseguro-payment-form" class="<?php echo 'storefront' === basename( get_template_directory() ) ? 'woocommerce-pagseguro-form-storefront' : ''; ?>" data-cart_total="<?php echo esc_attr( number_format( $cart_total, 2, '.', '' ) ); ?>">
 
16
 
17
  <ul id="pagseguro-payment-methods">
18
  <?php if ( 'yes' == $tc_credit ) : ?>
wc-pagseguro.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- /**
3
- * Fix main file for old installations.
4
- *
5
- * @package WooCommerce_PagSeguro
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit;
10
- }
11
-
12
- // Update the main file.
13
- $active_plugins = get_option( 'active_plugins', array() );
14
-
15
- foreach ( $active_plugins as $key => $active_plugin ) {
16
- if ( strstr( $active_plugin, '/wc-pagseguro.php' ) ) {
17
- $active_plugins[ $key ] = str_replace( '/wc-pagseguro.php', '/woocommerce-pagseguro.php', $active_plugin );
18
- }
19
- }
20
-
21
- update_option( 'active_plugins', $active_plugins );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woocommerce-pagseguro.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Includes PagSeguro as a payment gateway to WooCommerce.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
- * Version: 2.12.4
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-pagseguro
11
  * Domain Path: /languages
@@ -43,7 +43,7 @@ if ( ! class_exists( 'WC_PagSeguro' ) ) :
43
  *
44
  * @var string
45
  */
46
- const VERSION = '2.12.4';
47
 
48
  /**
49
  * Instance of this class.
5
  * Description: Includes PagSeguro as a payment gateway to WooCommerce.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosanches.com
8
+ * Version: 2.12.5
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-pagseguro
11
  * Domain Path: /languages
43
  *
44
  * @var string
45
  */
46
+ const VERSION = '2.12.5';
47
 
48
  /**
49
  * Instance of this class.