APP正在开发中...
收藏
本篇文章介绍个人小程序接入支付解决方案。 现状 现在如果产品要接入支付,支付宝和微信都规定必须公司才能申请,对个人而言就没办法了。 注册和维护一个公司的成本很高,还涉及到财务会计、纳税等,最后如果不需要了注销公司也会很麻烦。 这对于刚起步的产
在 app.json 中添加:
"navigateToMiniProgramAppIdList": [ "wx6eeed4ca124a1abf" ]
wx.navigateToMiniProgram({ appId: 'wx6eeed4ca124a1abf', path: 'pages/index/index', extraData: { 'aid': '1', #aid 'name': 'XorPay充值', 'pay_type': 'jsapi', 'price': '0.02', 'order_id': 'm-5', 'notify_url': 'https://abc.com/notify', 'sign': md5.hexMD5('XorPay充值' + 'jsapi' + '0.02' + 'm-5' + 'https://abc.com/notify' + 'app secret'), }, envVersion: 'develop', fail(res) { wx.showToast({ title: res.errMsg, icon: 'none', }); }, success(res) { wx.showToast({ title: 'ok', icon: 'none', }); }, });
extraData: { status: 'success' }
extraData: { status: 'cancel' }
2021-06-04
2019-01-10
2019-02-17
2021-09-12
2021-09-30