node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

egg-wechat

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