Version Description
2017/04/10 =
Corrigido
ndashque aparecia no nome dos itens listados no PagSeguro.
Download this release
Release Info
| Developer | claudiosanches |
| Plugin | |
| Version | 2.12.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.12.2 to 2.12.3
- includes/class-wc-pagseguro-api.php +11 -9
- languages/woocommerce-pagseguro.pot +16 -16
- readme.txt +7 -4
- woocommerce-pagseguro.php +22 -8
includes/class-wc-pagseguro-api.php
CHANGED
|
@@ -393,18 +393,20 @@ class WC_PagSeguro_API {
|
|
| 393 |
|
| 394 |
$item_name = $order_item['name'];
|
| 395 |
|
| 396 |
-
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
$
|
|
|
|
|
|
|
| 404 |
}
|
| 405 |
|
| 406 |
$items[] = array(
|
| 407 |
-
'description' => $this->sanitize_description( $item_name ),
|
| 408 |
'amount' => $this->money_format( $item_total ),
|
| 409 |
'quantity' => $order_item['qty'],
|
| 410 |
);
|
| 393 |
|
| 394 |
$item_name = $order_item['name'];
|
| 395 |
|
| 396 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '3.0', '<' ) ) {
|
| 397 |
+
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.4.0', '<' ) ) {
|
| 398 |
+
$item_meta = new WC_Order_Item_Meta( $order_item['item_meta'] );
|
| 399 |
+
} else {
|
| 400 |
+
$item_meta = new WC_Order_Item_Meta( $order_item );
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
if ( $meta = $item_meta->display( true, true ) ) {
|
| 404 |
+
$item_name .= ' - ' . $meta;
|
| 405 |
+
}
|
| 406 |
}
|
| 407 |
|
| 408 |
$items[] = array(
|
| 409 |
+
'description' => $this->sanitize_description( str_replace( '–', '-', $item_name ) ),
|
| 410 |
'amount' => $this->money_format( $item_total ),
|
| 411 |
'quantity' => $order_item['qty'],
|
| 412 |
);
|
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.
|
| 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"
|
|
@@ -197,34 +197,34 @@ msgstr ""
|
|
| 197 |
msgid "Order %s"
|
| 198 |
msgstr ""
|
| 199 |
|
| 200 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 201 |
msgid ""
|
| 202 |
"Too bad! The email or token from the PagSeguro are invalids my little "
|
| 203 |
"friend!"
|
| 204 |
msgstr ""
|
| 205 |
|
| 206 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 207 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 208 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 209 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 210 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 211 |
#: includes/class-wc-pagseguro-gateway.php:24
|
| 212 |
#: includes/class-wc-pagseguro-gateway.php:190
|
| 213 |
msgid "PagSeguro"
|
| 214 |
msgstr ""
|
| 215 |
|
| 216 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 217 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 218 |
msgid ""
|
| 219 |
"An error has occurred while processing your payment, please try again. Or "
|
| 220 |
"contact us for assistance."
|
| 221 |
msgstr ""
|
| 222 |
|
| 223 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 224 |
msgid "Please, select a payment method."
|
| 225 |
msgstr ""
|
| 226 |
|
| 227 |
-
#: includes/class-wc-pagseguro-api.php:
|
| 228 |
msgid ""
|
| 229 |
"You are not allowed to use the PagSeguro Transparent Checkout. Looks like "
|
| 230 |
"you neglected to installation guide of this plugin. This is not pretty, do "
|
|
@@ -736,16 +736,16 @@ msgstr ""
|
|
| 736 |
msgid "Brazilian flag"
|
| 737 |
msgstr ""
|
| 738 |
|
| 739 |
-
#: woocommerce-pagseguro.php:
|
| 740 |
msgid "Settings"
|
| 741 |
msgstr ""
|
| 742 |
|
| 743 |
#. Plugin URI of the plugin/theme
|
| 744 |
-
msgid "
|
| 745 |
msgstr ""
|
| 746 |
|
| 747 |
#. Description of the plugin/theme
|
| 748 |
-
msgid "
|
| 749 |
msgstr ""
|
| 750 |
|
| 751 |
#. Author of the plugin/theme
|
|
@@ -753,5 +753,5 @@ msgid "Claudio Sanches"
|
|
| 753 |
msgstr ""
|
| 754 |
|
| 755 |
#. Author URI of the plugin/theme
|
| 756 |
-
msgid "
|
| 757 |
msgstr ""
|
| 2 |
# This file is distributed under the GPLv2 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce PagSeguro 2.12.3\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
|
| 8 |
+
"POT-Creation-Date: 2017-04-10 03:48:19+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 197 |
msgid "Order %s"
|
| 198 |
msgstr ""
|
| 199 |
|
| 200 |
+
#: includes/class-wc-pagseguro-api.php:611
|
| 201 |
msgid ""
|
| 202 |
"Too bad! The email or token from the PagSeguro are invalids my little "
|
| 203 |
"friend!"
|
| 204 |
msgstr ""
|
| 205 |
|
| 206 |
+
#: includes/class-wc-pagseguro-api.php:648
|
| 207 |
+
#: includes/class-wc-pagseguro-api.php:668
|
| 208 |
+
#: includes/class-wc-pagseguro-api.php:690
|
| 209 |
+
#: includes/class-wc-pagseguro-api.php:750
|
| 210 |
+
#: includes/class-wc-pagseguro-api.php:770
|
| 211 |
#: includes/class-wc-pagseguro-gateway.php:24
|
| 212 |
#: includes/class-wc-pagseguro-gateway.php:190
|
| 213 |
msgid "PagSeguro"
|
| 214 |
msgstr ""
|
| 215 |
|
| 216 |
+
#: includes/class-wc-pagseguro-api.php:668
|
| 217 |
+
#: includes/class-wc-pagseguro-api.php:770
|
| 218 |
msgid ""
|
| 219 |
"An error has occurred while processing your payment, please try again. Or "
|
| 220 |
"contact us for assistance."
|
| 221 |
msgstr ""
|
| 222 |
|
| 223 |
+
#: includes/class-wc-pagseguro-api.php:690
|
| 224 |
msgid "Please, select a payment method."
|
| 225 |
msgstr ""
|
| 226 |
|
| 227 |
+
#: includes/class-wc-pagseguro-api.php:716
|
| 228 |
msgid ""
|
| 229 |
"You are not allowed to use the PagSeguro Transparent Checkout. Looks like "
|
| 230 |
"you neglected to installation guide of this plugin. This is not pretty, do "
|
| 736 |
msgid "Brazilian flag"
|
| 737 |
msgstr ""
|
| 738 |
|
| 739 |
+
#: woocommerce-pagseguro.php:118
|
| 740 |
msgid "Settings"
|
| 741 |
msgstr ""
|
| 742 |
|
| 743 |
#. Plugin URI of the plugin/theme
|
| 744 |
+
msgid "https://github.com/claudiosanches/woocommerce-pagseguro"
|
| 745 |
msgstr ""
|
| 746 |
|
| 747 |
#. Description of the plugin/theme
|
| 748 |
+
msgid "Includes PagSeguro as a payment gateway to WooCommerce."
|
| 749 |
msgstr ""
|
| 750 |
|
| 751 |
#. Author of the plugin/theme
|
| 753 |
msgstr ""
|
| 754 |
|
| 755 |
#. Author URI of the plugin/theme
|
| 756 |
+
msgid "https://claudiosanches.com"
|
| 757 |
msgstr ""
|
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,10 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
| 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.
|
|
@@ -301,7 +305,6 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
| 301 |
|
| 302 |
== Upgrade Notice ==
|
| 303 |
|
| 304 |
-
= 2.12.
|
| 305 |
|
| 306 |
-
*
|
| 307 |
-
* Adicionado validação e higienização no código de transação do PagSeguro antes de salvar.
|
| 4 |
Tags: woocommerce, pagseguro, payment
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.7
|
| 7 |
+
Stable tag: 2.12.3
|
| 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.3 - 2017/04/10 =
|
| 259 |
+
|
| 260 |
+
* Corrigido `ndash` que aparecia no nome dos itens listados no PagSeguro.
|
| 261 |
+
|
| 262 |
= 2.12.2 - 2017/04/07 =
|
| 263 |
|
| 264 |
* Adicionado suporte ao novo sistema de logs do WooCommerce 3.0, assim permitindo que seja utilizado sistema de logs personalizados.
|
| 305 |
|
| 306 |
== Upgrade Notice ==
|
| 307 |
|
| 308 |
+
= 2.12.3 =
|
| 309 |
|
| 310 |
+
* Corrigido `ndash` que aparecia no nome dos itens listados no PagSeguro.
|
|
|
woocommerce-pagseguro.php
CHANGED
|
@@ -1,14 +1,28 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
* Plugin Name: WooCommerce PagSeguro
|
| 4 |
-
* Plugin URI:
|
| 5 |
-
* Description:
|
| 6 |
-
* Author:
|
| 7 |
-
* Author URI:
|
| 8 |
-
* Version:
|
| 9 |
-
* License:
|
| 10 |
* Text Domain: woocommerce-pagseguro
|
| 11 |
-
* Domain Path: languages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
*
|
| 13 |
* @package WooCommerce_PagSeguro
|
| 14 |
*/
|
|
@@ -29,7 +43,7 @@ if ( ! class_exists( 'WC_PagSeguro' ) ) :
|
|
| 29 |
*
|
| 30 |
* @var string
|
| 31 |
*/
|
| 32 |
-
const VERSION = '2.12.
|
| 33 |
|
| 34 |
/**
|
| 35 |
* 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.3
|
| 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
|
| 15 |
+
* the Free Software Foundation, either version 2 of the License, or
|
| 16 |
+
* any later version.
|
| 17 |
+
*
|
| 18 |
+
* WooCommerce PagSeguro is distributed in the hope that it will be useful,
|
| 19 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 20 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 21 |
+
* GNU General Public License for more details.
|
| 22 |
+
*
|
| 23 |
+
* You should have received a copy of the GNU General Public License
|
| 24 |
+
* along with WooCommerce PagSeguro. If not, see
|
| 25 |
+
* <https://www.gnu.org/licenses/gpl-2.0.txt>.
|
| 26 |
*
|
| 27 |
* @package WooCommerce_PagSeguro
|
| 28 |
*/
|
| 43 |
*
|
| 44 |
* @var string
|
| 45 |
*/
|
| 46 |
+
const VERSION = '2.12.3';
|
| 47 |
|
| 48 |
/**
|
| 49 |
* Instance of this class.
|
