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.