{"id":38863933,"url":"https://github.com/kehindesalaam/go-paystack","last_synced_at":"2026-01-17T14:24:00.894Z","repository":{"id":57531462,"uuid":"103435655","full_name":"kehindesalaam/go-paystack","owner":"kehindesalaam","description":"go-paystack is a Go client library for accessing the Paystack API","archived":false,"fork":false,"pushed_at":"2017-11-03T23:19:43.000Z","size":159,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T05:13:34.924Z","etag":null,"topics":["go","paystack","paystack-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kehindesalaam.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-09-13T18:24:03.000Z","updated_at":"2024-01-04T00:36:12.000Z","dependencies_parsed_at":"2022-09-05T09:51:19.677Z","dependency_job_id":null,"html_url":"https://github.com/kehindesalaam/go-paystack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kehindesalaam/go-paystack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kehindesalaam%2Fgo-paystack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kehindesalaam%2Fgo-paystack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kehindesalaam%2Fgo-paystack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kehindesalaam%2Fgo-paystack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kehindesalaam","download_url":"https://codeload.github.com/kehindesalaam/go-paystack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kehindesalaam%2Fgo-paystack/sbom","scorecard":{"id":553713,"data":{"date":"2025-08-11","repo":{"name":"github.com/kehindesalaam/go-paystack","commit":"9286b18021f632aa6379e56844c1f6d5e8f30103"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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"}}]},"last_synced_at":"2025-08-20T11:43:51.495Z","repository_id":57531462,"created_at":"2025-08-20T11:43:51.495Z","updated_at":"2025-08-20T11:43:51.495Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["go","paystack","paystack-api"],"created_at":"2026-01-17T14:24:00.837Z","updated_at":"2026-01-17T14:24:00.888Z","avatar_url":"https://github.com/kehindesalaam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-paystack #\r\n\r\ngo-paystack is a Go client library for accessing the Paystack.\r\n\r\n**Build Status:** ![Build Status](https://travis-ci.com/kehindesalaam/go-paystack.svg?token=jEi76ESgT7V1Uzbsyqb8\u0026branch=master)\r\n\r\n## Usage ##\r\n```go\r\nimport \"github.com/kehindesalaam/go-paystack/paystack\"\r\n```\r\n\r\nConstruct a new Paystack client, then use the various services on the client to access different parts of the Paystack API. For example:\r\n\r\n```go\r\nclient := paystack.NewClient(nil, paystack.SecretKey(\"sk_test_your_secret_key\"))\r\nnewCustomer, _, err := client.Customer.Fetch(ctx, \"12345\");\r\n```\r\n\r\nThe services of a client divide the API into logical chunks and correspond to the structure of the Paystack API documentation at https://developers.paystack.co/reference\r\n\r\n### Creating and Updating Resources ###\r\n\r\nAll structs for Paystack resources use pointer values for all non-repeated fields.\r\nThis allows distinguishing between unset fields and those set to a zero-value.\r\nAll requests should be made with the Client request objects as in `paystack.CustomerRequest`\r\nHelper functions have been provided to easily create these pointers for string,bool, and int values. For example:\r\n\r\n```go\r\n// create a new customer with email \"foo@testing.com\"\r\ncust := \u0026paystack.CustomerRequest{\r\n    Email: paystack.String(\"foo@testing.com\"),\r\n    FirstName: paystack.String(\"Kehinde\"),\r\n    LastName: paystack.String(\"Salaam\"),\r\n    Phone: paystack.String(\"123456789\")\r\n }\r\nclient.Customer.Create(ctx, \"\", cust)\r\n```\r\n\r\nUsers who have worked with protocol buffers should find this pattern familiar.\r\n\r\n### Pagination ###\r\n\r\nAll requests for resource collections (repos, pull requests, issues, etc.) support pagination. Pagination options are described in the\r\n`paystack.ListOptions` struct and passed to the list methods directly or as an embedded type of a more specific list options struct (for example `paystack.TransactionOptions`). Pages information is available via the `paystack.Response` struct.\r\n\r\n```go\r\nclient := paystack.NewClient(nil, paystack.SecretKey(\"sk_test_your_secret_key\"))\r\n\r\nopt := \u0026paystack.TransactionOptions{\r\n\tListOptions: paystack.ListOptions{PerPage: 10},\r\n}\r\n// get all pages of results\r\nvar allTxns []*paystack.Transaction\r\nfor {\r\n\ttxns, resp, err := client.Transaction.List(ctx, opt)\r\n\tif err != nil {\r\n\t\treturn err\r\n\t}\r\n\tallTxns = append(allTxns, txns...)\r\n\tif resp.NextPage == 0 {\r\n\t\tbreak\r\n\t}\r\n\topt.Page = resp.NextPage\r\n}\r\n```\r\n\r\n## LICENSE ##\r\n\r\nThis library is distributed under the BSD-style license found in the [LICENSE](./LICENSE)\r\nfile.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkehindesalaam%2Fgo-paystack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkehindesalaam%2Fgo-paystack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkehindesalaam%2Fgo-paystack/lists"}