Skip to content

Commit e1efaff

Browse files
committed
Merge branch 'release/4.44.1'
v. 4.44.1 - Correção/ajuste: Status da Connect Key aparecia como inválido por conta de uma instabilidade em uma das APIs do PagBank.
2 parents 8c7adb0 + aee160b commit e1efaff

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ricardomartins/pagbank-woocommerce",
33
"description": "Integração PagBank (PagSeguro) WooCommerce com desconto nas taxas oficiais",
44
"type": "wordpress-plugin",
5-
"version": "4.44.0",
5+
"version": "4.44.1",
66
"license": "GPL-3.0",
77
"autoload": {
88
"psr-4": {

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Donate link: https://github.com/sponsors/r-martins
55
Requires at least: 4.0
66
Tested up to: 6.8
77
Requires PHP: 7.4
8-
Stable tag: 4.44.0
8+
Stable tag: 4.44.1
99
License: GPLv3
1010
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1111
PagBank com PIX, Cartão de Crédito, Boleto, Recorrência + Envio Fácil e com Menos Taxas no PagSeguro.
@@ -204,6 +204,9 @@ Você deve fazer isso através de Pull Requests ao [repositório oficial no gith
204204

205205
== Changelog ==
206206

207+
= 4.44.1 =
208+
* Correção/ajuste: Status da Connect Key aparecia como inválido por conta de uma instabilidade em uma das APIs do PagBank.
209+
207210
= 4.44.0 =
208211
* Dashboard de relatórios da recorrência: agora você pode ver alguns indicadores importantes de suas assinaturas, como o total de assinaturas ativas, o total de assinaturas canceladas e o total de assinaturas suspensas, Receita Recorrente Mensal, e muito mais.
209212
* Agora é possível salvar o cartão de crédito para uso posterior no checkout em blocos (nativo do WooCommerce).

rm-pagbank.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @wordpress-plugin
1111
* Plugin Name: PagBank Connect
1212
* Description: Integra seu WooCommerce com as APIs PagSeguro v4 através da aplicação de Ricardo Martins (com descontos nas taxas oficiais), com suporte a PIX transparente e muito mais.
13-
* Version: 4.44.0
13+
* Version: 4.44.1
1414
* Requires at least: 5.2
1515
* Tested up to: 6.8
1616
* Requires PHP: 7.4
@@ -32,7 +32,7 @@
3232
defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
3333

3434
// Plugin constants.
35-
define( 'WC_PAGSEGURO_CONNECT_VERSION', '4.44.0' );
35+
define( 'WC_PAGSEGURO_CONNECT_VERSION', '4.44.1' );
3636
define( 'WC_PAGSEGURO_CONNECT_PLUGIN_FILE', __FILE__ );
3737
define( 'WC_PAGSEGURO_CONNECT_BASE_DIR', __DIR__ );
3838
define( 'WC_PAGSEGURO_CONNECT_TEMPLATES_DIR', WC_PAGSEGURO_CONNECT_BASE_DIR . '/src/templates/' );

src/Connect/Gateway.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,10 @@ public function connectKeyStatus()
243243
$dateFormat = get_option('date_format');
244244
$status = strtoupper($info['status'] ?? 'UNKNOWN');
245245
$email = esc_html($info['authorizerEmail'] ?? 'N/A');
246-
$expires = esc_html($info['expiresAt'] ? date_i18n($dateFormat, strtotime($info['expiresAt'])) : '-');
246+
$expires = esc_html(isset($info['expiresAt']) && $info['expiresAt'] ? date_i18n($dateFormat, strtotime($info['expiresAt'])) : '-');
247247
$isSandbox = !empty($info['isSandbox']);
248248
$sandbox = $isSandbox ? 'Sim' : 'Não';
249+
$sandbox = !isset($info['isSandbox']) ? 'Desconhecido' : $sandbox;
249250
$message = "Conta PagBank: $email <br>";
250251
$message .= !$isSandbox ? "Expira em: $expires <br>" : null;
251252
$message .= "Sandbox: $sandbox <br>";

0 commit comments

Comments
 (0)