egg-old-pay
Version:
sandan store pay inclued wechat alipay vista
29 lines (26 loc) • 751 B
JavaScript
;
/**
* egg-sandan-pay default config
* @member Config#sandanPay
* @property {String} SOME_KEY - some description
*/
const path = require('path');
exports.sandanPay = {
wechat:{
appid: '公众号ID',
mchid: '微信商户号',
partnerKey: '微信支付安全密钥',
pfx: '证书文件路径',
notify_url: '支付回调网址',
spbill_create_ip: 'IP地址',
notify_url: ''
},
alipay:{
appId: '2016080300159077',
notifyUrl: 'http://www.xxx.com/callback/alipay',
rsaPrivate: path.resolve('./pem/sandbox_private.pem'),
rsaPublic: path.resolve('./pem/sandbox_ali_public.pem'),
sandbox: true,
signType: 'RSA'
}
};