WooCommerce PagSeguro - Version 2.12.6

Version Description

  • 2018/05/09 =

  • Adicionado valor total ao parcelamento no checkout transparente para tornar mais prtico para o cliente a visualizao do juros. Mais detalhes em #75.

Download this release

Release Info

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

Code changes from version 2.12.5 to 2.12.6

assets/js/frontend/transparent-checkout.js CHANGED
@@ -22,8 +22,13 @@
22
  *
23
  * @return {string}
24
  */
25
- function pagSeguroGetPriceText( price ) {
26
- return 'R$ ' + parseFloat( price, 10 ).toFixed( 2 ).replace( '.', ',' ).toString();
 
 
 
 
 
27
  }
28
 
29
  /**
@@ -34,9 +39,7 @@
34
  * @return {string}
35
  */
36
  function pagSeguroGetInstallmentOption( installment ) {
37
- var interestFree = ( true === installment.interestFree ) ? ' ' + wc_pagseguro_params.interest_free : '';
38
-
39
- return '<option value="' + installment.quantity + '" data-installment-value="' + installment.installmentAmount + '">' + installment.quantity + 'x ' + pagSeguroGetPriceText( installment.installmentAmount ) + interestFree + '</option>';
40
  }
41
 
42
  /**
22
  *
23
  * @return {string}
24
  */
25
+ function pagSeguroGetPriceText( installment ) {
26
+ var installmentParsed = 'R$ ' + parseFloat( installment.installmentAmount, 10 ).toFixed( 2 ).replace( '.', ',' ).toString();
27
+ var totalParsed = 'R$ ' + parseFloat( installment.totalAmount, 10 ).toFixed( 2 ).replace( '.', ',' ).toString();
28
+ var interestFree = ( true === installment.interestFree ) ? ' ' + wc_pagseguro_params.interest_free : '';
29
+ var interestText = interestFree ? interestFree : ' (' + totalParsed + ')';
30
+
31
+ return installment.quantity + 'x ' + installmentParsed + interestText;
32
  }
33
 
34
  /**
39
  * @return {string}
40
  */
41
  function pagSeguroGetInstallmentOption( installment ) {
42
+ return '<option value="' + installment.quantity + '" data-installment-value="' + installment.installmentAmount + '">' + pagSeguroGetPriceText( installment ) + '</option>';
 
 
43
  }
44
 
