{"id":43983707,"url":"https://github.com/gerencianet/gn-api-sdk-java","last_synced_at":"2026-02-07T09:30:55.050Z","repository":{"id":51671884,"uuid":"68709411","full_name":"gerencianet/gn-api-sdk-java","owner":"gerencianet","description":"SDK em Java integrada a API Gerencianet. Esta SDK está preparada para integração à API Pix e API Boletos da Gerencianet, que lhe permite realizar o gerenciamento de cobranças Pix com QR Code e Pix Copia e Cola, boleto/Bolix, carnê, cartão de crédito e muito mais.","archived":false,"fork":false,"pushed_at":"2023-04-14T17:28:06.000Z","size":74,"stargazers_count":23,"open_issues_count":3,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-26T14:46:58.076Z","etag":null,"topics":["assinatura","bilet","boleto","bolix","card","carne","carnet","cartao-de-credito","java","link-de-pagamento","marketplace","pix","pix-copia-e-cola","qrcode","sdk","sdk-java","split","subscription"],"latest_commit_sha":null,"homepage":"https://dev.gerencianet.com.br/docs/instalacao-sdk-java","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gerencianet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-20T12:26:53.000Z","updated_at":"2024-12-09T19:55:24.000Z","dependencies_parsed_at":"2022-09-03T07:02:13.424Z","dependency_job_id":null,"html_url":"https://github.com/gerencianet/gn-api-sdk-java","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/gerencianet/gn-api-sdk-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerencianet%2Fgn-api-sdk-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerencianet%2Fgn-api-sdk-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerencianet%2Fgn-api-sdk-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerencianet%2Fgn-api-sdk-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerencianet","download_url":"https://codeload.github.com/gerencianet/gn-api-sdk-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerencianet%2Fgn-api-sdk-java/sbom","scorecard":{"id":423667,"data":{"date":"2025-08-11","repo":{"name":"github.com/gerencianet/gn-api-sdk-java","commit":"7463a0d4d71a9db6f76e721944db5c6fb1d39b82"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3vqj-43w4-2q58","Warn: Project is vulnerable to: GHSA-4jq9-2xhw-jpx7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T01:49:03.326Z","repository_id":51671884,"created_at":"2025-08-19T01:49:03.326Z","updated_at":"2025-08-19T01:49:03.326Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assinatura","bilet","boleto","bolix","card","carne","carnet","cartao-de-credito","java","link-de-pagamento","marketplace","pix","pix-copia-e-cola","qrcode","sdk","sdk-java","split","subscription"],"created_at":"2026-02-07T09:30:53.196Z","updated_at":"2026-02-07T09:30:55.035Z","avatar_url":"https://github.com/gerencianet.png","language":"Java","readme":"# SDK GERENCIANET FOR JAVA\n\nSdk for Gerencianet Pagamentos' API.\nFor more informations about parameters and values, please refer to [Gerencianet](http://gerencianet.com.br) documentation.\n\n**Em caso de dúvidas, você pode verificar a [Documentação](https://docs.gerencianet.com.br) da API na Gerencianet e, necessitando de mais detalhes ou informações, entre em contato com nossa consultoria técnica, via nossos [Canais de Comunicação](https://gerencianet.com.br/central-de-ajuda).**\n\n\n[![Build Status](https://travis-ci.org/gerencianet/gn-api-sdk-java.svg?branch=master)](https://travis-ci.org/gerencianet/gn-api-sdk-java)\n[![Coverage Status](https://coveralls.io/repos/github/gerencianet/gn-api-sdk-java/badge.svg?branch=master)](https://coveralls.io/github/gerencianet/gn-api-sdk-java?branch=master)\n[![Maven Central](https://img.shields.io/maven-central/v/br.com.gerencianet.gnsdk/gn-api-sdk-java.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22br.com.gerencianet.gnsdk%22%20AND%20a%3A%22gn-api-sdk-java%22)\n\n## Requirements\n* Java \u003e= 7.0\n\n## Tested with\n```\njava  7.0 and 8.0\n```\n## Installation\n\n**Via gradle:**\n\n```gradle\ncompile 'br.com.gerencianet.gnsdk:gn-api-sdk-java:2.0.0'\n```\n\n**Via maven:**\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ebr.com.gerencianet.gnsdk\u003c/groupId\u003e\n    \u003cartifactId\u003egn-api-sdk-java\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Getting started\nRequire the module and packages:\n```java\nimport br.com.gerencianet.gnsdk.Gerencianet;\nimport br.com.gerencianet.gnsdk.exceptions.GerencianetException;\n\n```\nAlthough the web services responses are in json format, the sdk will convert any server response to a JSONObject or a Map\u003cString, Object\u003e. The code must be within a try-catch and exceptions can be handled as follow:\n```\n```java\ntry {\n  /* code */\n} catch(GerencianetException e) {\n  /* Gerencianet's api errors will come here */\n} catch(Exception ex) {\n  /* Other errors will come here */\n}\n```\n\n### For development environment\nInstantiate the module passing using your client_id, client_secret and sandbox equals true:\n```java\nJSONObject options = new JSONObject();\noptions.put(\"client_id\", \"client_id\");\noptions.put(\"client_secret\", \"client_secret\");\noptions.put(\"certificate\", \"./certs/developmentCertificate.p12\");\noptions.put(\"sandbox\", true);\n\nGerencianet gn = new Gerencianet($options);\n```\nOr\n\n```java\nMap\u003cString, Object\u003e options = new HashMap\u003cString, Object\u003e();\noptions.put(\"client_id\", \"client_id\");\noptions.put(\"client_secret\", \"client_secret\");\noptions.put(\"certificate\", \"./certs/developmentCertificate.p12\");\noptions.put(\"sandbox\", true);\n\nGerencianet gn = new Gerencianet($options);\n```\n\n### For production environment\nTo change the environment to production, just set the third sandbox to false:\n```java\nJSONObject options = new JSONObject();\noptions.put(\"client_id\", \"client_id\");\noptions.put(\"client_secret\", \"client_secret\");\noptions.put(\"certificate\", \"./certs/productionCertificate.p12\");\noptions.put(\"sandbox\", false);\n\nGerencianet gn = new Gerencianet($options);\n```\nOr\n\n```java\nMap\u003cString, Object\u003e options = new HashMap\u003cString, Object\u003e();\noptions.put(\"client_id\", \"client_id\");\noptions.put(\"client_secret\", \"client_secret\");\noptions.put(\"certificate\", \"./certs/productionCertificate.p12\");\noptions.put(\"sandbox\", false);\n\nGerencianet gn = new Gerencianet($options);\n```\n\n## Running tests\n\nTo run the test suite with coverage:\n\n```\nmvn clean test jacoco:report\n```\n## Running examples\nTo run some existing examples follow the steps described at [gn-api-sdk-java-examples](https://github.com/gerencianet/gn-api-sdk-java-examples).\n\n## Additional Documentation\n\nThe full documentation with all available endpoints is in https://dev.gerencianet.com.br/.\n\n## Changelog\n\n[CHANGELOG](CHANGELOG.md)\n\n## License ##\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerencianet%2Fgn-api-sdk-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerencianet%2Fgn-api-sdk-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerencianet%2Fgn-api-sdk-java/lists"}