WooCommerce PagSeguro - Version 2.11.2

Version Description

  • 2015/12/30 =

  • Correo de erro fatal ao tentar finalizar pedido usando CNPJ.

Download this release

Release Info

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

Code changes from version 2.11.1 to 2.11.2

includes/class-wc-pagseguro-xml.php CHANGED
@@ -88,6 +88,7 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
88
  * Add CPF.
89
  *
90
  * @param string $number Document number.
 
91
  */
92
  protected function add_cpf( $number, $xml ) {
93
  $documents = $xml->addChild( 'documents' );
@@ -100,9 +101,10 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
100
  * Add CNPJ.
101
  *
102
  * @param string $number Document number.
 
103
  */
104
- protected function add_cnpj( $number ) {
105
- $documents = $sender->addChild( 'documents' );
106
  $document = $documents->addChild( 'document' );
107
  $document->addChild( 'type', 'CNPJ' );
108
  $document->addChild( 'value', $this->get_numbers( $number ) );
88
  * Add CPF.
89
  *
90
  * @param string $number Document number.
91
+ * @param SimpleXMLElement $xml Data.
92
  */
93
  protected function add_cpf( $number, $xml ) {
94
  $documents = $xml->addChild( 'documents' );
101
  * Add CNPJ.
102
  *
103
  * @param string $number Document number.
104
+ * @param SimpleXMLElement $xml Data.
105
  */
106
+ protected function add_cnpj( $number, $xml ) {
107
+ $documents = $xml->addChild( 'documents' );
108
  $document = $documents->addChild( 'document' );
109
  $document->addChild( 'type', 'CNPJ' );
110
  $document->addChild( 'value', $this->get_numbers( $number ) );
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.11.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
8
- "POT-Creation-Date: 2015-12-21 04:58:41+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce PagSeguro 2.11.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
8
+ "POT-Creation-Date: 2015-12-30 23:48:16+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://claudiosmweb.com/doacoes/
4
  Tags: woocommerce, pagseguro, payment
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
- Stable tag: 2.11.1
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.11.1 - 2015/12/24 =
259
 
260
  * Corrigido campo bloqueado de telefone no checkout transparente.
@@ -296,9 +300,6 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
296
 
297
  == Upgrade Notice ==
298
 
299
- = 2.11.1 =
300
 
301
- * Adicionado suporte a compras com CNPJ.
302
- * Melhorado o checkout transparente quando usado o tema Storefront.
303
- * Adicionada opções para token e e-mail de sandbox.
304
- * Corrigido campo bloqueado de telefone no checkout transparente.
4
  Tags: woocommerce, pagseguro, payment
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
+ Stable tag: 2.11.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.11.2 - 2015/12/30 =
259
+
260
+ * Correção de erro fatal ao tentar finalizar pedido usando CNPJ.
261
+
262
  = 2.11.1 - 2015/12/24 =
263
 
264
  * Corrigido campo bloqueado de telefone no checkout transparente.
300
 
301
  == Upgrade Notice ==
302
 
303
+ = 2.11.2 =
304
 
305
+ * Correção de erro fatal ao tentar finalizar pedido usando CNPJ.
 
 
 
woocommerce-pagseguro.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Gateway de pagamento PagSeguro para WooCommerce.
6
  * Author: Claudio Sanches
7
  * Author URI: http://claudiosmweb.com/
8
- * Version: 2.11.1
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.11.1';
33
 
34
  /**
35
  * Instance of this class.
5
  * Description: Gateway de pagamento PagSeguro para WooCommerce.
6
  * Author: Claudio Sanches
7
  * Author URI: http://claudiosmweb.com/
8
+ * Version: 2.11.2
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-pagseguro
11
  * Domain Path: languages/
29
  *
30
  * @var string
31
  */
32
+ const VERSION = '2.11.2';
33
 
34
  /**
35
  * Instance of this class.