{"id":25403525,"url":"https://github.com/saopayne/gocardless-pro-go","last_synced_at":"2025-10-31T00:30:43.001Z","repository":{"id":57643323,"uuid":"101185818","full_name":"saopayne/gocardless-pro-go","owner":"saopayne","description":"GoCardless Pro Go Client [Unofficial]. This library provides a simple wrapper around the GoCardless API.","archived":false,"fork":false,"pushed_at":"2017-09-28T19:50:49.000Z","size":200,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-06T20:28:06.756Z","etag":null,"topics":["api-client","documentation","go","gocardless","library"],"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/saopayne.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-08-23T13:54:27.000Z","updated_at":"2023-12-18T17:05:33.000Z","dependencies_parsed_at":"2022-08-27T23:22:28.296Z","dependency_job_id":null,"html_url":"https://github.com/saopayne/gocardless-pro-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saopayne%2Fgocardless-pro-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saopayne%2Fgocardless-pro-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saopayne%2Fgocardless-pro-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saopayne%2Fgocardless-pro-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saopayne","download_url":"https://codeload.github.com/saopayne/gocardless-pro-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239080848,"owners_count":19578230,"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":["api-client","documentation","go","gocardless","library"],"created_at":"2025-02-16T02:39:48.493Z","updated_at":"2025-10-31T00:30:42.727Z","avatar_url":"https://github.com/saopayne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/saopayne/gocardless-pro-go.svg?branch=master)](https://travis-ci.org/saopayne/gocardless-pro-go)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n# GO Client for GoCardless Pro API\n\n#### [__Work In Progress__]\n\nGo library to access GoCardless API. This library provides a simple wrapper around the [GoCardless API](http://developer.gocardless.com/api-reference).\n\n- [API Reference](https://developer.gocardless.com/api-reference/2015-07-06)\n\n\n## Getting started\n\n```\ngo get github.com/saopayne/gocardless-pro-go\n```\n\n## Initializing the client\n\n## Usage\n\n``` go\n\nimport \"https://github.com/saopayne/gocardless-pro-go\"\n\napiKey := \"sandbox_o55p5OowBX59Rd8aDR7c_25LQdBTHRaACeVnqj0o\"\n\nclient := NewClient(apiKey, nil)\n\ncust := \u0026Customer{\n    FamilyName:   \"Oyewale\",\n    GivenName:    \"Ademola\",\n    Email:        \"user123@gmail.com\",\n    PostalCode:   \"E2 8DP\",\n    CountryCode:  \"GB\",\n    City:         \"Lagos\",\n    AddressLine1: \"Just somewhere on Earth\",\n    AddressLine2: \"Another place on Earth\",\n    AddressLine3: \"Just the third address to justify things\",\n    Language:     \"en\",\n}\n\n// create the customer\nclient.LoggingEnabled = true\ncustomer, err := client.Customer.Create(cust)\nif err != nil {\n    // do something with error\n    fmt.Sprintf(\"The error while creating a customer is :%s\", err.Error())\n}\nfmt.Sprintf(\"The customer created is: %s \", string(customer.Email))\n\n// Get customer by ID\ncustomer, err = client.Customer.Get(customer.ID)\nif err != nil {\n    fmt.Sprintf(\"The error while getting a customer is :%s\", err.Error())\n}\n\nfmt.Sprintf(\"The customer retrieved with ID: %d is : %s\", customer.ID, customer.Email)\n\n// Creating a redirect flow\nrFlowCreateReq := \u0026RedirectFlowCreateRequest{\n    Description: \"Wine vines\",\n    SessionToken: \"SESS_wSs0uGYMISxzqOBq\",\n    PrefilledCustomer: PrefilledCustomer{\n        GivenName: \"Ademola\",\n        FamilyName: \"Oyewale\",\n    },\n    SuccessRedirectUrl: \"https://wewee.ngrok.io/\",\n}\n// create a redirecflow\nclient.LoggingEnabled = true\nredirectFlow, err := client.RedirectFlow.Create(rFlowCreateReq)\nif err != nil {\n    // do something with error\n    fmt.Sprintf(\"The error while creating a redirect flow pdf is :%s\", err.Error())\n}\nfmt.Sprintf(\"The redirect flow created has the description: %s \", redirectFlow.Description)\n\n```\n\nFor a more descriptive usage [Click Here](https://github.com/saopayne/gocardless-pro-go/blob/master/Usage.md)\n\nSee the test files for more examples.\n\n## TODO\n- [x] Complete All Api calls\n- [ ] Documentation\n- [ ] Write Unit tests\n- [ ] Better handling of API call errors\n\n\n## CONTRIBUTING\n- Fork the repository, make necessary changes and send the PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaopayne%2Fgocardless-pro-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaopayne%2Fgocardless-pro-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaopayne%2Fgocardless-pro-go/lists"}