{"id":19592105,"url":"https://github.com/catalyst/moodle-paygw_wechat","last_synced_at":"2025-06-12T13:07:11.589Z","repository":{"id":66891602,"uuid":"366210360","full_name":"catalyst/moodle-paygw_wechat","owner":"catalyst","description":"Wechat payment gateway for Moodle","archived":false,"fork":false,"pushed_at":"2021-05-21T03:20:44.000Z","size":86,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-04-27T14:39:07.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://moodle.org/plugins/paygw_wechat","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/catalyst.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":"2021-05-11T00:25:57.000Z","updated_at":"2025-02-23T08:09:09.000Z","dependencies_parsed_at":"2023-05-28T07:45:19.377Z","dependency_job_id":null,"html_url":"https://github.com/catalyst/moodle-paygw_wechat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/catalyst/moodle-paygw_wechat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-paygw_wechat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-paygw_wechat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-paygw_wechat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-paygw_wechat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catalyst","download_url":"https://codeload.github.com/catalyst/moodle-paygw_wechat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-paygw_wechat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259470941,"owners_count":22862997,"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":[],"created_at":"2024-11-11T08:33:12.337Z","updated_at":"2025-06-12T13:07:11.527Z","avatar_url":"https://github.com/catalyst.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeChat  #\n\nThis plugin was developed thanks to funding from Xi’an Jiaotong-Liverpool University (https://www.xjtlu.edu.cn)\n\nThe plugin allows a site to connect to Wechat China using the PHP SDK available here:  \nhttps://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1\n  \n### Note: You must download the SDK and add it to the code prior to installing this plugin. ###\n\n## Pre-install ##\nThe WeChat SDK is not distributed by WeChat with a valid open source license - unfortunately this means that we cannot \npre-package the SDK within the Moodle plugin as this violates the GPL license so you must download it manually prior to installing this plugin.\n\nThe PHP SDK is available here:\nhttps://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1\nThis plugin has been tested with wechat php_sdk_v3.0.10\n\nCopy the 5 files from the \"lib\" folder in the zip supplied above into the .extlib/wechatsdk folder in your plugin.\nyou should have the following files in the following location:\n* /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Api.php\n* /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Config.Interface.php\n* /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Data.php\n* /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Exception.php\n* /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Notify.php\n\nThen install the plugin into your site like normal.\n\n## Configure Moodle\n* Go to site administration / Plugins / Manage payment gateways and enable the WeChat payment gateway.\n* Go to site administration / Payments / Payment accounts\n* Click the button 'Create payment account' then enter an account name for identifying it when setting up enrolment on payment, then save changes.\n* On the Payment accounts page, click the payment gateway link to configure WeChat.\n* In the configuration page, enter your appid/merchant id/key and secret from the application you have created in your WeChat account.\n      \n## Add Enrolment on payment.\n* Go to Go to Site administration \u003e Plugins \u003e Enrolments \u003e Manage enrol plugins and click the eye icon opposite Enrolment on payment.\n* Click the settings link, configure as required then click the 'Save changes' button.\n* Go to the course you wish to enable payment for, and add the 'Enrolment on payment' enrolment method to the course.\n* Select a payment account, amend the enrolment fee as necessary then click the button 'Add method'.\n\nsee also:  \n[moodledocs: Payment Gateways](https://docs.moodle.org/en/Payment_gateways)  \n[moodledocs: Enrolment on Payment](https://docs.moodle.org/en/Enrolment_on_payment)\n\n## License ##\n\nCopyright 2021 Catalyst IT\n\nThis program is free software: you can redistribute it and/or modify it under\nthe terms of the GNU General Public License as published by the Free Software\nFoundation, either version 3 of the License, or (at your option) any later\nversion.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with\nthis program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fmoodle-paygw_wechat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalyst%2Fmoodle-paygw_wechat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fmoodle-paygw_wechat/lists"}