You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
371 B

function pay(hash) {
wx.requestPayment({
'appId': hash.appId,
'timeStamp': hash.timeStamp,
'nonceStr': hash.nonceStr,
'package': hash.package,
'signType': hash.signType,
'paySign': hash.signature,
'success': function(res){
},
'fail': function(res){
}
})
}
module.exports = {
pay (hash) {
return pay(hash)
}
}