Módulo em Produção não roda
- Este tópico contém 3 respostas, 2 vozes e foi atualizado pela última vez 6 anos atrás por
Gofas.
- AutorPosts
- 14/05/2020 às 14:10 #12578
Diego Telles
ParticipanteOi pessoal, tudo bem?
Estou com alguns pequenos problemas no módulo. Em sandbox, apresenta apenas o primeiro problema e, depois de colocar as informações nos campos correspondentes, funciona, já em produção não vai de jeito nenhum.
1) Mesmo o cliente já tendo cadastrado os dados dele corretamente no WHMCS, sempre é solicitado o número e o bairro do cliente.
2) Após preencher essas informações novamente no módulo, é apresentado um erro e a operação não chega nem na Gerencianet.Poderiam me ajudar, por favor?
- 14/05/2020 às 14:34 #12651
Gofas
MestreOi Diego,
por favor, ative a opção “salvar logs” nas configurações do módulo, tente pagar a cobrança novamente, depois, acesse Utilitários > Logs > Log de Módulo, copie todos os logs desse módulo. Salve os logs no Gist ou Pastebin e nos envie o link aqui. - 14/05/2020 às 15:03 #12653
Diego Telles
ParticipanteFala Gofas, tudo bem?
Obrigado por responder. Fui em Opções > Módulos Addon e não tinha nenhum módulo e nem diretamente na guia Addons. O único lugar que eu fiz as configurações foi no em Opções > Pagamentos > Portal de Pagamentos e deixei ativada o Debug. Não encontrei nenhum lugar para habilitar o log desse módulo. De toda forma, deixei ativado o debug do módulo. Segue os dois erros que aparecem.
Apenas para explicar melhor, quando eu vou efetuar o pagamento, aparece o erro Tentativa01 para que eu arrume meus dados de CPF, número e bairro. Clico para atualizar as informações com meus dados corretos e não vai da mesma forma e é aí que o erro Tentativa02 é mostrado.
https://gist.github.com/1250dec843ff0f6eb9146b2db217118c.git
- 04/06/2020 às 15:04 #12780
Diego Telles
ParticipanteBom dia,
Gofas, você chegou a ver a minha resposta?
Obrigado.
- 04/06/2020 às 15:10 #12803
Gofas
MestreDiego, o log/debug está incompleto.
Para um diagnóstico mais eficiente, precisamos ver o log ou debug completo desse erro, que mostra todas as informações do WHMCS processadas para envio à API.
Por favor, siga os passos a seguir para obter o log de depuração:1) Acesse no painel administrativo do WHMCS,
Opções > Pagamento > Portais para Pagamento > Manage Existing Gateways > Gofas Gerencianet - Boleto;2) Ative a opção
7- Debugpara obter o debug diretamente na tela da fatura;Com debug/log ativado, reproduza o erro, copie todo o debug na fatura, ou os dados do _request_ e _response_ em
Utilitários > Logs > Log de Módulo. Com os dados em mãos, use o novo formulário de suporte para enviar os dados de depuração, é seguro e totalmente confidencial:https://gofas.net/contato/?suporte=Ajuda%20/%20Suporte
Além do sistema de depuração do módulo, a Gerencianet permite visualizar todas as requisições realizadas pelo módulo à sua API. Você pode aprender a interpretar os retornos da API e corrigir possíveis erros de validação de dados ou outros similares e identificar consumos/requisições realizadas por sua aplicação aos _webservices_ Gerencianet, seguindo as instruções do link a seguir:
- 08/09/2020 às 06:46 #13003
Jhonata
ParticipanteOlá diego bom dia, tambem estou com o mesmo problema deste tópico, o mesmo não funciona no modo produção apenas no modo desenvolvimento
segue em anexo o log debug da apiMódulo Gofas Gerencianet Cartão para WHMCS.
Todas as configurações do Módulo:Array
(
[companyname] => DeltaPlay
[systemurl] => http://deltaplay.com.br/central/
[langpaynow] => Pagar agora
[admin] => deltaplay
[clientid] => Client_Id_18fd7060b552a04d4bf5cb2eabcb079c9ddc1dd8
[clientidsandbox] => Client_Id_49e7573c2f6a81807578767c95be698a25005ee2
[clientsecret] => Client_Secret_0632b9977c3675d3c8c8f26edd7fa0412d9f7636
[clientsecretsandbox] => Client_Secret_15a798a47824edeecb384ab667723cb2fe10812a
[convertto] =>
[debugmode] => on
[footer] =>
[identifier] => 7a1da057fc708f28e2f97beac4ea99f3
[installments] =>
[minimunamount] =>
[minimunamountinstallments] => 100
[name] => Cartão ( automático )
[paybuttonimage] =>
[recurringdiscount] =>
[sandboxmode] =>
[separator_1] =>
[type] => Invoices
[visible] => on
[paymentmethod] => gofasgerencianetcartao
[whmcsVersion] => 7.10.2-release.1
[invoiceid] => 884
[invoicenum] => 884
[amount] => 5.00
[description] => DeltaPlay – Fatura #884
[returnurl] => http://deltaplay.com.br/central/viewinvoice.php?id=884
[dueDate] => 2020-09-11 00:00:00
[cart] => WHMCS\Cart\Cart Object
(
[invoiceId] => 884
[items] => Illuminate\Support\Collection Object
(
[items:protected] => Array
(
[0] => WHMCS\Cart\Item\Product Object
(
[id] => pid-10
[name] => LISTA IPTV – BÁSICO
[billingCycle] => monthly
[billingPeriod] => 1
[qty] => 1
[amount] => WHMCS\View\Formatter\Price Object
(
[price:protected] => 5.00
[currency:protected] => Array
(
[id] => 1
[code] => BRL
[prefix] => R$
[suffix] =>
[format] => 2
[rate] => 1.00000
)[defaultFormat:protected] => {PREFIX}{PRICE}{SUFFIX}
[defaultCurrencyDescriptor:protected] => Array
(
[format] => 1
[prefix] =>
[suffix] =>
))
[recurring] => WHMCS\View\Formatter\Price Object
(
[price:protected] => 5.00
[currency:protected] => Array
(
[id] => 1
[code] => BRL
[prefix] => R$
[suffix] =>
[format] => 2
[rate] => 1.00000
)[defaultFormat:protected] => {PREFIX}{PRICE}{SUFFIX}
[defaultCurrencyDescriptor:protected] => Array
(
[format] => 1
[prefix] =>
[suffix] =>
))
[taxed] =>
[initialPeriod] => 0
[initialCycle] =>
))
)
[total] => WHMCS\View\Formatter\Price Object
(
[price:protected] => 5.00
[currency:protected] => Array
(
[id] => 1
[code] => BRL
[prefix] => R$
[suffix] =>
[format] => 2
[rate] => 1.00000
)[defaultFormat:protected] => {PREFIX}{PRICE}{SUFFIX}
[defaultCurrencyDescriptor:protected] => Array
(
[format] => 1
[prefix] =>
[suffix] =>
))
[taxCalculator] =>
[client] => WHMCS\User\Client Object
(
[table:protected] => tblclients
[columnMap:protected] => Array
(
[passwordHash] => password
[twoFactorAuthModule] => authmodule
[twoFactorAuthData] => authdata
[currencyId] => currency
[defaultPaymentGateway] => defaultgateway
[overrideLateFee] => latefeeoveride
[overrideOverdueNotices] => overideduenotices
[disableAutomaticCreditCardProcessing] => disableautocc
[billingContactId] => billingcid
[securityQuestionId] => securityqid
[securityQuestionAnswer] => securityqans
[creditCardType] => cardtype
[creditCardLastFourDigits] => cardlastfour
[creditCardExpiryDate] => expdate
[storedBankNameCrypt] => bankname
[storedBankTypeCrypt] => banktype
[storedBankCodeCrypt] => bankcode
[storedBankAccountCrypt] => bankacct
[paymentGatewayToken] => gatewayid
[lastLoginDate] => lastlogin
[lastLoginIp] => ip
[lastLoginHostname] => host
[passwordResetKey] => pwresetkey
[passwordResetKeyRequestDate] => pwresetexpiry
[passwordResetKeyExpiryDate] => pwresetexpiry
)[timestamps] => 1
[dates:protected] => Array
(
[0] => lastLoginDate
[1] => passwordResetKeyRequestDate
[2] => passwordResetKeyExpiryDate
)[booleans:protected] => Array
(
[0] => taxExempt
[1] => overrideLateFee
[2] => overrideOverdueNotices
[3] => separateInvoices
[4] => disableAutomaticCreditCardProcessing
[5] => emailOptOut
[6] => marketingEmailsOptIn
[7] => overrideAutoClose
[8] => emailVerified
)[casts:protected] => Array
(
[email_preferences] => array
)[unique] => Array
(
[0] => email
)[appends:protected] => Array
(
[0] => fullName
[1] => countryName
[2] => groupName
)[fillable:protected] => Array
(
[0] => lastlogin
[1] => ip
[2] => host
[3] => pwresetkey
[4] => pwresetexpiry
)[hidden:protected] => Array
(
[0] => password
[1] => authdata
[2] => securityqans
[3] => cardnum
[4] => startdate
[5] => expdate
[6] => issuenumber
[7] => bankname
[8] => banktype
[9] => bankcode
[10] => bankacct
[11] => pwresetkey
[12] => pwresetexpiry
)[guardedForUpdate] => Array
(
)[strings:protected] => Array
(
)[ints:protected] => Array
(
)[semanticVersions:protected] => Array
(
)[commaSeparated:protected] => Array
(
)[characterSeparated:protected] => Array
(
)[rules:protected] => Array
(
)[errors:protected] =>
[customValidationMessages:protected] => Array
(
)[connection:protected] =>
[primaryKey:protected] => id
[perPage:protected] => 15
[incrementing] => 1
[attributes:protected] => Array
(
[id] => 59
[uuid] => 2f807bf0-f9ac-4045-afda-26d6c562098d
[firstname] => jhonata
[lastname] => vs
[companyname] =>
[email] => jhonatavieira2008@gmail.com
[address1] => Laura 75
[address2] => Bom Jardim
[city] => Ipatinga
[state] => MG
[postcode] => 35162673
[country] => BR
[phonenumber] => +55.31 97524-2686
[tax_id] =>
[password] => $2y$10$m5wHuSuLd2BE1wYjndXcAOZZkEcN3woMP3XGmB2bCXQ2UYP21JqvO
[authmodule] =>
[authdata] =>
[currency] => 1
[defaultgateway] => pagseguroapi
[credit] => 0.00
[taxexempt] => 0
[latefeeoveride] => 0
[overideduenotices] => 0
[separateinvoices] => 0
[disableautocc] => 0
[datecreated] => 2020-09-07
[notes] =>
[billingcid] => 0
[securityqid] => 0
[securityqans] => 4KuTb3t8AGmkk3STsT7D3T4QfFI=
[groupid] => 0
[cardtype] =>
[cardlastfour] =>
[cardnum] =>
[startdate] =>
[expdate] =>
[issuenumber] =>
[bankname] =>
[banktype] =>
[bankcode] =>
[bankacct] =>
[gatewayid] =>
[lastlogin] => 2020-09-07 22:27:32
[ip] => 186.226.234.62
[host] => 186.226.234.62
[status] => Active
[language] =>
[pwresetkey] =>
[emailoptout] => 0
[marketing_emails_opt_in] => 1
[overrideautoclose] => 0
[allow_sso] => 1
[email_verified] => 0
[email_preferences] => {“general”:1,”invoice”:1,”support”:1,”product”:1,”domain”:1,”affiliate”:1}
[created_at] => 0000-00-00 00:00:00
[updated_at] => 2020-09-08 06:17:37
[pwresetexpiry] => 0000-00-00 00:00:00
)[original:protected] => Array
(
[id] => 59
[uuid] => 2f807bf0-f9ac-4045-afda-26d6c562098d
[firstname] => jhonata
[lastname] => vs
[companyname] =>
[email] => jhonatavieira2008@gmail.com
[address1] => Laura 75
[address2] => Bom Jardim
[city] => Ipatinga
[state] => MG
[postcode] => 35162673
[country] => BR
[phonenumber] => +55.31 97524-2686
[tax_id] =>
[password] => $2y$10$m5wHuSuLd2BE1wYjndXcAOZZkEcN3woMP3XGmB2bCXQ2UYP21JqvO
[authmodule] =>
[authdata] =>
[currency] => 1
[defaultgateway] => pagseguroapi
[credit] => 0.00
[taxexempt] => 0
[latefeeoveride] => 0
[overideduenotices] => 0
[separateinvoices] => 0
[disableautocc] => 0
[datecreated] => 2020-09-07
[notes] =>
[billingcid] => 0
[securityqid] => 0
[securityqans] => 4KuTb3t8AGmkk3STsT7D3T4QfFI=
[groupid] => 0
[cardtype] =>
[cardlastfour] =>
[cardnum] =>
[startdate] =>
[expdate] =>
[issuenumber] =>
[bankname] =>
[banktype] =>
[bankcode] =>
[bankacct] =>
[gatewayid] =>
[lastlogin] => 2020-09-07 22:27:32
[ip] => 186.226.234.62
[host] => 186.226.234.62
[status] => Active
[language] =>
[pwresetkey] =>
[emailoptout] => 0
[marketing_emails_opt_in] => 1
[overrideautoclose] => 0
[allow_sso] => 1
[email_verified] => 0
[email_preferences] => {“general”:1,”invoice”:1,”support”:1,”product”:1,”domain”:1,”affiliate”:1}
[created_at] => 0000-00-00 00:00:00
[updated_at] => 2020-09-08 06:17:37
[pwresetexpiry] => 0000-00-00 00:00:00
)[relations:protected] => Array
(
)[visible:protected] => Array
(
)[guarded:protected] => Array
(
[0] => *
)[dateFormat:protected] =>
[touches:protected] => Array
(
)[observables:protected] => Array
(
)[with:protected] => Array
(
)[morphClass:protected] =>
[exists] => 1
[wasRecentlyCreated] =>
))
[clientdetails] => Array
(
[userid] => 59
[id] => 59
[uuid] => 2f807bf0-f9ac-4045-afda-26d6c562098d
[firstname] => jhonata
[lastname] => vs
[fullname] => jhonata vs
[companyname] =>
[email] => jhonatavieira2008@gmail.com
[address1] => Laura 75
[address2] => Bom Jardim
[city] => Ipatinga
[fullstate] => MG
[state] => MG
[postcode] => 35162673
[countrycode] => BR
[country] => BR
[phonenumber] => 31975242686
[tax_id] =>
[password] => $2y$10$m5wHuSuLd2BE1wYjndXcAOZZkEcN3woMP3XGmB2bCXQ2UYP21JqvO
[email_preferences] => Array
(
[general] => 1
[invoice] => 1
[support] => 1
[product] => 1
[domain] => 1
[affiliate] => 1
)[model] => WHMCS\User\Client Object
(
[table:protected] => tblclients
[columnMap:protected] => Array
(
[passwordHash] => password
[twoFactorAuthModule] => authmodule
[twoFactorAuthData] => authdata
[currencyId] => currency
[defaultPaymentGateway] => defaultgateway
[overrideLateFee] => latefeeoveride
[overrideOverdueNotices] => overideduenotices
[disableAutomaticCreditCardProcessing] => disableautocc
[billingContactId] => billingcid
[securityQuestionId] => securityqid
[securityQuestionAnswer] => securityqans
[creditCardType] => cardtype
[creditCardLastFourDigits] => cardlastfour
[creditCardExpiryDate] => expdate
[storedBankNameCrypt] => bankname
[storedBankTypeCrypt] => banktype
[storedBankCodeCrypt] => bankcode
[storedBankAccountCrypt] => bankacct
[paymentGatewayToken] => gatewayid
[lastLoginDate] => lastlogin
[lastLoginIp] => ip
[lastLoginHostname] => host
[passwordResetKey] => pwresetkey
[passwordResetKeyRequestDate] => pwresetexpiry
[passwordResetKeyExpiryDate] => pwresetexpiry
)[timestamps] => 1
[dates:protected] => Array
(
[0] => lastLoginDate
[1] => passwordResetKeyRequestDate
[2] => passwordResetKeyExpiryDate
)[booleans:protected] => Array
(
[0] => taxExempt
[1] => overrideLateFee
[2] => overrideOverdueNotices
[3] => separateInvoices
[4] => disableAutomaticCreditCardProcessing
[5] => emailOptOut
[6] => marketingEmailsOptIn
[7] => overrideAutoClose
[8] => emailVerified
)[casts:protected] => Array
(
[email_preferences] => array
)[unique] => Array
(
[0] => email
)[appends:protected] => Array
(
[0] => fullName
[1] => countryName
[2] => groupName
)[fillable:protected] => Array
(
[0] => lastlogin
[1] => ip
[2] => host
[3] => pwresetkey
[4] => pwresetexpiry
)[hidden:protected] => Array
(
[0] => password
[1] => authdata
[2] => securityqans
[3] => cardnum
[4] => startdate
[5] => expdate
[6] => issuenumber
[7] => bankname
[8] => banktype
[9] => bankcode
[10] => bankacct
[11] => pwresetkey
[12] => pwresetexpiry
)[guardedForUpdate] => Array
(
)[strings:protected] => Array
(
)[ints:protected] => Array
(
)[semanticVersions:protected] => Array
(
)[commaSeparated:protected] => Array
(
)[characterSeparated:protected] => Array
(
)[rules:protected] => Array
(
)[errors:protected] =>
[customValidationMessages:protected] => Array
(
)[connection:protected] =>
[primaryKey:protected] => id
[perPage:protected] => 15
[incrementing] => 1
[attributes:protected] => Array
(
[id] => 59
[uuid] => 2f807bf0-f9ac-4045-afda-26d6c562098d
[firstname] => jhonata
[lastname] => vs
[companyname] =>
[email] => jhonatavieira2008@gmail.com
[address1] => Laura 75
[address2] => Bom Jardim
[city] => Ipatinga
[state] => MG
[postcode] => 35162673
[country] => BR
[phonenumber] => +55.31 97524-2686
[tax_id] =>
[password] => $2y$10$m5wHuSuLd2BE1wYjndXcAOZZkEcN3woMP3XGmB2bCXQ2UYP21JqvO
[authmodule] =>
[authdata] =>
[currency] => 1
[defaultgateway] => pagseguroapi
[credit] => 0.00
[taxexempt] => 0
[latefeeoveride] => 0
[overideduenotices] => 0
[separateinvoices] => 0
[disableautocc] => 0
[datecreated] => 2020-09-07
[notes] =>
[billingcid] => 0
[securityqid] => 0
[securityqans] => 4KuTb3t8AGmkk3STsT7D3T4QfFI=
[groupid] => 0
[cardtype] =>
[cardlastfour] =>
[cardnum] =>
[startdate] =>
[expdate] =>
[issuenumber] =>
[bankname] =>
[banktype] =>
[bankcode] =>
[bankacct] =>
[gatewayid] =>
[lastlogin] => 2020-09-07 22:27:32
[ip] => 186.226.234.62
[host] => 186.226.234.62
[status] => Active
[language] =>
[pwresetkey] =>
[emailoptout] => 0
[marketing_emails_opt_in] => 1
[overrideautoclose] => 0
[allow_sso] => 1
[email_verified] => 0
[email_preferences] => {“general”:1,”invoice”:1,”support”:1,”product”:1,”domain”:1,”affiliate”:1}
[created_at] => 0000-00-00 00:00:00
[updated_at] => 2020-09-08 06:17:37
[pwresetexpiry] => 0000-00-00 00:00:00
)[original:protected] => Array
(
[id] => 59
[uuid] => 2f807bf0-f9ac-4045-afda-26d6c562098d
[firstname] => jhonata
[lastname] => vs
[companyname] =>
[email] => jhonatavieira2008@gmail.com
[address1] => Laura 75
[address2] => Bom Jardim
[city] => Ipatinga
[state] => MG
[postcode] => 35162673
[country] => BR
[phonenumber] => +55.31 97524-2686
[tax_id] =>
[password] => $2y$10$m5wHuSuLd2BE1wYjndXcAOZZkEcN3woMP3XGmB2bCXQ2UYP21JqvO
[authmodule] =>
[authdata] =>
[currency] => 1
[defaultgateway] => pagseguroapi
[credit] => 0.00
[taxexempt] => 0
[latefeeoveride] => 0
[overideduenotices] => 0
[separateinvoices] => 0
[disableautocc] => 0
[datecreated] => 2020-09-07
[notes] =>
[billingcid] => 0
[securityqid] => 0
[securityqans] => 4KuTb3t8AGmkk3STsT7D3T4QfFI=
[groupid] => 0
[cardtype] =>
[cardlastfour] =>
[cardnum] =>
[startdate] =>
[expdate] =>
[issuenumber] =>
[bankname] =>
[banktype] =>
[bankcode] =>
[bankacct] =>
[gatewayid] =>
[lastlogin] => 2020-09-07 22:27:32
[ip] => 186.226.234.62
[host] => 186.226.234.62
[status] => Active
[language] =>
[pwresetkey] =>
[emailoptout] => 0
[marketing_emails_opt_in] => 1
[overrideautoclose] => 0
[allow_sso] => 1
[email_verified] => 0
[email_preferences] => {“general”:1,”invoice”:1,”support”:1,”product”:1,”domain”:1,”affiliate”:1}
[created_at] => 0000-00-00 00:00:00
[updated_at] => 2020-09-08 06:17:37
[pwresetexpiry] => 0000-00-00 00:00:00
)[relations:protected] => Array
(
)[visible:protected] => Array
(
)[guarded:protected] => Array
(
[0] => *
)[dateFormat:protected] =>
[touches:protected] => Array
(
)[observables:protected] => Array
(
)[with:protected] => Array
(
)[morphClass:protected] =>
[exists] => 1
[wasRecentlyCreated] =>
)[statecode] => MG
[countryname] => Brazil
[phonecc] => 55
[phonenumberformatted] => +55.31975242686
[telephoneNumber] => +55.31975242686
[billingcid] => 0
[notes] =>
[twofaenabled] =>
[currency] => 1
[defaultgateway] => pagseguroapi
[cctype] =>
[cclastfour] =>
[gatewayid] =>
[securityqid] => 0
[securityqans] =>
[groupid] => 0
[status] => Active
[credit] => 0.00
[taxexempt] =>
[latefeeoveride] =>
[overideduenotices] =>
[separateinvoices] =>
[disableautocc] =>
[emailoptout] =>
[marketing_emails_opt_in] => 1
[overrideautoclose] =>
[allowSingleSignOn] => 1
[email_verified] =>
[language] =>
[isOptedInToMarketingEmails] => 1
[lastlogin] => Date: 07/09/2020 22:27<br>IP Address: 186.226.234.62<br>Host: 186.226.234.62
[customfields1] => 06021996
[customfields] => Array
(
[0] => Array
(
[id] => 13
[value] => 06021996
)[1] => Array
(
[id] => 1
[value] => 11703992660
))
[customfields2] => 11703992660
)[gatewayid] =>
[currency] => BRL
[currencyId] => 1
)
Campos PersonalizadosCPF: 11703992660
CNPJ: 11703992660
Nascimento: 06021996
Transações registradas por esta fatura – API WHMCS.Nenhuma transação registrada.
$invoice_sub_total: 500
Consulta detalhes da fatura – WHMCS API.Array
(
[result] => success
[invoiceid] => 884
[invoicenum] =>
[userid] => 59
[date] => 2020-09-08
[duedate] => 2020-09-11
[datepaid] => 0000-00-00 00:00:00
[lastcaptureattempt] => 0000-00-00 00:00:00
[subtotal] => 5.00
[credit] => 0.00
[tax] => 0.00
[tax2] => 0.00
[total] => 5.00
[balance] => 5.00
[taxrate] => 0.00
[taxrate2] => 0.00
[status] => Unpaid
[paymentmethod] => gofasgerencianetcartao
[notes] =>
[ccgateway] =>
[items] => Array
(
[item] => Array
(
[0] => Array
(
[id] => 250
[type] => Hosting
[relid] => 90
[description] => BÁSICO (08/09/2020 – 07/10/2020)
Tela Adicional: 0 x Tela Adicional R$20.00
[amount] => 5.00
[taxed] => 0
))
)
[transactions] =>
)ID do serviço relacionado à fatura: 90
Informações do cliente enviadas à GN API – WHMCS APIArray
(
[name] => jhonata vs
[cpf] => 11703992660
[phone_number] => 31975242686
[birth] => 1996-02-06
[email] => jhonatavieira2008@gmail.com
)
Informações do cartão do clienteNº Cartão: •••• •••• ••••
Bandeira:
Itens calculáveis da FaturaArray
(
[0] => Array
(
[id] => 250
[type] => Hosting
[relid] => 90
[description] => BÁSICO (08/09/2020 – 07/10/2020)
Tela Adicional: 0 x Tela Adicional R$20.00
[amount] => 5.00
[taxed] => 0
))
Array
(
[0] => Array
(
[name] => BÁSICO (08/09/2020 – 07/10/2020)
Tela Adicional: 0 x Tela Adicional R$20.00
[amount] => 1
[value] => 500
))
$discount:
1
Ciclo de Pagamento do produto associado a fatura – WHMCS API.Nome do Plano ($plan_name): MensalMonthly
Interval: 1 meses
package id: 10
$package_amount: 5.00
$invoice_amount: 500
$recurring_discount:$ProductInfo:
stdClass Object
(
[id] => 90
[userid] => 59
[orderid] => 90
[packageid] => 10
[server] => 0
[regdate] => 2020-09-08
[domain] =>
[paymentmethod] => gofasgerencianetcartao
[firstpaymentamount] => 5.00
[amount] => 5.00
[billingcycle] => Monthly
[nextduedate] => 2020-09-08
[nextinvoicedate] => 2020-09-08
[termination_date] => 0000-00-00
[completed_date] => 0000-00-00
[domainstatus] => Pending
[username] =>
[password] =>
[notes] =>
[subscriptionid] =>
[promoid] => 0
[promocount] => 0
[suspendreason] =>
[overideautosuspend] => 0
[overidesuspenduntil] => 0000-00-00
[dedicatedip] =>
[assignedips] =>
[ns1] =>
[ns2] =>
[diskusage] => 0
[disklimit] => 0
[bwusage] => 0
[bwlimit] => 0
[lastupdate] => 0000-00-00 00:00:00
[created_at] => 0000-00-00 00:00:00
[updated_at] => 0000-00-00 00:00:00
)Array
(
[result] => success
[totalresults] => 1
[products] => Array
(
[product] => Array
(
[0] => Array
(
[pid] => 10
[gid] => 1
[type] => other
[name] => BÁSICO
[description] =>
+600 Canais—————–
Canais SD,HD
Canais Premium
Tela Adicional R$20,00
Lista M3U & HLS
Guia de TV (EPG)
Atualização Grátis
[module] =>
[paytype] => recurring
[pricing] => Array
(
[BRL] => Array
(
[prefix] => R$
[suffix] =>
[msetupfee] => 0.00
[qsetupfee] => 0.00
[ssetupfee] => 0.00
[asetupfee] => 0.00
[bsetupfee] => 0.00
[tsetupfee] => 0.00
[monthly] => 5.00
[quarterly] => -1.00
[semiannually] => -1.00
[annually] => -1.00
[biennially] => -1.00
[triennially] => -1.00
))
[customfields] => Array
(
[customfield] => Array
(
))
[configoptions] => Array
(
[configoption] => Array
(
[0] => Array
(
[id] => 6
[name] => Tela Adicional
[type] => 4
[options] => Array
(
[option] => Array
(
[0] => Array
(
[id] => 6
[name] => Tela Adicional
[rawName] =>
[recurring] =>
[required] =>
[pricing] => Array
(
[BRL] => Array
(
[msetupfee] => 0.00
[qsetupfee] => 0.00
[ssetupfee] => 0.00
[asetupfee] => 0.00
[bsetupfee] => 0.00
[tsetupfee] => 0.00
[monthly] => 20.00
[quarterly] => 0.00
[semiannually] => 0.00
[annually] => 0.00
[biennially] => 0.00
[triennially] => 0.00
))
)
)
)
)
)
)
)
)
)
)
- 11/06/2020 às 11:30 #12813
Edilson
ParticipanteNão funciona a criação de novo tópico.
Mas pegando uma carona aqui, queria informar que todas as vezes que tentei usar os modulos do gerencianet ele causa problemas nas minhas crons.
TypeError: Argument 1 passed to GuzzleHttp\Ring\Client\StreamHandler::__invoke() must be of the type array, object given, called in /home/souzawebsite/public_html/central/modules/gateways/gofasgerencianetcartao/sdk/vendor/guzzlehttp/guzzle/src/Client.php on line 361 in /home/souzawebsite/public_html/central/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php:26
#0 /home/souzawebsite/public_html/central/modules/gateways/gofasgerencianetcartao/sdk/vendor/guzzlehttp/guzzle/src/Client.php(361): GuzzleHttp\Ring\Client\StreamHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#1 /home/souzawebsite/public_html/central/modules/gateways/gofasgerencianetcartao/sdk/vendor/guzzlehttp/guzzle/src/Client.php(163): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#2 /home/souzawebsite/public_html/central/modules/gateways/gofasgerencianetcartao/sdk/vendor/guzzlehttp/guzzle/src/Client.php(183): GuzzleHttp\Client->requestAsync(‘get’, Object(GuzzleHttp\Psr7\Uri), Array)
#3 /home/souzawebsite/public_html/central/modules/gateways/gofasgerencianetcartao/sdk/vendor/guzzlehttp/guzzle/src/Client.php(96): GuzzleHttp\Client->request(‘get’, ‘https://pki.whm…’, Array)
- AutorPosts
- Você deve fazer login para responder a este tópico.
