Skip to content

Instantly share code, notes, and snippets.

@cteixeira028
Created January 18, 2017 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cteixeira028/34e56a54b98586a9750eb26fd05a9d29 to your computer and use it in GitHub Desktop.
Save cteixeira028/34e56a54b98586a9750eb26fd05a9d29 to your computer and use it in GitHub Desktop.
problemas com modulo gerencianet
A opção "debug" do módulo Gofas Gerencianet Boleto está ativa, por isso está vendo essas informações na tela.
erro = vermelho
sucesso = verde
Saiba mais sobre como diagnosticar erros e coletar informações para suporte neste link
Se precisar de ajuda ou surgir alguma dúvida, envie-nos sua questão no grupo de discussão do módulo.
Resultado da consulta por informações da fatura (API interna - WHMCS).
Array
(
[result] => success
[invoiceid] => 15
[invoicenum] =>
[userid] => 3
[date] => 2016-12-27
[duedate] => 2017-01-10
[datepaid] => 0000-00-00 00:00:00
[subtotal] => 280.00
[credit] => 0.00
[tax] => 0.00
[tax2] => 0.00
[total] => 280.00
[balance] => 280.00
[taxrate] => 0.00
[taxrate2] => 0.00
[status] => Unpaid
[paymentmethod] => gofasgerencianetboleto
[notes] =>
[ccgateway] =>
[items] => Array
(
[item] => Array
(
[0] => Array
(
[id] => 22
[type] => Hosting
[relid] => 3
[description] => Hospedagem Básica - eraldoveiculos.com (10/01/2017 - 09/01/2018)
[amount] => 250.00
[taxed] => 0
)
[1] => Array
(
[id] => 23
[type] => LateFee
[relid] => 0
[description] => Juros por atraso (Adicionado 15/01/2017)
[amount] => 30.00
[taxed] => 1
)
)
)
[transactions] => Array
(
[transaction] => Array
(
[0] => Array
(
[id] => 17
[userid] => 3
[currency] => 0
[gateway] => moipapi
[date] => 2017-01-13 10:43:13
[description] => Pagamento Iniciado/abandonado: via Boleto Bancário ás 10:43:13 hs Fatura:
[amountin] => 0.00
[fees] => 0.00
[amountout] => 0.00
[rate] => 1.00000
[transid] => 72329786
[invoiceid] => 15
[refundid] => 0
)
[1] => Array
(
[id] => 18
[userid] => 3
[currency] => 0
[gateway] => moipapi
[date] => 2017-01-13 10:43:34
[description] => Boleto Impresso: via Boleto Bancário ás 10:43:34 hs Fatura:
[amountin] => 0.00
[fees] => 0.00
[amountout] => 0.00
[rate] => 1.00000
[transid] => Trans ID 72329786 Boleto Impresso ás 10:43:34 ('2ªVia boleto clique aqui' )
[invoiceid] => 15
[refundid] => 0
)
)
)
)
Transações registradas por esta fatura - API WHMCS.
Nenhuma transação registrada.
Dados do cliente - API WHMCS.
Array
(
[result] => success
[userid] => 3
[id] => 3
[uuid] => 0d0064eb-3c60-4fe2-b1b3-906f591cb650
[firstname] => Eraldo
[lastname] => Brito Pereira
[fullname] => Eraldo Brito Pereira
[companyname] => Eraldo Veículos
[email] => eraldooveiculos@gmail.com
[address1] => Avenida Castelo Branco
[address2] => Industrial
[city] => Cacoal
[fullstate] => RO
[state] => RO
[postcode] => 76962-000
[countrycode] => BR
[country] => BR
[phonenumber] => (69) 3443-5151
[password] => $2y$10$/G/MjavtH97krDzqv3PbkORicSoDhhIGbA0Xfe2QiBVZEgy4kc.Ea
[statecode] => RO
[countryname] => Brazil
[phonecc] => 55
[phonenumberformatted] => +55.6934435151
[billingcid] => 0
[notes] =>
[twofaenabled] =>
[currency] => 1
[defaultgateway] =>
[cctype] =>
[cclastfour] =>
[securityqid] => 0
[securityqans] =>
[groupid] => 0
[status] => Active
[credit] => 0.00
[taxexempt] =>
[latefeeoveride] =>
[overideduenotices] =>
[separateinvoices] =>
[disableautocc] =>
[emailoptout] =>
[overrideautoclose] =>
[allowSingleSignOn] => 1
[language] =>
[lastlogin] => Date: 13/01/2017 10:48
IP Address: 187.53.14.171
Host: 187-53-14-171.3g.brasiltelecom.net.br
[customfields1] => 12087010000195
[customfields] => Array
(
[0] => Array
(
[id] => 1
[value] => 12087010000195
)
)
[currency_code] => BRL
)
Produtos/serviços da fatura - API WHMCS.
Itens com valor negativo:
Array
(
)
Soma dos itens com valor negativo:
Cálculos.
Hoje: 2017-01-18
Vencimento: 2017-01-10
Diferença entre datas: 8 dia(s)
Multa:
Juros:
Valor original * 100: 28350
Total: 28350
Debug customer
cpf:
cnpj:
$customer:
$juridical_data:
Nova transação gerada com sucesso - API Gerencianet.
Array
(
[code] => 200
[data] => Array
(
[charge_id] => 176316
[status] => new
[total] => 28350
[custom_id] => 15
[created_at] => 2017-01-18 19:58:42
)
)
charge id: 176316
Falha ao gerar o boleto - 1ª tentativa, - API Gerencianet.
Tipo inválido: null (esperado object).: /payment/banking_billet/customer
$params2 & $BODY2:
Array
(
[id] => 176316
)
Array
(
[payment] => Array
(
[banking_billet] => Array
(
[expire_at] => 2017-01-19
[customer] =>
[message] =>
[instructions] => Array
(
[0] => Após vencimento aceitar pagamento somente no banco emissor.
[1] => Cobrar multa e juros após o vencimento.
[2] => Aceitar apenas pagamento em dinheiro.
[3] => Sr. Caixa, aceitar apenas pagamento em dinheiro.
)
)
)
)
Email envido ao admin notificando o erro - API WHMCS.
Array
(
[result] => success
)
Sync Host
Fatura #15
EM ABERTO
Vencimento: 10/01/2017
Erro ao gerar o Boleto devido a inconsistências no seu cadastro.
Atualize aqui seu cadastro.
Pagar a:
Sync Host - Hospedagem Cloud no Brasil
Rua Francisco Coli Franzoni, 240
Astolfo Dutra - MG - Cep: 36780-000
Faturado para:
Eraldo Veículos
Eraldo Brito Pereira
Avenida Castelo Branco, Industrial
Cacoal, RO, 76962-000
Brazil
CPF/CNPJ: 12087010000195
Forma de Pagamento:
Data da Fatura:
27/12/2016
Fatura Items
Descrição Valor
Hospedagem Básica - eraldoveiculos.com (10/01/2017 - 09/01/2018) R$ 250.00
Juros por atraso (Adicionado 15/01/2017) * R$ 30.00
Sub Total R$ 280.00
Crédito R$ 0.00
Total R$ 280.00
Data Transação Forma ID. Transação Valor
13/01/2017 Cartão e Boleto Bancário 72329786 R$ 0.00
13/01/2017 Cartão e Boleto Bancário Trans ID 72329786 Boleto Impresso ás 10:43:34 ('2ªVia boleto clique aqui' ) R$ 0.00
Balanço R$ 280.00 imprimir Download
<< Voltar para Área do Cliente
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment