diff --git a/gerencianet-oficial.php b/gerencianet-oficial.php index 6bc207e..61dd74a 100755 --- a/gerencianet-oficial.php +++ b/gerencianet-oficial.php @@ -9,7 +9,7 @@ * Plugin Name: Efí by Gerencianet Oficial * Plugin URI: https://wordpress.org/plugins/woo-gerencianet-official/ * Description: Gateway de pagamento Efi by Gerencianet para WooCommerce - * Version: 2.0.10 + * Version: 2.0.11 * Author: Efi by Gerencianet * Author URI: https://www.sejaefi.com.br * License: GPL-2.0+ @@ -25,7 +25,7 @@ die; } -define( 'GERENCIANET_OFICIAL_VERSION', '2.0.10' ); +define( 'GERENCIANET_OFICIAL_VERSION', '2.0.11' ); define( 'GERENCIANET_BOLETO_ID', 'WC_Gerencianet_Boleto' ); define( 'GERENCIANET_CARTAO_ID', 'WC_Gerencianet_Cartao' ); define( 'GERENCIANET_PIX_ID', 'WC_Gerencianet_Pix' ); diff --git a/includes/lib/class-gerencianet-integration.php b/includes/lib/class-gerencianet-integration.php index 03c1cb5..17e7947 100644 --- a/includes/lib/class-gerencianet-integration.php +++ b/includes/lib/class-gerencianet-integration.php @@ -46,9 +46,11 @@ public function get_credentials( $paymentMethod ) { } $wcSettings['gn_pix_file_path'] = $certificatePath; - update_option('woocommerce_' . GERENCIANET_PIX_ID . '_settings', $pixSettings); + update_option('woocommerce_' . GERENCIANET_PIX_ID . '_settings', $wcSettings); } catch (Error $e) { + gn_log('Falha ao recriar certificado'); + gn_log($e); return self::result_api('

Falha ao encontrar Certificado Pix, entre em contato com o administrador da loja.

', false); } diff --git a/includes/lib/gerencianet/gerencianet/gerencianet-sdk-php/src/Gerencianet/Request.php b/includes/lib/gerencianet/gerencianet/gerencianet-sdk-php/src/Gerencianet/Request.php index f37655c..5b46c0d 100755 --- a/includes/lib/gerencianet/gerencianet/gerencianet-sdk-php/src/Gerencianet/Request.php +++ b/includes/lib/gerencianet/gerencianet/gerencianet-sdk-php/src/Gerencianet/Request.php @@ -27,7 +27,7 @@ public function __construct(array $options = null) 'headers' => [ 'Content-Type' => 'application/json', 'api-sdk' => 'php-' . $composerData['version'], - 'wordpress-plugin' => 'v2.0.10', // ATUALIZAR VERSÃO A CADA ATUALIZAÇÃO + 'wordpress-plugin' => 'v2.0.11', // ATUALIZAR VERSÃO A CADA ATUALIZAÇÃO 'partner-token' => $partner_token ] ]; diff --git a/readme.txt b/readme.txt index 9dd093d..21291b7 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: Efí Bank Tags: woocommerce, gerencianet, payment, transparent checkout, pix, Boleto, card, brazil, payments brazil, cartão de crédito, efí, efi, efipay, efi bank, efi pay, efípay, efí bank, efí pay Requires at least: 5.x Tested up to: 6.2 -Stable tag: 2.0.9 +Stable tag: 2.0.11 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html