1.0.0 • Published 4 years ago

egg-ts-pay v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

egg-ts-pay

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

Install

$ npm i egg-ts-pay --save

Usage

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

Configuration

// {app_root}/config/config.default.js
exports.tsPay = {
};

egg-ts-pay的拓展功能

  • wxPay 微信支付, 查看更多API
  • alipay 支付宝支付, 查看更多API
  • bodyParser 参数解析
  • xml2js xml转换
  • aliSignVerify 支付宝签名校验
  • wxSignVerify 微信签名校验
  • createOrderNum 创建唯一订单号,基于redis,支持高并发

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

Example

Questions & Suggestions

Please open an issue here.

License

MIT