{"id":21273475,"url":"https://github.com/ledccn/wechat-custom-declare","last_synced_at":"2026-01-27T12:36:21.328Z","repository":{"id":263525545,"uuid":"890692261","full_name":"ledccn/wechat-custom-declare","owner":"ledccn","description":"微信支付清关报关（V2）","archived":false,"fork":false,"pushed_at":"2024-11-19T08:09:42.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T01:34:07.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ledccn.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,"zenodo":null}},"created_at":"2024-11-19T02:31:14.000Z","updated_at":"2024-11-19T05:30:53.000Z","dependencies_parsed_at":"2025-04-14T11:37:11.986Z","dependency_job_id":"1370c141-39d0-4511-ae48-b85c2cdcbc6f","html_url":"https://github.com/ledccn/wechat-custom-declare","commit_stats":null,"previous_names":["ledccn/wechat-custom-declare"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/wechat-custom-declare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwechat-custom-declare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwechat-custom-declare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwechat-custom-declare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwechat-custom-declare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/wechat-custom-declare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwechat-custom-declare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28813215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":[],"created_at":"2024-11-21T09:14:55.528Z","updated_at":"2026-01-27T12:36:21.297Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 微信支付清关报关（V2）\n\n## 安装\n\n`composer require ledc/wechat-custom-declare`\n\n## 使用说明\n\n开箱即用，只需要传入一个配置，初始化一个实例即可：\n\n```php\nuse Ledc\\WechatPayProfitSharing\\Config;\nuse Ledc\\WechatCustomDeclare\\WechatCustom;\n\n$config = [\n    'mch_id' =\u003e 1360649000,\n    'appid' =\u003e 1360649000,\n\n    // 商户证书\n    'private_key' =\u003e __DIR__ . '/certs/apiclient_key.pem',\n    'certificate' =\u003e __DIR__ . '/certs/apiclient_cert.pem',\n\n     // v3 API 秘钥\n    'secret_key' =\u003e '43A03299A3C3FED3D8CE7B820Fxxxxx',\n\n    // v2 API 秘钥\n    'v2_secret_key' =\u003e '26db3e15cfedb44abfbb5fe94fxxxxx',\n\n    // 平台证书：微信支付 APIv3 平台证书，需要使用工具下载\n    // 下载工具：https://github.com/wechatpay-apiv3/CertificateDownloader\n    'platform_certs' =\u003e [\n        // 请使用绝对路径\n        // '/path/to/wechatpay/cert.pem',\n    ],\n];\n\n$wechatCustom = new WechatCustom(new Config($config));\n```\n\n在创建实例后，所有的方法都可以有IDE自动补全；例如：\n\n```php\n// 订单附加信息提交接口\n$wechatCustom-\u003eorder();\n// 订单附加信息查询接口\n$wechatCustom-\u003equery();\n// 订单附加信息重推接口\n$wechatCustom-\u003eredeclare();\n```\n\n## 官方文档\n\n- https://pay.weixin.qq.com/doc/v2/merchant/4011985104\n\n## 捐赠\n\n![reward](reward.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fwechat-custom-declare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fwechat-custom-declare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fwechat-custom-declare/lists"}