45
  /**
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("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);
1
+ !function(a){"use strict";a(function(){function b(b){a("#pagseguro-credit-card-form").attr("data-credit-card-brand",b)}function c(a){var b="R$ "+parseFloat(a.installmentAmount,10).toFixed(2).replace(".",",").toString(),c="R$ "+parseFloat(a.totalAmount,10).toFixed(2).replace(".",",").toString(),d=!0===a.interestFree?" "+wc_pagseguro_params.interest_free:"",e=d||" ("+c+")";return a.quantity+"x "+b+e}function d(a){return'<option value="'+a.quantity+'" data-installment-value="'+a.installmentAmount+'">'+c(a)+"</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
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2017 Claudio Sanches
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"
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"
@@ -699,7 +699,7 @@ 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
@@ -736,7 +736,7 @@ msgstr ""
736
  msgid "Brazilian flag"
737
  msgstr ""
738
 
739
- #: woocommerce-pagseguro.php:118
740
  msgid "Settings"
741
  msgstr ""
742
 
1
+ # Copyright (C) 2018 Claudio Sanches
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce PagSeguro 2.12.6\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
8
+ "POT-Creation-Date: 2018-05-09 21:19:27+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: 2018-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"
699
  msgstr ""
700
 
701
  #: templates/transparent-checkout-form.php:82
702
+ msgid "Banco Bradesco"
703
  msgstr ""
704
 
705
  #: templates/transparent-checkout-form.php:84
736
  msgid "Brazilian flag"
737
  msgstr ""
738
 
739
+ #: woocommerce-pagseguro.php:120
740
  msgid "Settings"
741
  msgstr ""
742
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: claudiosanches, Gabriel Reguly
3
  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.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -42,7 +42,7 @@ Além que é possível utilizar o novo [sandbox do PagSeguro](https://sandbox.pa
42
 
43
  = Compatibilidade =
44
 
45
- Compatível desde a versão 2.4.x até 3.0.x do WooCommerce.
46
 
47
  Este plugin também é compatível com o [WooCommerce Extra Checkout Fields for Brazil](http://wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/), desta forma é possível enviar os campos de "CPF", "número do endereço" e "bairro" (para o Checkout Transparente é obrigatório o uso deste plugin).
48
 
@@ -137,7 +137,7 @@ Pronto, sua loja já pode receber pagamentos pelo PagSeguro.
137
 
138
  = What is needed to use this plugin? =
139
 
140
- * WooCommerce version 2.2 or latter installed and active.
141
  * Only one account on [PagSeguro](http://pagseguro.uol.com.br/ "PagSeguro").
142
 
143
  ### FAQ em Português: ###
@@ -148,7 +148,7 @@ Este plugin esta licenciado como GPL.
148
 
149
  = O que eu preciso para utilizar este plugin? =
150
 
151
- * Ter instalado o plugin WooCommerce 2.2 ou superior.
152
  * Possuir uma conta no PagSeguro.
153
  * Gerar um token de segurança no PagSeguro.
154
  * Desativar a opção "Pagamento via Formulário HTML" em integrações na página do PagSeguro.
@@ -255,6 +255,10 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
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.
@@ -313,6 +317,6 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
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.
3
  Donate link: https://claudiosanches.com/doacoes/
4
  Tags: woocommerce, pagseguro, payment
5
  Requires at least: 4.0
6
+ Tested up to: 4.9
7
+ Stable tag: 2.12.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
42
 
43
  = Compatibilidade =
44
 
45
+ Compatível com versões posteriores ao WooCommerce 3.0.
46
 
47
  Este plugin também é compatível com o [WooCommerce Extra Checkout Fields for Brazil](http://wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/), desta forma é possível enviar os campos de "CPF", "número do endereço" e "bairro" (para o Checkout Transparente é obrigatório o uso deste plugin).
48
 
137
 
138
  = What is needed to use this plugin? =
139
 
140
+ * WooCommerce version 3.0 or latter installed and active.
141
  * Only one account on [PagSeguro](http://pagseguro.uol.com.br/ "PagSeguro").
142
 
143
  ### FAQ em Português: ###
148
 
149
  = O que eu preciso para utilizar este plugin? =
150
 
151
+ * Ter instalado o plugin WooCommerce 3.0 ou mais recente.
152
  * Possuir uma conta no PagSeguro.
153
  * Gerar um token de segurança no PagSeguro.
154
  * Desativar a opção "Pagamento via Formulário HTML" em integrações na página do PagSeguro.
255
 
256
  == Changelog ==
257
 
258
+ = 2.12.6 - 2018/05/09 =
259
+
260
+ * Adicionado valor total ao parcelamento no checkout transparente para tornar mais prático para o cliente a visualização do juros. Mais detalhes em [#75](https://github.com/claudiosanches/woocommerce-pagseguro/pull/75).
261
+
262
  = 2.12.5 - 2017/05/11 =
263
 
264
  * 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.
317
 
318
  == Upgrade Notice ==
319
 
320
+ = 2.12.6 =
321
 
322
+ * Adicionado valor total ao parcelamento no checkout transparente para tornar mais prático para o cliente a visualização do juros.
templates/transparent-checkout-form.php CHANGED
@@ -79,7 +79,7 @@ if ( ! defined( 'ABSPATH' ) ) {
79
  <li><label><input type="radio" name="pagseguro_bank_transfer" value="itau" /><i id="pagseguro-icon-itau"></i><span><?php _e( 'Banco Ita&uacute;', 'woocommerce-pagseguro' ); ?></span></label></li>
80
  <li><label><input type="radio" name="pagseguro_bank_transfer" value="bancodobrasil" /><i id="pagseguro-icon-bancodobrasil"></i><span><?php _e( 'Banco do Brasil', 'woocommerce-pagseguro' ); ?></span></label></li>
81
  <li><label><input type="radio" name="pagseguro_bank_transfer" value="banrisul" /><i id="pagseguro-icon-banrisul"></i><span><?php _e( 'Banco Banrisul', 'woocommerce-pagseguro' ); ?></span></label></li>
82
- <li><label><input type="radio" name="pagseguro_bank_transfer" value="hsbc" /><i id="pagseguro-icon-hsbc"></i><span><?php _e( 'Banco HSBC', 'woocommerce-pagseguro' ); ?></span></label></li>
83
  </ul>
84
  <p><?php _e( '* After clicking "Proceed to payment" you will have access to the link that will take you to your bank\'s website, so you can make the payment in total security.', 'woocommerce-pagseguro' ); ?></p>
85
  <div class="clear"></div>
79
  <li><label><input type="radio" name="pagseguro_bank_transfer" value="itau" /><i id="pagseguro-icon-itau"></i><span><?php _e( 'Banco Ita&uacute;', 'woocommerce-pagseguro' ); ?></span></label></li>
80
  <li><label><input type="radio" name="pagseguro_bank_transfer" value="bancodobrasil" /><i id="pagseguro-icon-bancodobrasil"></i><span><?php _e( 'Banco do Brasil', 'woocommerce-pagseguro' ); ?></span></label></li>
81
  <li><label><input type="radio" name="pagseguro_bank_transfer" value="banrisul" /><i id="pagseguro-icon-banrisul"></i><span><?php _e( 'Banco Banrisul', 'woocommerce-pagseguro' ); ?></span></label></li>
82
+ <li><label><input type="radio" name="pagseguro_bank_transfer" value="bradesco" /><i id="pagseguro-icon-bradesco"></i><span><?php _e( 'Banco Bradesco', 'woocommerce-pagseguro' ); ?></span></label></li>
83
  </ul>
84
  <p><?php _e( '* After clicking "Proceed to payment" you will have access to the link that will take you to your bank\'s website, so you can make the payment in total security.', 'woocommerce-pagseguro' ); ?></p>
85
  <div class="clear"></div>
woocommerce-pagseguro.php CHANGED
@@ -1,14 +1,16 @@
1
  <?php
2
  /**
3
- * Plugin Name: WooCommerce PagSeguro
4
- * Plugin URI: https://github.com/claudiosanches/woocommerce-pagseguro
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
 
 
12
  *
13
  * WooCommerce PagSeguro is free software: you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
@@ -43,7 +45,7 @@ if ( ! class_exists( 'WC_PagSeguro' ) ) :
43
  *
44
  * @var string
45
  */
46
- const VERSION = '2.12.5';
47
 
48
  /**
49
  * Instance of this class.
1
  <?php
2
  /**
3
+ * Plugin Name: WooCommerce PagSeguro
4
+ * Plugin URI: https://github.com/claudiosanches/woocommerce-pagseguro
5
+ * Description: Includes PagSeguro as a payment gateway to WooCommerce.
6
+ * Author: Claudio Sanches
7
+ * Author URI: https://claudiosanches.com
8
+ * Version: 2.12.6
9
+ * License: GPLv2 or later
10
+ * Text Domain: woocommerce-pagseguro
11
+ * Domain Path: /languages
12
+ * WC requires at least: 3.0.0
13
+ * WC tested up to: 3.4.0
14
  *
15
  * WooCommerce PagSeguro is free software: you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
45
  *
46
  * @var string
47
  */
48
+ const VERSION = '2.12.6';
49
 
50
  /**
51
  * Instance of this class.