Termos mais procurados:
Termos mais procurados:
estou utilizando php e até agora não consegui cadastrar o webhook usando curl , falta isso
Bom dia, @roxzin! Como vai?
Aqui está um código que funciona:
' . json_encode($responsePix, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . '';
' . json_encode($PixCopiaCola, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . '';
Bom dia, alguem tem um codigo funcional em php usando curl apenas para gerar qrcode dinamico? tudo que encontro é desatualizo e nao funciona direito.
@souzinhadoemekate nesse caso você pode utilizar nossa SDK de PHP para realizar a criação das cobranças no seu projeto.
https://github.com/efipay/sdk-php-apis-efi
Bom dia, @esdrasfyy! Tudo bem?
Você está implementando a SDK de PHP com Laravel, certo?
Verifique se no arquivo de credenciais está debub => true e troque para debug => false ou para debug => fopen('php://stderr', 'w').
'pix_cert' => public_path('certs/certificate-chain-prod.crt'),
alguem que manja de php e efipay ai me da uma ajuda aqui, estou cadastrando o webhook e passando o pix_cet porem ta dando esse erro
"curl_setopt_array(): Cannot represent a stream of type Output as a STDIO FILE"
Eu tenho um código em php que faz isso, e também já testei utilizando o conversor de vocês, mas o mesmo erro é retornado
recebi esse erro com o arquivo .p12:
Exception: could not load PEM client certificate from /projeto_maquina_api/storage/app/Certificados/certificate12.p12, OpenSSL error error:0480006C:PEM routines::no start line, (no key found, wrong pass phrase, in file /projeto_maquina_api/app/Services/Efi/AuthService.php on line 62
Agora o erro retornado é esse:
Exception: unable to set private key file: '/projeto_maquina_api/storage/app/Certificados/certificate12.pem' type PEM in file /projeto_maquina_api/app/Services/Efi/AuthService.php on line 59
@luizfeleal existem algumas falha em como você montou a requisição, segue um exemplo de como fazer a autenticação:
";";
echo $response;
echo "
PHP 7.4.33, WordPress 6.6.1, woocommerce 9.2.3, EFI 2.3.0
Qual versão do PHP, Wordpress, Wocommerce e Plugin Efí você esta utilizando?
Estamos analisando se pode ser algo relacionado ao plugin ou à versão do php/cURL.
Ah sim, seu script php está em qual diretório?
Seu script php tá no / do SO?
Entendido. Sem problemas.
O erro provavelmente está no certificado. O CURL não reconhece o caminho do certificado sendo uma URL como havia colocado. Você deve colocar o caminho para o certificado no local do servidor.
Exemplo: