{"id":20737439,"url":"https://github.com/gatecloud/go_epayments","last_synced_at":"2026-04-22T01:05:30.719Z","repository":{"id":103094370,"uuid":"238317232","full_name":"gatecloud/go_epayments","owner":"gatecloud","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-04T22:11:07.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T12:52:07.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gatecloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-02-04T22:08:44.000Z","updated_at":"2020-02-04T22:11:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b8b64fd-32b1-485b-b511-322b0cb4adda","html_url":"https://github.com/gatecloud/go_epayments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gatecloud/go_epayments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatecloud%2Fgo_epayments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatecloud%2Fgo_epayments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatecloud%2Fgo_epayments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatecloud%2Fgo_epayments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gatecloud","download_url":"https://codeload.github.com/gatecloud/go_epayments/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatecloud%2Fgo_epayments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32116514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2024-11-17T06:14:30.776Z","updated_at":"2026-04-22T01:05:30.704Z","avatar_url":"https://github.com/gatecloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# epayments\nOpen source Golang SDK for ePayments payment interface (ePayments聚合支付接口)\n\nThis SDK is developed based on [ePayment API document](https://www.kiwifast.com/doc/index.html)  \n\n\n\n### Checklist\n\n:black_square_button: 2.1 聚合支付接口  \n:black_square_button: 2.2 页面跳转同步通知接口  \n:white_check_mark: 2.3 支付结果异步通知  \n:white_check_mark: 2.3+ 支付结果异步通知验证接口  \n:white_check_mark: 2.4 支付订单交易查询接口  \n:white_check_mark: 2.5 申请退款接口  \n:white_check_mark: 2.6 错误异常响应返回参数  \n:white_check_mark: 2.7 退款查询接口  \n:white_check_mark: 2.8 交易关闭接口  \n:black_square_button: 2.9 刷卡支付接口  \n:white_check_mark: 2.10 汇率查询接口  \n:black_square_button: 2.11 聚合二维码支付接口  \n:white_check_mark: 2.12 小程序支付接口  \n:black_square_button: 2.13 聚合APP支付接口  \n:black_square_button: 2.14 自定义二维码支付接口  \n\n\n### Install\n\n```\n$ go get github.com/gatecloud/go_epayments\n```\n\n\n### Notice\n\n1. Your merchant ID binds with a specific currency  \n2. Some fields are not displayed in the API document. For example, `rate` in `AsyncResult`, `TradeQueryResponse` and `RefundQueryResponse`, please refer to the specific  \n\n\n\n### Sample\n\n#### 2.4  \n\n```\nconfig := epayments.Config{\n    SignKey:  \"YOUR_SIGN_KEY\",\n    Endpoint: \"https://www.kiwifast.com/api/v1/info/smartpay\",\n}\n\ntradeQuery := \u0026epayments.TradeQuery{\n    MerchantID:  \"YOUR_MERCHANT_ID\",\n    IncrementID: \"1101\",\n    NonceStr:    \"YptpkflFlO\",\n    Service:     \"create_trade_query\",\n}\n\nresponse, statusCode, err := tradeQuery.Do(config)\nif err != nil {\n    fmt.Printf(\"result:%v\\nhttp code:%d\\nmessage:%s\\n\",response, statusCode, err)\n}\n\n\n``` \n\n\n#### 2.5 \n\n\n```\nconfig := epayments.Config{\n    SignKey:  \"YOUR_SIGN_KEY\",\n    Endpoint: \"https://www.kiwifast.com/api/v1/info/smartpay\",\n}\n\nrefund := \u0026epayments.Refund{\n    MerchantID:   \"YOUR_MERCHANT_ID\",\n    IncrementID:  \"1101\",\n    RefundFee:    100.00,\n    RefundReason: \"\",\n    Currency:     \"CNY\",\n    NonceStr:     \"\"YptpkflFlO\",\",\n    Service:      \"create_trade_refund\",\n}\n\nresponse, statusCode, err := refund.Do(config)\nif err != nil {\n    fmt.Printf(\"result:%v\\nhttp code:%d\\nmessage:%s\\n\",response, statusCode, err)\n}\n\n```\n\n\n#### 2.7\n\n```\nconfig := epayments.Config{\n    SignKey:  \"YOUR_SIGN_KEY\",\n    Endpoint: \"https://www.kiwifast.com/api/v1/info/smartpay\",\n}\n\nrefundQuery := \u0026epayments.RefundQuery{\n    MerchantID:    \"YOUR_MERCHANT_ID\",\n    IncrementID:   \"1101\",\n    RefundTradeNo: \"R201655846\",\n    NonceStr:      \"YptpkflFlO\",\n    Service:       \"create_trade_refund_query\",\n}\n\nresponse, statusCode, err := tradeQuery.Do(config)\nif err != nil {\n    fmt.Printf(\"result:%v\\nhttp code:%d\\nmessage:%s\\n\",response, statusCode, err)\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatecloud%2Fgo_epayments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgatecloud%2Fgo_epayments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatecloud%2Fgo_epayments/lists"}