parent
2a69f73f54
commit
09d3c4a8bf
2 changed files with 21 additions and 1 deletions
@ -0,0 +1,19 @@ |
||||
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) |
||||
} |
||||
} |
Loading…
Reference in new issue