{"id":26149445,"url":"https://github.com/gofarsi/paygap","last_synced_at":"2025-04-09T18:16:45.343Z","repository":{"id":65176976,"uuid":"536539683","full_name":"GoFarsi/paygap","owner":"GoFarsi","description":"Payment gateway providers SDK Go for zarinpal, idpay, pay.ir, and other gateway providers","archived":false,"fork":false,"pushed_at":"2024-12-10T12:34:25.000Z","size":235,"stargazers_count":52,"open_issues_count":7,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T18:16:40.439Z","etag":null,"topics":["api-gateway","gateway","go","payment"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoFarsi.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-09-14T11:09:19.000Z","updated_at":"2025-02-23T07:28:42.000Z","dependencies_parsed_at":"2024-04-11T15:55:28.027Z","dependency_job_id":"c1e274ed-7d8c-4681-bfec-8297061b5d83","html_url":"https://github.com/GoFarsi/paygap","commit_stats":{"total_commits":100,"total_committers":10,"mean_commits":10.0,"dds":0.47,"last_synced_commit":"db4b096136812e4d36d3629577f8ebf32c5d8579"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoFarsi%2Fpaygap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoFarsi%2Fpaygap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoFarsi%2Fpaygap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoFarsi%2Fpaygap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoFarsi","download_url":"https://codeload.github.com/GoFarsi/paygap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085323,"owners_count":21045139,"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-gateway","gateway","go","payment"],"created_at":"2025-03-11T05:31:56.939Z","updated_at":"2025-04-09T18:16:45.324Z","avatar_url":"https://github.com/GoFarsi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PayGap [![Go Reference](https://pkg.go.dev/badge/github.com/GoFarsi/paygap.svg)](https://pkg.go.dev/github.com/GoFarsi/paygap)\nPayment gateway providers SDK Go for zarinpal, idpay, pay.ir, and other gateway providers.\n\n![paygap](assets/banner.jpg)\n\n## Install For ![Go Version](https://img.shields.io/badge/go%20version-%3E=1.19-61CFDD.svg?style=flat-square)\n\n```shell\ngo get -u github.com/GoFarsi/paygap\n```\n\n## Usage\n\nexample for zarinpal provider ([Other examples](https://github.com/GoFarsi/paygap/tree/main/_example))\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/GoFarsi/paygap/client\"\n\t\"github.com/GoFarsi/paygap/providers/zarinpal\"\n)\n\nfunc main() {\n\tc := client.New()\n\tz, err := zarinpal.New(c, \"YOUR_MERCHANT_ID\", false)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tresp, err := z.RequestPayment(context.Background(), 1000, \"YOUR_CALL_BACK\", \"YOUR_CURRENCY\", \"description\", nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t\n\tfmt.Println(resp)\n}\n```\n\n## Contributing\n\n1. fork project in your GitHub account.\n2. create new branch for new changes.\n3. after change code, send Pull Request.\n\n## TODO\n\n- [x] zarinpal\n- [x] idpay\n- [x] pay.ir\n- [x] payping\n- [x] vandar.io\n- [ ] rayanpay\n- [ ] nextpay\n- [x] mellat\n- [ ] parsian\n- [ ] pasargad\n- [x] sadad\n- [x] [zibal](https://zibal.ir)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgofarsi%2Fpaygap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgofarsi%2Fpaygap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgofarsi%2Fpaygap/lists"}