Skip to content

Instantly share code, notes, and snippets.

Created October 20, 2017 17:00
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 anonymous/3ffecd54edc551f1a8c014c15afc15b3 to your computer and use it in GitHub Desktop.
Save anonymous/3ffecd54edc551f1a8c014c15afc15b3 to your computer and use it in GitHub Desktop.
Você está vendo essas informações na tela por quê a opção "debug" do módulo Gofas Gerencianet Boleto está ativa.
Operações bem sucedidas possuem títulos verdes e erros são destacados em vermelho
Saiba mais sobre como diagnosticar erros e coletar informações para suporte neste link
Veja várias soluções para dificuldades comuns no fórum de suporte do módulo.
Todas as configurações do módulo
Array
(
[companyname] => SaWebSites
[systemurl] => https://portal.sawebsites.com.br
[langpaynow] => Pagar agora
[paybutton] => http://template1.sawebsites.com.br/gallery_gen//1b37ade537ed28faf146bb1bb25cfb21_140x30.png
[juros] => 0.33
[multa] => 2
[exibedescontooutaxa] => 0
[valordescontooutaxa] =>
[descontooutaxa] => 2
[tipodescontooutaxa] => 2
[minimunamount] => 10
[requirecnpjandcpf] => 0
[customfieldcnpj] => 1
[customfieldcpf] => 0
[admin] => serginho
[emailonerror] => 8
[diasparavencimento] =>
[cancelbillet] => on
[redirecttobillet] => 0
[showbarcode] => on
[showduedate] => on
[debugmode] => on
[testmode] => on
[fee] => 3.59
[clientsecretsandbox] => Client_Secret_1ab1958a5a4e542949ad124b7f976b7a1aa0b1b3
[clientidsandbox] => Client_Id_e721b44f0b70a8f7d4346dd999afc380b7e507b3
[clientsecret] => Client_Secret_2d23ccfded064545aa58aa1dc9ddb15968196c31
[clientid] => Client_Id_f897c288d3edebca2a42d23ea53846647432aab6
[name] => Boleto Bancário
[type] => Invoices
[visible] => on
[footer] =>
[separator_5] =>
[separator_6] =>
[diasantesvencadddesconto] => 0
[separator_4] =>
[message] => Sr caixa, cobrar multa de 2% após vencimento + 0,33% ao dia de juros.
[instruction1] =>
[instruction2] =>
[instruction3] =>
[instruction4] =>
[credits] =>
[convertto] =>
[customfielddescontotipo] =>
[customfielddescontovalor] =>
[separator_3] =>
[separator_2] =>
[separator_1] =>
[paymentmethod] => gofasgerencianetboleto
[whmcsVersion] => 7.0.1-release.1
[invoiceid] => 7664
[invoicenum] => 7664
[amount] => 300.00
[description] => SaWebSites - Fatura #7664
[returnurl] => https://portal.sawebsites.com.br/viewinvoice.php?id=7664
[clientdetails] => Array
(
[userid] => 31
[id] => 31
[uuid] => dc138c03-1532-4649-ac4d-8f0733b96bf7
[firstname] => Sandro
[lastname] => Jose da Silva
[fullname] => Sandro Jose da Silva
[companyname] => Kazsa Portas
[email] => contato@kazsaportas.com.br
[address1] => Rua Duque de Caxias, 1.535 - Lj 2 - Saraiva
[address2] => www.kazsaportas.com.br
[city] => Uberlandia
[fullstate] => MG
[state] => MG
[postcode] => 38408-382
[countrycode] => BR
[country] => BR
[phonenumber] => (34) 3236-8688
[password] => $2y$10$tNI7T4N67ZFI4cLqRHSXHObD5UJfrl8K23Saw4cZyHsseBE7FhNG2
[statecode] => MG
[countryname] => Brazil
[phonecc] => 55
[phonenumberformatted] => +55.3432368688
[billingcid] => 0
[notes] => Vendedor: Sergio
MIGROU SITE PARA E-COMMERCE
• (34) 9673-2855
[twofaenabled] =>
[currency] => 1
[defaultgateway] => gofasgerencianetboleto
[cctype] =>
[cclastfour] =>
[securityqid] => 0
[securityqans] =>
[groupid] => 4
[status] => Active
[credit] => 0.00
[taxexempt] =>
[latefeeoveride] =>
[overideduenotices] =>
[separateinvoices] =>
[disableautocc] =>
[emailoptout] =>
[overrideautoclose] =>
[allowSingleSignOn] => 1
[language] =>
[lastlogin] => Date: 19/10/2017 10:21<br>IP Address: 189.15.109.152<br>Host: 189-015-109-152.xd-dynamic.algarnetsuper.com.br
[customfields1] =>
[customfields] => Array
(
[0] => Array
(
[id] => 1
[value] =>
)
[1] => Array
(
[id] => 3
[value] => 00.654.375/0001-75
)
)
[customfields2] => 00.654.375/0001-75
)
[currency] => BRL
)
Resultado da consulta por informações da fatura (API interna - WHMCS).
Array
(
[result] => success
[invoiceid] => 7664
[invoicenum] =>
[userid] => 31
[date] => 2017-09-19
[duedate] => 2017-10-19
[datepaid] => 0000-00-00 00:00:00
[subtotal] => 300.00
[credit] => 0.00
[tax] => 0.00
[tax2] => 0.00
[total] => 300.00
[balance] => 300.00
[taxrate] => 0.00
[taxrate2] => 0.00
[status] => Unpaid
[paymentmethod] => gofasgerencianetboleto
[notes] =>
[ccgateway] =>
[items] => Array
(
[item] => Array
(
[0] => Array
(
[id] => 14776
[type] =>
[relid] => 0
[description] => Criaçao Site Institucional - Parcela 2/5
[amount] => 300.00
[taxed] => 0
)
)
)
[transactions] => Array
(
[transaction] => Array
(
[0] => Array
(
[id] => 6528
[userid] => 31
[currency] => 0
[gateway] => gofasgerencianetboleto
[date] => 2017-10-10 13:34:02
[description] => Boleto gerado aguardando pagamento.
[amountin] => 0.00
[fees] => 0.00
[amountout] => 0.00
[rate] => 1.00000
[transid] => 5028399
[invoiceid] => 7664
[refundid] => 0
)
)
)
)
Transações registradas por esta fatura - API WHMCS.
Nenhuma transação registrada.
Configurações de juros e multa
Array
(
[fine] => 200
[interest] => 330
)
Multa de 2% equivale a fine = 200
Juros de 0.33% equivale a interest = 330
Produtos/serviços da fatura - API WHMCS.
Itens com valor negativo:
Array
(
)
Itens da Fatura:
Array
(
[0] => Array
(
[name] => Criaçao Site Institucional - Parcela 2/5
[amount] => 1
[value] => 30699
)
)
Soma dos itens com valor negativo:
$discount_item:
$whmcs_discount:
Desconto válido até:
2017-10-19 | 0 dias antes do vencimento
Cálculos.
Hoje:
Vencimento:
Diferença entre datas: dia(s)
Multa:
Juros:
Valor original * 100: 0
Total:
Dados do cliente - API WHMCS.
stdClass Object
(
[id] => 31
[uuid] => dc138c03-1532-4649-ac4d-8f0733b96bf7
[firstname] => Sandro
[lastname] => Jose da Silva
[companyname] => Kazsa Portas
[email] => contato@kazsaportas.com.br
[address1] => Rua Duque de Caxias, 1.535 - Lj 2 - Saraiva
[address2] => www.kazsaportas.com.br
[city] => Uberlandia
[state] => MG
[postcode] => 38408-382
[country] => BR
[phonenumber] => (34) 3236-8688
[password] => $2y$10$tNI7T4N67ZFI4cLqRHSXHObD5UJfrl8K23Saw4cZyHsseBE7FhNG2
[authmodule] =>
[authdata] =>
[currency] => 1
[defaultgateway] => gofasgerencianetboleto
[credit] => 0.00
[taxexempt] => 0
[latefeeoveride] => 0
[overideduenotices] => 0
[separateinvoices] => 0
[disableautocc] => 0
[datecreated] => 2012-12-10
[notes] => Vendedor: Sergio
MIGROU SITE PARA E-COMMERCE
• (34) 9673-2855
[billingcid] => 0
[securityqid] => 0
[securityqans] => ToxoNyP974Gx06E2zLPKN8FMtPo=
[groupid] => 4
[cardtype] =>
[cardlastfour] =>
[cardnum] =>
[startdate] =>
[expdate] =>
[issuenumber] =>
[bankname] =>
[banktype] =>
[bankcode] =>
[bankacct] =>
[gatewayid] =>
[lastlogin] => 2017-10-19 10:21:57
[ip] => 189.15.109.152
[host] => 189-015-109-152.xd-dynamic.algarnetsuper.com.br
[status] => Active
[language] =>
[pwresetkey] =>
[emailoptout] => 0
[overrideautoclose] => 0
[allow_sso] => 1
[email_verified] => 0
[created_at] => 0000-00-00 00:00:00
[updated_at] => 2017-10-17 10:43:09
[pwresetexpiry] => 0000-00-00 00:00:00
)
Dados do cliente enviados à GN API
cpf:
cnpj: 00654375000175
$customer: Array
(
[phone_number] => 3432368688
[juridical_person] => Array
(
[corporate_name] => Kazsa Portas
[cnpj] => 00654375000175
)
)
$juridical_data:
Array
(
[corporate_name] => Kazsa Portas
[cnpj] => 00654375000175
)
* Trying 104.20.77.210... * TCP_NODELAY set * Connected to sandbox.gerencianet.com.br (104.20.77.210) port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 * ALPN, server accepted to use http/1.1 * Server certificate: * subject: CN=*.gerencianet.com.br * start date: Jan 6 00:00:00 2017 GMT * expire date: Apr 7 23:59:59 2019 GMT * subjectAltName: host "sandbox.gerencianet.com.br" matched cert's "*.gerencianet.com.br" * issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA * SSL certificate verify ok. > POST /v1/authorize HTTP/1.1 Host: sandbox.gerencianet.com.br Content-Type: application/json api-sdk: php-2.0.0 partner-token: baaf5b95d55433890bd835cf006772b9462bde8f User-Agent: GuzzleHttp/6.2.1 curl/7.54.0 PHP/5.6.31 Authorization: Basic Q2xpZW50X0lkX2U3MjFiNDRmMGI3MGE4ZjdkNDM0NmRkOTk5YWZjMzgwYjdlNTA3YjM6Q2xpZW50X1NlY3JldF8xYWIxOTU4YTVhNGU1NDI5NDlhZDEyNGI3Zjk3NmI3YTFhYTBiMWIz Content-Length: 35 * upload completely sent off: 35 out of 35 bytes < HTTP/1.1 403 Forbidden < Date: Fri, 20 Oct 2017 16:52:52 GMT < Content-Type: text/html; charset=UTF-8 < Transfer-Encoding: chunked < Connection: close < Set-Cookie: __cfduid=d70be73803e3178f16637a43cf3d2b8bf1508518372; expires=Sat, 20-Oct-18 16:52:52 GMT; path=/; domain=.gerencianet.com.br; HttpOnly < CF-Chl-Bypass: 1 < Cache-Control: max-age=2 < Expires: Fri, 20 Oct 2017 16:52:54 GMT < X-Frame-Options: SAMEORIGIN < Server: cloudflare-nginx < CF-RAY: 3b0d7d71b82d1fee-DFW < * Closing connection 0
Falha ao gerar a transação - API Gerencianet.
Forbidden
Email envido ao admin notificando o erro - API WHMCS.
Array
(
[result] => success
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment