{"id":17355458,"url":"https://github.com/herman-hang/qqpay","last_synced_at":"2025-10-05T11:51:33.370Z","repository":{"id":57084024,"uuid":"373408065","full_name":"herman-hang/qqpay","owner":"herman-hang","description":"一个用PHP实现的QQ钱包支付SDK","archived":false,"fork":false,"pushed_at":"2021-07-19T09:08:48.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T18:30:20.576Z","etag":null,"topics":["pay","php","qqpay"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/herman-hang.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}},"created_at":"2021-06-03T06:44:49.000Z","updated_at":"2023-07-08T03:52:32.000Z","dependencies_parsed_at":"2022-08-24T14:59:09.756Z","dependency_job_id":null,"html_url":"https://github.com/herman-hang/qqpay","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/herman-hang%2Fqqpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herman-hang%2Fqqpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herman-hang%2Fqqpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herman-hang%2Fqqpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/herman-hang","download_url":"https://codeload.github.com/herman-hang/qqpay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858884,"owners_count":20684062,"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":["pay","php","qqpay"],"created_at":"2024-10-15T17:43:23.703Z","updated_at":"2025-10-05T11:51:28.332Z","avatar_url":"https://github.com/herman-hang.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 安装\r\n```php\r\ncomposer require xiaohang/qqpay\r\n```\r\n## 代码演示\r\n\r\n```php\r\n$qqArr = [\r\n    \"mch_id\"     =\u003e $qqPayInfo['qqpay_mchid'],//商户号\r\n    \"notify_url\" =\u003e $request-\u003edomain().url(\"Palymat/test\"),//异步通知回调地址\r\n    \"key\"        =\u003e $qqPayInfo['qqpay_key'],//商户key\r\n];\r\n$param = [\r\n    \"out_trade_no\"  =\u003e  trade_no(),// 订单号         \r\n    \"trade_type\"    =\u003e  \"NATIVE\",// 固定值          \r\n    \"total_fee\"     =\u003e  $info['moneys'],// 单位为分            \r\n    \"body\"          =\u003e  $info['title'],//订单标题     \r\n];\r\n//实例化\r\n$qq      = new \\qqpay\\QQPay($qqArr);\r\n//下单操作\r\n$unified = $qq-\u003eunifiedOrder($param);\r\nif($unified[\"return_code\"] == \"SUCCESS\" \u0026\u0026  $unified[\"result_code\"] == \"SUCCESS\")\r\n{\r\n  //订单逻辑实现\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherman-hang%2Fqqpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherman-hang%2Fqqpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherman-hang%2Fqqpay/lists"}