UNPKG

@jashine/egg-minipay

Version:

minipay inclued wechat alipay

30 lines (27 loc) 927 B
'use strict'; /** * egg-mini-pay default config * @member Config#miniPay * @property {String} SOME_KEY - some description */ const path = require('path'); exports.miniPay = { wechat:{ appid: '', //公众号ID mchid: '', //微信商户号 partnerKey: '', //微信支付安全密钥 pfx: '', //证书文件路径 notify_url: '', //支付回调网址 spbill_create_ip: '', //IP地址 notify_url: '', payModel: '' //连接模式 }, 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' } };