{"id":19585476,"url":"https://github.com/stremovskyy/gofondy","last_synced_at":"2026-02-23T15:33:06.193Z","repository":{"id":46875091,"uuid":"484507434","full_name":"stremovskyy/gofondy","owner":"stremovskyy","description":"Golang Fondy API Client library","archived":false,"fork":false,"pushed_at":"2024-05-03T13:02:52.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T09:48:14.369Z","etag":null,"topics":["client","fondy","golang-library","golang-package","payment-gateway"],"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/stremovskyy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-04-22T16:50:36.000Z","updated_at":"2024-05-03T12:51:14.000Z","dependencies_parsed_at":"2024-06-21T00:25:53.552Z","dependency_job_id":"60ff9f24-17b0-4048-804f-22672534f155","html_url":"https://github.com/stremovskyy/gofondy","commit_stats":{"total_commits":60,"total_committers":2,"mean_commits":30.0,"dds":"0.033333333333333326","last_synced_commit":"e44fc00d2ad50368a80c652650eee592c0a205b0"},"previous_names":["karmadon/gofondy"],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/stremovskyy/gofondy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stremovskyy%2Fgofondy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stremovskyy%2Fgofondy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stremovskyy%2Fgofondy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stremovskyy%2Fgofondy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stremovskyy","download_url":"https://codeload.github.com/stremovskyy/gofondy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stremovskyy%2Fgofondy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29746570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: 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":["client","fondy","golang-library","golang-package","payment-gateway"],"created_at":"2024-11-11T07:54:16.794Z","updated_at":"2026-02-23T15:33:06.176Z","avatar_url":"https://github.com/stremovskyy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gofondy - Fondy Payment Gate Client \n\n[![GoDoc](https://godoc.org/github.com/stremovskyy/gofondy?status.svg)](https://godoc.org/github.com/stremovskyy/gofondy)\n\n**gofondy** is GO client for the Fondy Payment Gate API.  \n\n## Jump to\n\n* [Installation](#Installation)\n* [Usage](#Usage)\n* [API examples](#API-examples)\n* [License](#License)\n* [Contributing](#Contributing)\n* [Authors](#Authors)\n* [Acknowledgments](#Acknowledgments)\n* [TODO](#TODO)\n\n## Installation\n\n```bash\ngo get github.com/stremovskyy/gofondy\n```\n\n## Usage\n\n### Create client\ncreate a new Fondy client with default options\n\n```go\nfondyGateway := gofondy.New(models.DefaultOptions())\n```\n\n### Using a merchant account\nMerchant account is a structure that contains all the necessary information for the client to work with the Fondy API.\n\n```go\nmerchAccount := \u0026models.MerchantAccount{\n    MerchantID:       examples.TechMerchantId,\n    MerchantKey:      examples.TechMerchantKey,\n    MerchantString:   \"Test Merchant\",\n    MerchantDesignID: examples.DesignId,\n    IsTechnical:      true,\n}\n```\n\n## API examples\n### Card verification\n\n```go\nverificationLink, err := fondyGateway.VerificationLink(merchAccount, uuid.New(), nil, \"test\", consts.CurrencyCodeUAH)\nif err != nil {\n    log.Fatal(err)\n}\n\nfmt.Printf(\"\\nVerification link: %s\\n\", verificationLink.String())\n```\n\n### Payment Hold\n\n```go\ninvoiceId := uuid.New()\n\nholdAmount := float64(3)\n\npaymentByToken, err := fondyGateway.Hold(merchAccount, \u0026invoiceId, \u0026holdAmount, examples.CardToken)\nif err != nil {\n    log.Fatal(err)\n}\n\nif *paymentByToken.ResponseStatus == consts.FondyResponseStatusSuccess {\n    fmt.Printf(\"Order (%s) status: %s\\n\", paymentByToken.OrderID, *paymentByToken.OrderStatus)\n} else {\n    fmt.Printf(\"Error: %s\\n\", *paymentByToken.ErrorMessage)\n}\n```\n\n### Payment Capture\n\n```go\ninvoiceId := uuid.MustParse(\"767f44ef-2997-4623-961f-9ee081ef730f\")\n\ncaptureAmount := float64(3)\n\ncapturePayment, err := fondyGateway.Capture(merchAccount, \u0026invoiceId, \u0026captureAmount)\nif err != nil {\n    log.Fatal(err)\n}\n\nif *capturePayment.ResponseStatus == consts.FondyResponseStatusSuccess {\n    fmt.Printf(\"Order (%s) Capture Status: %s\\n\", capturePayment.OrderID.String(), *capturePayment.CaptureStatus)\n} else {\n    fmt.Printf(\"Error: %s\\n\", *capturePayment.ErrorMessage)\n}\n```\n\n### Payment Refund\n\n```go\n\trefundPayment, err := fondyGateway.Refund(merchAccount, \u0026invoiceId, \u0026captureAmount)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tif *refundPayment.ResponseStatus == consts.FondyResponseStatusSuccess {\n\t\tfmt.Printf(\"Order (%s) Reversed: %s\\n\", refundPayment.OrderID.String(), *refundPayment.ReversalAmount)\n\t} else {\n\t\tfmt.Printf(\"Error: %s\\n\", *refundPayment.ErrorMessage)\n\t}\n```\n\n### Payment Status\n\n```go\n\tstatus, err := fondyGateway.Status(merchAccount, \u0026invoiceId)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tif *status.ResponseStatus == consts.FondyResponseStatusSuccess {\n\t\tfmt.Printf(\"Order status: %s\\n\", *status.OrderStatus)\n\t} else {\n\t\tfmt.Printf(\"Error: %s\\n\", *status.ErrorMessage)\n\t}\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n- [Fondy API Documentation](https://docs.fondy.eu/en/)\n- [GoDoc](https://godoc.org/github.com/stremovskyy/gofondy)\n\n## Author\n\n* **Anton Stremovskyy** - *Initial work* - [stremovskyy](https://github.com/stremovskyy)\n\n### Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\nPlease make sure to update tests as appropriate.\n\n## TODO\n- [ ] Add tests\n- [ ] Add more examples\n- [ ] Add more API methods\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstremovskyy%2Fgofondy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstremovskyy%2Fgofondy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstremovskyy%2Fgofondy/lists"}