{"id":22576611,"url":"https://github.com/ndolestudio/orangemoney-go","last_synced_at":"2025-04-10T17:13:07.175Z","repository":{"id":64497523,"uuid":"575078317","full_name":"NdoleStudio/orangemoney-go","owner":"NdoleStudio","description":"Unofficial SDK for the Orange Money API","archived":false,"fork":false,"pushed_at":"2025-04-02T08:15:20.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T09:26:37.687Z","etag":null,"topics":["orange-money","orange-money-api","orange-money-cameroon","orange-money-core"],"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/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-12-06T17:54:28.000Z","updated_at":"2025-04-02T08:15:21.000Z","dependencies_parsed_at":"2025-03-15T11:29:26.156Z","dependency_job_id":null,"html_url":"https://github.com/NdoleStudio/orangemoney-go","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"NdoleStudio/go-http-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Forangemoney-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Forangemoney-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Forangemoney-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Forangemoney-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NdoleStudio","download_url":"https://codeload.github.com/NdoleStudio/orangemoney-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261909,"owners_count":21074225,"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":["orange-money","orange-money-api","orange-money-cameroon","orange-money-core"],"created_at":"2024-12-08T04:07:21.646Z","updated_at":"2025-04-10T17:13:07.168Z","avatar_url":"https://github.com/NdoleStudio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# orangemoney-go\n\n[![Build](https://github.com/NdoleStudio/orangemoney-go/actions/workflows/main.yml/badge.svg)](https://github.com/NdoleStudio/orangemoney-go/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/NdoleStudio/orangemoney-go/branch/main/graph/badge.svg)](https://codecov.io/gh/NdoleStudio/orangemoney-go)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/NdoleStudio/orangemoney-go/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/NdoleStudio/orangemoney-go/?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/NdoleStudio/orangemoney-go)](https://goreportcard.com/report/github.com/NdoleStudio/orangemoney-go)\n[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/orangemoney-go)](https://github.com/NdoleStudio/orangemoney-go/graphs/contributors)\n[![GitHub license](https://img.shields.io/github/license/NdoleStudio/orangemoney-go?color=brightgreen)](https://github.com/NdoleStudio/orangemoney-go/blob/master/LICENSE)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/NdoleStudio/orangemoney-go)](https://pkg.go.dev/github.com/NdoleStudio/orangemoney-go)\n\n\nThis package provides a generic `go` client for the Orange Money API\n\n## Installation\n\n`orangemoney-go` is compatible with modern Go releases in module mode, with Go installed:\n\n```bash\ngo get github.com/NdoleStudio/orangemoney-go\n```\n\nAlternatively the same can be achieved if you use `import` in a package:\n\n```go\nimport \"github.com/NdoleStudio/orangemoney-go\"\n```\n\n\n## Implemented\n\n- **Token**\n  - `POST {baseURL}/token`: Get Access Token\n- **Merchant Payments**\n  - `POST {baseURL}/omcoreapis/1.0.2/mp/init`: Generate pay token.\n  - `GET {baseURL}/omcoreapis/1.0.2/mp/push/{payToken}`: Push payment notification.\n  - `GET {baseURL}/omcoreapis/1.0.2/mp/paymentstatus/{payToken}`: Get the status of a transaction\n  - `GET {baseURL}/omcoreapis/1.0.1/mp/pay`: Execute and initiated transaction\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    \"github.com/NdoleStudio/orangemoney-go\"\n)\n\nfunc main() {\n    client := orangemoney.New(\n        orangemoney.WithUsername(\"\"),\n        orangemoney.WithPassword(\"\"),\n        orangemoney.WithAuthToken(\"\"),\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\nstatus, response, err := client.MerchantPayment.Init(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%2Forangemoney-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndolestudio%2Forangemoney-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Forangemoney-go/lists"}