微信支付开发文档地址:https://pay.weixin.qq.com/wiki/doc/api/index.html
以
小程序支付
为例
调起支付需要5个必要参数
示例代码:
wx.requestPayment(
{
'timeStamp': '',
'nonceStr': '',
'package': '',
'signType': 'MD5',
'paySign': '',
'success':function(res){},
'fail':function(res){},
'complete':function(res){}
})
微信小程序Java后台,小程序前台完整代码:
https://blog.youkuaiyun.com/Chief_fly/article/details/86609147