Skip to content

Commit

Permalink
Release 2.0.11: Correção do armazenamento da configuração Pix
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoliveiraGN committed May 3, 2023
1 parent 4193cc2 commit 832eda6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gerencianet-oficial.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand All @@ -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' );
Expand Down
4 changes: 3 additions & 1 deletion includes/lib/class-gerencianet-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<div class="error"><p><strong> Falha ao encontrar Certificado Pix, entre em contato com o administrador da loja. </strong></div>', false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
];
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 832eda6

Please sign in to comment.