Ir para o conteúdo

A captura automática de pagamento não ocorreu no dia previsto

Viewing 4 reply threads
  • Autor
    Posts
    • #15359
      Ygo Ramalho
      Participant

        Descrição curta do erro:
        A captura automática de pagamento não ocorreu no dia previsto
        Descrição detalhada do erro:
        Olá!
        Ativei o módulo em produção e liberei para uso do cartão de crédito.
        Um cliente acessou a primeira vez a fatura, efetuou o pagamento normalmente e deixou o cartão cadastrado para as demais.
        Dias se passaram, foi gerada uma nova fatura, os e-mails de lembretes foram enviados como de costume, etc
        Porém, ao chegar no do dia do vencimento da fatura, a captura automática não foi realizada.

        Fizemos algumas verificações, e vimos que não existia erros nos logs, apenas que a cronjob daily foi completada, inclusive o item de credit card charge foi realizado, porém a captura não foi feita.

        – Forçamos o daily cronjob apenas com o item de credit card charge com o seguinte comando: “php -q crons/cron.php do –ProcessCreditCardPayments”, foi executado mas a captura não ocorreu.
        – Nenhum log do módulo e nem do sistema geral foi registrado, sem erros ou sucesso.
        – Verificamos se a captura de CC estava ativa no perfil do cliente, e estava.
        – A nossa configuração de automação está configurada para a captura ocorrer no dia do vencimento, bem como as repetições de tentativas em caso de falha.
        – A fatura possui valor mínimo e está configurada para cartão de crédito, porém lá só ficou como não pago, e a última tentativa de captura como Nenhum.

        Após vários testes e sem sucesso, ativamos os logs de erros gerais do WHMCS, de PHP para exibir na tela e gravar nos logs.
        Tentamos uma captura manual direto na fatura e recebemos o seguinte erro:
        An error occurred while communicating with the server. Please try again.

        Vimos que no console, foi registrado um erro ao ocorrer um POST para uma URL, que ao acessa-la só aparece na tela: Oops!
        HTTP Method Not Allowed
        Invalid Request
        Please try navigating using the options below.

        Segue a URL de erro: https://meusite.com.br/whmcs/area-administrativa/index.php?rp=/area-administrativa/client/200/invoice/231/capture/confirm

        Após os passos acima, também foi registrado um erro nos logs do sistema, que anexei no próximo campo, mas nos logs do módulo, nenhum.

        Fico à disposição para envio de novas informações para buscarmos uma solução!
        Muito obrigado.

        Informações do sistema:
        Módulo GalaxPay Cartão para WHMCS 1.1.0 | WHMCS 8.7.1 | PHP 8.1

      • #15362
        Gofas
        Keymaster

          Olá Ygo,
          Obrigado por todas as informações de diagnóstico e a descrição completa dos testes realizados.

          Para verificar se o cartão está armazenado corretamente na GalaxPay, por favor, ative a opção “salvar logs” nas configurações do módulo e logo em seguida tente capturar manualmente o pagamento na página de edição da fatura do cliente. A captura manual e automática utilizam a mesma função do módulo, então é provável que se repita o mesmo erro.

          Após tentar capturar o pagamento, no “log de módulos” do WHMCS conterá a requisição e resposta completa realizada, por favor, nos envie esses logs para verificarmos exatamente em que ponto a captura falhou.

        • #15365
          Ygo Ramalho
          Participant

            Olá Mauricio!

            Mesmo com os logs do módulo ativo, nenhum registro aparece lá, é como se a opção estivesse desativada.

            Ao tentar fazer os testes indicado e não ter êxito, acessei o dashboard da GalaxPay e notei que o cartão do cliente foi capturado por um total de 6 vezes, ou seja, ele foi cobrado várias vezes, aparentemente desde a hora que tentamos realizar as capturas manuais, toda vez que havia um teste, era capturado sm sabermos já que não havia retorno de sucesso nem a fatura com status PAGO.
            Entrei em contato com o cliente para informar e nos desculpar com o ocorrido e iremos estornar os demais valores.

            Além disso, na página da fatura, mais abaixo onde aparecem o histórico de movimentações, em “Transaction History”, ficaram gravados essas capturas sempre que chegava no webservice da GalaxPay, com informações: 19/05/2023 11:32 – Cartão de crédito – ggpc-7-live-7. – Automatic Payment Attempt ou Attempted by Admin.
            A última tentativa houve N/A no ID da transação, e no dashboard vimos que foi rejeitado pela operadora por suspeita de fraude (provavelmente pelas tentativas repetidas, já que não sabia que estava chegando lá).
            Na tentativa de captura manual o erro era o mesmo informado, os logs não gravaram e a fatura continuou como NÃO PAGO.

            Outra observação é a que o cartão do cliente cadastrado é o mesmo utilizado no primeiro pagamento onde foi digitado os dados para ficar salvo, a constatação que está correto é que houve vários lançamentos.

            Fico à disposição para novas informações, obrigado.

          • #15424
            Ygo Ramalho
            Participant

              Olá Mauricio!

              Ainda no aguardo, prossegui realizando novos testes e percebi o seguinte:
              – ao clicar em “tentar capturar”, na página da fatura do cliente, quando o sistema tenta processar e acusa o erro “An error occurred while communicating with the server. Please try again.”, no console há uma requisição POST para a url “https://meusite.com.br/cliente/area-administrativa/index.php?rp=/area-administrativa/client/5/invoice/245/capture/confirm”, que retorna a resposta 500.
              Na response, notamos a página Oops! do WHMCS, e ao habilitar os logs de erros, visualizamos as seguintes linhas de erros abaixo, que poderão auxiliar no debug:

              TypeError: array_merge(): Argument #1 must be of type array, null given in /home/meusite/public_html/central/modules/gateways/gofasgalaxpaycartao/includes/config.php:172
              Stack trace:
              #0 /home/meusite/public_html/central/modules/gateways/gofasgalaxpaycartao/includes/config.php(172): array_merge(NULL, NULL)
              #1 [internal function]: gofasgalaxpaycartao_config(Array)
              #2 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): call_user_func('gofasgalaxpayca...', Array)
              #3 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Module/Gateway.php(0): WHMCS\Module\AbstractModule->call('config', Array)
              #4 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Module/Gateway.php(0): WHMCS\Module\Gateway->call('config')
              #5 /home/meusite/public_html/central/includes/gatewayfunctions.php(0): WHMCS\Module\Gateway->getConfiguration()
              #6 /home/meusite/public_html/central/includes/ccfunctions.php(0): logTransaction('gofasgalaxpayca...', Array, 'Success', Array)
              #7 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/Model.php(0): captureCCPayment(245, 0, Array, Object(WHMCS\Payment\PayMethod\Model))
              #8 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Admin/Client/Invoice/InvoiceController.php(0): WHMCS\Payment\PayMethod\Model->capture(Object(WHMCS\Billing\Invoice), 0)
              #9 [internal function]: WHMCS\Admin\Client\Invoice\InvoiceController->doCapture(Object(WHMCS\Http\Message\ServerRequest))
              #10 /home/meusite/public_html/central/vendor/middlewares/utils/src/CallableHandler.php(26): call_user_func_array(Array, Array)
              #11 /home/meusite/public_html/central/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute(Array, Array)
              #12 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/HandleProcessor.php(0): Middlewares\FastRoute->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #13 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\HandleProcessor->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #14 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\HandleProcessor->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #15 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #16 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #17 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #18 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Admin\ApplicationSupport\Route\Middleware\Assent->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #19 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #20 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #21 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #22 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Security/Middleware/Authorization.php(0): WHMCS\Security\Middleware\Authorization->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #23 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): WHMCS\Security\Middleware\Authorization->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #24 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #25 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #26 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #27 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #28 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #29 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): WHMCS\Admin\ApplicationSupport\Route\Middleware\Authentication->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #30 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #31 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #32 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #33 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #34 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #35 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Admin\ApplicationSupport\Route\Middleware\DirectoryValidation->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #36 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #37 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #38 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #39 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): WHMCS\Route\Middleware\BackendPsr7Response->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #40 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendPsr7Response->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #41 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #42 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #43 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #44 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendDispatch.php(0): Middlewares\Utils\Dispatcher->dispatch(Object(WHMCS\Http\Message\ServerRequest))
              #45 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\BackendDispatch->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #46 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendDispatch->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #47 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #48 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #49 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutePathMatch.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #50 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutePathMatch->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #51 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutePathMatch->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #52 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #53 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #54 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/WhitelistFilter.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #55 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): WHMCS\Route\Middleware\WhitelistFilter->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #56 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\WhitelistFilter->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #57 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #58 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #59 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #60 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableClientModuleRequest->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #61 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #62 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #63 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #64 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #65 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableAdminRequestUri->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #66 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #67 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #68 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #69 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #70 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestUri->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #71 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #72 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #73 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #74 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #75 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestQueryUri->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #76 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
              #77 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
              #78 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
              #79 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
              #80 /home/meusite/public_html/central/area-administrativa/index.php(0): Middlewares\Utils\Dispatcher->dispatch(Object(WHMCS\Http\Message\ServerRequest))
              #81 {main}

              Aparentemente, esse deve ser o mesmo erro que acontece na hora que a cron roda, “crashando” o processo e não procedendo com a captura na data de vencimento, até pudemos ver quando rodamos a cron e monitoramos pelo terminal.

              – tentamos cadastrar um novo cartão de testes, passamos para sandbox e testamos mas o erro continua. (notamos que ao tentar adicionar um novo cartão na área administrativa, só há as opções “Local Store e Stripe” para ‘Select Storage Location’, é normal não aparecer a GalaxPay?)

              – outro teste que realizamos, foi utilizar um outro gateway de pagamento com capturas automáticas, o Stripe, cadastramos um cartão teste e repetimos as mesmas etapas. Nenhum erro foi registrado e o módulo conseguiu capturar corretamente.

              Fico à disposição para novos testes e informações, muito obrigado.

              • #15427
                Gofas
                Keymaster

                  Olá Ygo,
                  Obrigado pelas informações, a partir dos seus registros encontramos situações não previstas e testadas antes que precisavam de adaptação para PHP 8.

                  Verifique a versão 1.1.2, por favor:
                  https://gofas.net/?p=14641#changelog

                  • #15429
                    Ygo Ramalho
                    Participant

                      Olá Mauricio,
                      Obrigado pelo retorno, poderia verificar se o link para download foi alterado para a nova versão informada na changelog?
                      Fiz o download, instalei mas o erro persiste, porém imagino que o código seja o mesmo, o arquivo config.php tem o mesmo tamanho, inclusive.
                      Fico no aguardo, obrigado

                      • #15430
                        Gofas
                        Keymaster

                          Ops, ainda não haviam sido disponibilizados os novos arquivos quando respondi, tente baixar novamente, por favor:
                          https://gofas.net/ggpcd/

                        • #15431
                          Ygo Ramalho
                          Participant

                            Agora o link ficou quebrado, com 502 Bad Gateway, rs.
                            Só mais esse detalhe!
                            No aguardo, obrigado

                          • #15437
                            Gofas
                            Keymaster

                              Resolvido.

                            • #15438
                              Ygo Ramalho
                              Participant

                                Olá Mauricio,
                                Obrigado, realizamos a atualização do módulo e repetimos o teste, mas recebemos novamente o erro 500 no console, agora com a seguinte response:

                                TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/meusite/public_html/central/includes/gatewayfunctions.php:0
                                Stack trace:
                                #0 /home/meusite/public_html/central/includes/ccfunctions.php(0): logTransaction('gofasgalaxpayca...', Array, 'Success', Array)
                                #1 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/Model.php(0): captureCCPayment(245, 0, Array, Object(WHMCS\Payment\PayMethod\Model))
                                #2 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Admin/Client/Invoice/InvoiceController.php(0): WHMCS\Payment\PayMethod\Model->capture(Object(WHMCS\Billing\Invoice), 0)
                                #3 [internal function]: WHMCS\Admin\Client\Invoice\InvoiceController->doCapture(Object(WHMCS\Http\Message\ServerRequest))
                                #4 /home/meusite/public_html/central/vendor/middlewares/utils/src/CallableHandler.php(26): call_user_func_array(Array, Array)
                                #5 /home/meusite/public_html/central/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute(Array, Array)
                                #6 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/HandleProcessor.php(0): Middlewares\FastRoute->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #7 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\HandleProcessor->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #8 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\HandleProcessor->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #9 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #10 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #11 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #12 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Admin\ApplicationSupport\Route\Middleware\Assent->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #13 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #14 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #15 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #16 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Security/Middleware/Authorization.php(0): WHMCS\Security\Middleware\Authorization->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #17 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): WHMCS\Security\Middleware\Authorization->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #18 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #19 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #20 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #21 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #22 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #23 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/AbstractProxyMiddleware.php(0): WHMCS\Admin\ApplicationSupport\Route\Middleware\Authentication->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #24 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\AbstractProxyMiddleware->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #25 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\AbstractProxyMiddleware->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #26 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #27 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #28 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #29 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Admin\ApplicationSupport\Route\Middleware\DirectoryValidation->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #30 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #31 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #32 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #33 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendPsr7Response.php(0): WHMCS\Route\Middleware\BackendPsr7Response->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #34 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendPsr7Response->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #35 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #36 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #37 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #38 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/BackendDispatch.php(0): Middlewares\Utils\Dispatcher->dispatch(Object(WHMCS\Http\Message\ServerRequest))
                                #39 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\BackendDispatch->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #40 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\BackendDispatch->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #41 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #42 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #43 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutePathMatch.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #44 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutePathMatch->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #45 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutePathMatch->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #46 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #47 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #48 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/WhitelistFilter.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #49 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): WHMCS\Route\Middleware\WhitelistFilter->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #50 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\WhitelistFilter->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #51 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #52 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #53 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #54 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableClientModuleRequest->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #55 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #56 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #57 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #58 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #59 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableAdminRequestUri->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #60 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #61 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #62 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #63 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #64 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestUri->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #65 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #66 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #67 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #68 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #69 /home/meusite/public_html/central/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/AssumingMiddlewareTrait.php(0): WHMCS\Route\Middleware\RoutableRequestQueryUri->_process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #70 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process(Object(WHMCS\Http\Message\ServerRequest), Object(Middlewares\Utils\Delegate))
                                #71 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Message\ServerRequest))
                                #72 /home/meusite/public_html/central/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest))
                                #73 /home/meusite/public_html/central/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest))
                                #74 /home/meusite/public_html/central/area-administrativa/index.php(0): Middlewares\Utils\Dispatcher->dispatch(Object(WHMCS\Http\Message\ServerRequest))
                                #75 {main}

                                Fizemos o teste de remover o cartão e cadastrar outro de teste novamente, o comportamento é o mesmo de antes, a transação acontece no “Transaction History”, mas não fica como Pago e não registra em “Transações”, bem com o erro na janela de captura “An error occurred while communicating with the server. Please try again.”

                                Devemos fazer novo teste? Obrigado

                        • #15517
                          Ygo Ramalho
                          Participant

                            Olá, Mauricio
                            Ainda aguardo um retorno para o caso, no qual ainda não conseguimos utilizar o módulo.
                            Para esse outro erro após a atualização do módulo, como devo proceder? Há novos testes a realizar? Devo abrir um novo pedido de suporte aqui? Aciono o suporte técnico da WHMCS?

                            Estamos precisando bastante desse retorno para que seja possível utilizarmos o módulo, estamos na tentativa desde o mês passado.
                            Obrigado

                        Viewing 4 reply threads
                        • You must be logged in to reply to this topic.
                        Role para cima