WeChat

Payment gateways ::: paygw_wechat
Maintained by Dan Marsden, Catalyst IT
WeChat payment gateway for Moodle.
Latest release:
20 sites
20 downloads
9 fans
Current versions available: 1

This plugin was developed with funding from Xi’an Jiaotong-Liverpool University by Catalyst IT 

The plugin allows you to accept payments via WeChat in your Moodle site.

Note: this plugin uses the WeChat SDK which must be downloaded separately before installing this plugin.

The PHP SDK is available here: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1 

Copy the 5 files from the "lib" folder in the zip supplied above into the .extlib/wechatsdk folder in your plugin. you should have the following files in the following location:

  • /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Api.php
  • /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Config.Interface.php
  • /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Data.php
  • /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Exception.php
  • /payment/gateway/wechat/.extlib/wechatsdk/WxPay.Notify.php

Then install the plugin into your site like normal.

For more information see the README file:
https://github.com/catalyst/moodle-paygw_wechat#wechat


Screenshots

Screenshot #0
Screenshot #1

Contributors

Dan Marsden (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Plugins bot
    Wed, 19 May 2021, 8:20 AM
    Approval issue created: CONTRIB-8555
  • ace lee
    Wed, 19 May 2021, 10:30 AM
    Dan Great job! Will try it now. I have been waiting for this for such a long time.
  • Dan Marsden
    Wed, 19 May 2021, 10:49 AM
    Good to hear it will be useful!- the main thanks goes to XJTLU who sponsored this - keep in mind that we haven't rolled this out into production quite yet, so feel free to report any issues you have to the github tracker!
  • Justin Hunt
    Fri, 21 May 2021, 11:34 AM
    Awesome. Good work. This will be popular.
  • ace lee
    Wed, 26 May 2021, 11:04 AM
    Hi Dan, I installed the plugin and finished the setting, but saw this error when testing. I made a screen capture, which you can see it through this link: . It looks like the QR codes fails to load at the last step. Normally, we scan to pay at this step on PC web sites. Please give me some advice, thanks a lot.
  • Dan Marsden
    Wed, 26 May 2021, 11:20 AM
    try hitting the "test.php" file in your browser - /payment/gateways/wechat/test.php - it should display a qr code if your settings are correct. If it doesn't show a QR code it suggests something else is wrong.

    Also - make sure you've got the latest version of the plugin installed - we had some issues with point values in the earlier versions.
  • ace lee
    Wed, 26 May 2021, 4:34 PM
    Thanks!
  • James Beresford-Jones
    Sun, 7 May 2023, 6:00 AM
    Greetings and many thanks for this plugin. I am having some issues finding the files in the PHP SDK. The link provided no longer has downloadable files and I can't find the 5 necessary files to copy in V3. Any help would be much appreciated.
  • Dan Marsden
    Mon, 8 May 2023, 5:34 AM
    @James - looks like we need to convert to using the new SDK - nice to see this time they've attached a GPL compatible license to the files (Apache) so we should be able to distribute the plugin with the udpated sdk. If this is something you're interested in helping to fund feel free to reach out privately - otherwise you could try the Internet archive versions of the wechat docs pages:

    https://web.archive.org/web/20211228160805/https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1
Please login to post comments