egg-wechat

1.0.6 • Public • Published

egg-wechat

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-wechat --save

Usage

// {app_root}/config/plugin.js
exports.wechat = {
  enable: true,
  package: 'egg-wechat',
};

Configuration

// {app_root}/config/config.default.js
exports.wechat = {
  appid: '',
  appsecret: '',
  token: '',
  encodingAESKey: '',
  pay: {
    partnerKey: '',
    mchId: '',
    notifyUrl: '',
    pfx: ''
  },
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-wechat

Weekly Downloads

1

Version

1.0.6

License

MIT

Last publish

Collaborators

  • jkshare