From 1de3332ed733f9f4a6abf0baded405bff8dd1b17 Mon Sep 17 00:00:00 2001 From: marcelo-machado-gn <106699763+marcelo-machado-gn@users.noreply.github.com> Date: Mon, 13 Jun 2022 08:38:41 -0300 Subject: [PATCH] Update gerencianet.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correção na criação da tabela pix. --- gerencianet.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gerencianet.php b/gerencianet.php index 8764036..6cdd961 100755 --- a/gerencianet.php +++ b/gerencianet.php @@ -333,6 +333,8 @@ function gerencianet_config_validate($params) { */ function gerencianet_link($gatewayParams) { + // Creating table 'tblgerencianetpix' + createGerencianetPixTable(); $baseUrl = $gatewayParams['systemurl']; @@ -393,8 +395,7 @@ function gerencianet_link($gatewayParams) // Getting API Instance $api_instance = getGerencianetApiInstance($gatewayParams); - // Creating table 'tblgerencianetpix' - createGerencianetPixTable(); + // Verifying if exists a Pix Charge for current invoiceId $existingPixCharge = getPixCharge($gatewayParams['invoiceid']);