{"id":34776477,"url":"https://github.com/asbamboo/openpay-wxpay","last_synced_at":"2026-05-25T06:01:54.246Z","repository":{"id":43870033,"uuid":"154266901","full_name":"asbamboo/openpay-wxpay","owner":"asbamboo","description":"asbamboo/openpay 中的支付渠道模块-对接的是微信支付","archived":false,"fork":false,"pushed_at":"2022-02-15T07:39:23.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T15:36:58.495Z","etag":null,"topics":["asbamboo","openpay","wxpay"],"latest_commit_sha":null,"homepage":"http://www.asbamboo.com","language":"PHP","has_issues":false,"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/asbamboo.png","metadata":{"files":{"readme":"README.rst","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":"2018-10-23T05:20:27.000Z","updated_at":"2022-02-15T07:24:51.000Z","dependencies_parsed_at":"2022-09-25T00:27:15.086Z","dependency_job_id":null,"html_url":"https://github.com/asbamboo/openpay-wxpay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asbamboo/openpay-wxpay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asbamboo%2Fopenpay-wxpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asbamboo%2Fopenpay-wxpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asbamboo%2Fopenpay-wxpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asbamboo%2Fopenpay-wxpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asbamboo","download_url":"https://codeload.github.com/asbamboo/openpay-wxpay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asbamboo%2Fopenpay-wxpay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33462501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T02:24:28.008Z","status":"ssl_error","status_checked_at":"2026-05-25T02:23:23.339Z","response_time":57,"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":["asbamboo","openpay","wxpay"],"created_at":"2025-12-25T08:31:50.750Z","updated_at":"2026-05-25T06:01:54.241Z","avatar_url":"https://github.com/asbamboo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"asbamboo/openpay-wxpay\n===========================\n\nasbamboo/openpay-wxpay 是 `asbamboo/openpay`_ 的一个支付渠道扩展模块。`查看文档`_\n\n安装\n---------------------\n\n请根据 `asbamboo/openpay`_ 的说明: https://github.com/asbamboo/openpay/blob/master/docs/install.rst 将asbamboo/openpay-wxpay 应用到你的项目上。\n\n参数配置\n------------------------\n\nasbamboo\\\\openpayWxpay\\\\Env 类中声明的几个常量，是使用 asbamboo//openpay-wxpay 必须配置的环境变量。通过asbamboo\\\\helper\\\\env\\\\Env::set(\"变量名\", \"变量值\") 方法进行设置。\n\n:OPENPAY_WXPAY_GATEWAY_URI: 请求微信接口的网关url，（各个接口公共的那部分url）。\n:OPENPAY_WXPAY_SIGN_KEY: 生成微信请求参数sign，使用的key（https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=4_3）。\n:OPENPAY_WXPAY_APP_ID: 微信分配的公众账号ID（接口中的appid参数）。\n:OPENPAY_WXPAY_MCH_ID: 微信支付分配的商户号（接口中的mch_id参数）。\n\n\n需要在 config/openpay-config.php 中配置环境变量：\n\n::\n\n    \u003c?php\n    use asbamboo\\helper\\env\\Env AS EnvHelper;\n    use asbamboo\\openpayWxpay\\Env AS WxpayEnv;\n    /***************************************************************************************************\n     * 环境参数配置\n     ***************************************************************************************************/\n    // 微信网关\n    EnvHelper::set(WxpayEnv::WXPAY_GATEWAY_URI, 'https://api.mch.weixin.qq.com/');\n    // 微信加密使用的key值\n    EnvHelper::set(WxpayEnv::WXPAY_SIGN_KEY, 'xxxxxxxxxxxxxxxxxxxxxxxxxx');\n    // 微信 appid\n    EnvHelper::set(WxpayEnv::WXPAY_APP_ID, 'wxxxxxxxxxxxxxx');\n    // 微信商户号\n    EnvHelper::set(WxpayEnv::WXPAY_MCH_ID, '00000000000000');\n        /***************************************************************************************************/\n\n使用asbamboo/openpay-wxpay模块后，交易支付（trade.pay）接口将支持如下渠道（channel字段）\n-------------------------------------------------------------------------------------------------------\n\n:WXPAY_APP: 微信APP支付(手机app支付的服务端参数生成接口)\n:WXPAY_H5: 微信H5支付\n:WXPAY_QRCD: 微信扫码支付（买家手机扫商户）\n\n\n.. _asbamboo/openpay: http://www.github.com/asbamboo/openpay\n.. _查看文档: docs/index.rst","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasbamboo%2Fopenpay-wxpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasbamboo%2Fopenpay-wxpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasbamboo%2Fopenpay-wxpay/lists"}