{"id":37143136,"url":"https://github.com/rpip/paystack-go","last_synced_at":"2026-01-14T16:48:09.110Z","repository":{"id":45705533,"uuid":"100734128","full_name":"rpip/paystack-go","owner":"rpip","description":"Go library for the Paystack API https://developers.paystack.co/v1.0/reference","archived":false,"fork":false,"pushed_at":"2023-12-18T19:18:23.000Z","size":52,"stargazers_count":59,"open_issues_count":13,"forks_count":39,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-18T21:45:09.423Z","etag":null,"topics":["golang","payments","paystack"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rpip.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-18T17:11:17.000Z","updated_at":"2024-06-04T11:32:44.000Z","dependencies_parsed_at":"2024-06-18T21:40:32.962Z","dependency_job_id":null,"html_url":"https://github.com/rpip/paystack-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rpip/paystack-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpip%2Fpaystack-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpip%2Fpaystack-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpip%2Fpaystack-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpip%2Fpaystack-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpip","download_url":"https://codeload.github.com/rpip/paystack-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpip%2Fpaystack-go/sbom","scorecard":{"id":786294,"data":{"date":"2025-08-11","repo":{"name":"github.com/rpip/paystack-go","commit":"196191f8ab58b77db95bd41e8ff2ca1e10eeba99"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/7 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile.test:1: pin your Docker image by updating golang:1.15 to golang:1.15@sha256:ea080cc817b02a946461d42c02891bf750e3916c52f7ea8187bccde8f312b59f","Warn: goCommand not pinned by hash: Dockerfile.test:7","Warn: goCommand not pinned by hash: Dockerfile.test:8","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   2 goCommand dependencies pinned"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 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"}},{"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"}}]},"last_synced_at":"2025-08-23T06:12:04.215Z","repository_id":45705533,"created_at":"2025-08-23T06:12:04.215Z","updated_at":"2025-08-23T06:12:04.215Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["golang","payments","paystack"],"created_at":"2026-01-14T16:48:08.348Z","updated_at":"2026-01-14T16:48:09.103Z","avatar_url":"https://github.com/rpip.png","language":"Go","funding_links":[],"categories":["Table of Contents"],"sub_categories":["Naira Payments and Account Provision"],"readme":"[![GoDoc](http://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/rpip/paystack-go) [![Build Status](https://travis-ci.org/rpip/paystack-go.svg?branch=master)](https://travis-ci.org/rpip/paystack-go) \n\n# Go library for the Paystack API.\n\npaystack-go is a Go client library for accessing the Paystack API.\n\nWhere possible, the services available on the client groups the API into logical chunks and correspond to the structure of the Paystack API documentation at https://developers.paystack.co/v1.0/reference.\n\n## Usage\n\n``` go\nimport \"github.com/rpip/paystack-go\"\n\napiKey := \"sk_test_b748a89ad84f35c2f1a8b81681f956274de048bb\"\n\n// second param is an optional http client, allowing overriding of the HTTP client to use.\n// This is useful if you're running in a Google AppEngine environment\n// where the http.DefaultClient is not available.\nclient := paystack.NewClient(apiKey)\n\nrecipient := \u0026TransferRecipient{\n    Type:          \"Nuban\",\n    Name:          \"Customer 1\",\n    Description:   \"Demo customer\",\n    AccountNumber: \"0100000010\",\n    BankCode:      \"044\",\n    Currency:      \"NGN\",\n    Metadata:      map[string]interface{}{\"job\": \"Plumber\"},\n}\n\nrecipient1, err := client.Transfer.CreateRecipient(recipient)\n\nreq := \u0026TransferRequest{\n    Source:    \"balance\",\n    Reason:    \"Delivery pickup\",\n    Amount:    30,\n    Recipient: recipient1.RecipientCode,\n}\n\ntransfer, err := client.Transfer.Initiate(req)\nif err != nil {\n    // do something with error\n}\n\n// retrieve list of plans\nplans, err := client.Plan.List()\n\nfor i, plan := range plans.Values {\n  fmt.Printf(\"%+v\", plan)\n}\n\ncust := \u0026Customer{\n    FirstName: \"User123\",\n    LastName:  \"AdminUser\",\n    Email:     \"user123@gmail.com\",\n    Phone:     \"+23400000000000000\",\n}\n// create the customer\ncustomer, err := client.Customer.Create(cust)\nif err != nil {\n    // do something with error\n}\n\n// Get customer by ID\ncustomer, err := client.Customers.Get(customer.ID)\n```\n\nSee the test files for more examples.\n\n## Docker\n\nTest this library in a docker container:\n\n```bash\n# PAYSTACK_KEY is an environment variable that should be added to your rc file. i.e .bashrc\n$ make docker \u0026\u0026 docker run -e PAYSTACK_KEY -i -t paystack:latest\n```\n\n## TODO\n- [ ] Maybe support request context?\n- [ ] Test on App Engine\n\n## CONTRIBUTING\nContributions are of course always welcome. The calling pattern is pretty well established, so adding new methods is relatively straightforward. Please make sure the build succeeds and the test suite passes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpip%2Fpaystack-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpip%2Fpaystack-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpip%2Fpaystack-go/lists"}