{"id":37144052,"url":"https://github.com/epikoder/paystack-go","last_synced_at":"2026-01-14T16:54:58.698Z","repository":{"id":59045255,"uuid":"530166609","full_name":"epikoder/paystack-go","owner":"epikoder","description":"Go library for the Paystack API https://developers.paystack.co/v1.0/reference","archived":false,"fork":true,"pushed_at":"2022-09-07T13:36:14.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-11-17T09:32:32.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rpip/paystack-go","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epikoder.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":"2022-08-29T10:18:29.000Z","updated_at":"2022-07-15T18:28:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/epikoder/paystack-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/epikoder/paystack-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epikoder%2Fpaystack-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epikoder%2Fpaystack-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epikoder%2Fpaystack-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epikoder%2Fpaystack-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epikoder","download_url":"https://codeload.github.com/epikoder/paystack-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epikoder%2Fpaystack-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28427079,"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":[],"created_at":"2026-01-14T16:54:57.887Z","updated_at":"2026-01-14T16:54:58.685Z","avatar_url":"https://github.com/epikoder.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"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%2Fepikoder%2Fpaystack-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepikoder%2Fpaystack-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepikoder%2Fpaystack-go/lists"}