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.
20 lines
371 B
20 lines
371 B
8 years ago
|
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)
|
||
|
}
|
||
|
}
|