Você pode utilizar como base este exemplo [aqui](https://github.com/efipay/sdk-php-apis-efi/blob/main/examples/pix/cob/pixCreateImmediateCharge.php) e adaptar para retornar somente os dados que deseja.
Você pode utilizar como base este exemplo [aqui](https://github.com/efipay/sdk-php-apis-efi/blob/main/examples/pix/cob/pixCreateImmediateCharge.php) e adaptar para retornar somente os dados que deseja.
Nós temos uma documentação técnica, onde você encontra todos os detalhes sobre nossas APIs. Nela você encontra exemplos, descrição dos atributos, collections Postman de todas as APIs, sdks em algumas linguagens e também disponibilizamos um curso sobre nossa API. Segue o link: https://dev.efipay.com.br/docs/api-pix/credenciais/
Boa tarde @fruto9_47851 ! Você utiliza nossa sdk? Esta com alguma falha?
Boa tarde, @gabrielfavera! Tudo bem?
Para realizar a integração em app Flutter você pode usar nossa SDK em Dart. Segue o link do GitHub:
https://github.com/efipay/sdk-dart-apis-efi
bom dia! Estou tendo o seguinte problema ao fazer uso do SDK Java (estava funcionando há um tempo atrás):
mensagem:
java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
stack:
at br.com.efi.efisdk.Request.send(Request.java:51) ~[sdk-java-apis-efi-1.0.0.jar:na]
at br.com.efi.efisdk.Auth.authorize(Auth.java:63) ~[sdk-java-apis-efi-1.0.0.jar:na]
at br.com.efi.efisdk.APIRequest.send(APIRequest.java:61) ~[sdk-java-apis-efi-1.0.0.jar:na]
at br.com.efi.efisdk.Endpoints.kernelCall(Endpoints.java:129) ~[sdk-java-apis-efi-1.0.0.jar:na]
at br.com.efi.efisdk.Endpoints.call(Endpoints.java:94) ~[sdk-java-apis-efi-1.0.0.jar:na]
mais alguém?
Seria no endpoint GET /v2/cob/:txid - https://github.com/efipay/sdk-dotnet-apis-efi/blob/main/Examples/pix/cob/PixDetailCharge.cs
Estou utilizando o SDK Python da EFI e com os dados de homologação funcionou a conexão normalmente
Quando troquei para os dados de Produção e agora tenho esse erro:
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
não consigo gerar boletos atualizei o sdk-php-apis-efi-1.8.0
A API é aberta e descrita nos endpoints, não precisa usar SDK... nós não usamos na nossa integração, apesar deles terem um SDK Golang.
Aonde colocar o certificado é uma questão do seu ambiente local, pq o certificado é usado para estabelecer a conexão... mas sim, se seu ambiente tem uma opção certificate no payload, tem grande cara de ser aí mesmo.
E sim, sem o certificado nem fecha a conexão, então nem vai ter mensagem de erro da Efí, só do seu ambiente local.
Agradeço às respostas. Tive certo avanço. Consegui fazer testes pelo Postman.
Estou tentando fazer a chamada de dentro do Google Apps Script, onde não suporta uso de SDK.. é possível construir as requisições manualmente sem uso de SDK e fazer as chamadas?
processing: https://pix.api.efipay.com.br/oauth/token
Trying 52.3.67.197:443...
Connected to pix.api.efipay.com.br (52.3.67.197) port 443
CAfile: none
CApath: none
ALPN: offers http/1.1
NSS: client certificate from file
subject: C=BR,CN=301970
start date: May 19 20:28:50 2021 GMT
expire date: May 19 20:28:50 2024 GMT
common name: 301970
issuer: [email protected],CN=api-pix.gerencianet.com.br,OU=Infraestrutura,O=Gerencianet Pagamentos do Brasil Ltda,ST=Minas Gerais,C=BR
ALPN: server accepted http/1.1
SSL connection using TLS_AES_256_GCM_SHA384
Server certificate:
subject: CN=.api.efipay.com.br,O=EFI S.A. - INSTITUICAO DE PAGAMENTO,L=OURO PRETO,ST=MINAS GERAIS,C=BR
start date: May 17 19:31:27 2023 GMT
expire date: Jun 17 19:31:26 2024 GMT
common name: .api.efipay.com.br
issuer: CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE
using HTTP/1.1
> POST /oauth/token HTTP/1.1
Host: pix.api.efipay.com.br
api-sdk: efi-php-1.8.0
User-Agent: GuzzleHttp/7
Content-Type: application/json
Authorization: Basic Q2xpZW50X0lkXzcwMWE0OGU2ZWExMDM0ODk5NjAxNTIzY2VmZjY5ZTZlM2M4OGVjMDA6Q2xpZW50X1NlY3JldF9hMDYyZmU5OWE0NjhmYjViZjIzZmE0YzgwMTUyZDFlM2RhNWIzNjFj
Content-Length: 35
Empty reply from server
Closing connection
Agora estou recebendo a seguinte mensagem:
processing: https://pix.api.efipay.com.br/oauth/token
Trying 35.170.124.249:443...
Connected to pix.api.efipay.com.br (35.170.124.249) port 443
CAfile: none
CApath: none
ALPN: offers http/1.1
NSS: client certificate from file
subject: C=BR,CN=301970
start date: May 02 14:50:05 2024 GMT
expire date: May 02 14:50:05 2027 GMT
common name: 301970
issuer: [email protected],CN=apis.efipay.com.br,OU=Infraestrutura,O=Efi S.A. - Instituicao de Pagamento,ST=Minas Gerais,C=BR
ALPN: server accepted http/1.1
SSL connection using TLS_AES_256_GCM_SHA384
Server certificate:
subject: CN=.api.efipay.com.br,O=EFI S.A. - INSTITUICAO DE PAGAMENTO,L=OURO PRETO,ST=MINAS GERAIS,C=BR
start date: May 17 19:31:27 2023 GMT
expire date: Jun 17 19:31:26 2024 GMT
common name: .api.efipay.com.br
issuer: CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE
using HTTP/1.1
> POST /oauth/token HTTP/1.1
Host: pix.api.efipay.com.br
api-sdk: efi-php-1.8.0
User-Agent: GuzzleHttp/7
Content-Type: application/json
Authorization: Basic Q2xpZW50X0lkXzcwMWE0OGU2ZWExMDM0ODk5NjAxNTIzY2VmZjY5ZTZlM2M4OGVjMDA6Q2xpZW50X1NlY3JldF9hMDYyZmU5OWE0NjhmYjViZjIzZmE0YzgwMTUyZDFlM2RhNWIzNjFj
Content-Length: 35
Empty reply from server
Closing connection
como eu descubro a versão do sdk está hospedado no cpanel?