1.0.0 • Published 8 years ago

egg-alipay-f2f v1.0.0

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

egg-alipay-f2f

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

Install

$ npm i egg-alipay-f2f --save

Usage

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

Configuration

// {app_root}/config/config.default.js
exports.alipayF2f = {
  appid: 20170123456123456, // 支付宝应用ID
  notify_url: 'http://xxx.com/notify_url', // 回调地址
  gateway_url: "https://openapi.alipay.com/gateway.do", // 支付宝网关地址
  private_key: 'Mxxxx', //开发者应用私钥
  alipay_public_key: 'mN+Pxxxx' // 支付宝公钥
};

Example

Questions & Suggestions

Please open an issue here.

License

MIT