{"id":22576626,"url":"https://github.com/ndolestudio/afrikpay-go","last_synced_at":"2026-04-16T16:02:50.793Z","repository":{"id":50487299,"uuid":"471071080","full_name":"NdoleStudio/afrikpay-go","owner":"NdoleStudio","description":"Unofficial go client for AfrikPay","archived":false,"fork":false,"pushed_at":"2023-08-30T13:56:00.000Z","size":60,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T15:54:18.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developer.afrikpay.com/","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/NdoleStudio.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":"2022-03-17T17:04:10.000Z","updated_at":"2022-03-18T18:48:13.000Z","dependencies_parsed_at":"2024-06-20T14:47:27.947Z","dependency_job_id":"5c70eddf-502c-4401-9ed9-343b50b1a16f","html_url":"https://github.com/NdoleStudio/afrikpay-go","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":"NdoleStudio/go-http-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fafrikpay-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fafrikpay-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fafrikpay-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fafrikpay-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NdoleStudio","download_url":"https://codeload.github.com/NdoleStudio/afrikpay-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246057733,"owners_count":20716979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-08T04:07:23.776Z","updated_at":"2026-04-16T16:02:50.788Z","avatar_url":"https://github.com/NdoleStudio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# afrikpay-go\n\n[![Build](https://github.com/NdoleStudio/afrikpay-go/actions/workflows/main.yml/badge.svg)](https://github.com/NdoleStudio/afrikpay-go/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/NdoleStudio/afrikpay-go/branch/main/graph/badge.svg)](https://codecov.io/gh/NdoleStudio/afrikpay-go)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/NdoleStudio/afrikpay-go/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/NdoleStudio/afrikpay-go/?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/NdoleStudio/afrikpay-go)](https://goreportcard.com/report/github.com/NdoleStudio/afrikpay-go)\n[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/afrikpay-go)](https://github.com/NdoleStudio/afrikpay-go/graphs/contributors)\n[![GitHub license](https://img.shields.io/github/license/NdoleStudio/afrikpay-go?color=brightgreen)](https://github.com/NdoleStudio/afrikpay-go/blob/master/LICENSE)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/NdoleStudio/afrikpay-go)](https://pkg.go.dev/github.com/NdoleStudio/afrikpay-go)\n\n\nThis package provides a Go client for the AfrikPay HTTP API https://developers.afrikpay.com/\n\n## Installation\n\n`afrikpay-go` is compatible with modern Go releases in module mode, with Go installed:\n\n```bash\ngo get github.com/NdoleStudio/afrikpay-go\n```\n\nAlternatively the same can be achieved if you use `import` in a package:\n\n```go\nimport \"github.com/NdoleStudio/afrikpay-go\"\n```\n\n\n## Implemented\n\n- **Balance**:\n  - `POST /api/oss/balance/partner/v1`: Returns deposit and commission balance of the user\n- **Payment**:\n  - `POST /api/oss/payment/partner/v1`: Make a payment (airtime, bill, taxes, school)\n- **Transaction Status**:\n  - `POST /api/oss/transaction/status/partner/v1`: Get status of specific transaction\n- **Cash In**:\n  - `POST /api/oss/cashin/partner/v1`: Perform a cash in operation\n- **Option**:\n  - `POST /api/oss/option/partner/v1`: Get payment options for a service e.g. CANAL+\n\n## Usage\n\n### Initializing the Client\n\nAn instance of the client can be created using `New()`.\n\n```go\npackage main\n\nimport (\n\t\"github.com/NdoleStudio/afrikpay-go\"\n)\n\nfunc main()  {\n  client := afrikpay.New(\n    afrikpay.WithAPIKey(\"\"/* api key */),\n    afrikpay.WithWalletUsername(\"\"/* wallet username */),\n    afrikpay.WithWalletPassword(\"\"/* wallet username */),\n    afrikpay.WithWalletPin(\"\"/* wallet pin */),\n  )\n}\n```\n\n### Error handling\n\nAll API calls return an `error` as the last return object. All successful calls will return a `nil` error.\n\n```go\nbalance, response, err := client.Balance(context.Background())\nif err != nil {\n    // handle error\n}\n```\n\n## Testing\n\nYou can run the unit tests for this client from the root directory using the command below:\n\n```bash\ngo test -v\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fafrikpay-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndolestudio%2Fafrikpay-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fafrikpay-go/lists"}