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.
18 lines
383 B
18 lines
383 B
function pay(hash, successCallback) { |
|
wx.requestPayment({ |
|
'appId': hash.appId, |
|
'timeStamp': hash.timeStamp, |
|
'nonceStr': hash.nonceStr, |
|
'package': hash.package, |
|
'signType': hash.signType, |
|
'paySign': hash.signature, |
|
'success': successCallback, |
|
'fail': function(res){ |
|
} |
|
}) |
|
} |
|
module.exports = { |
|
pay (hash) { |
|
return pay(hash) |
|
} |
|
}
|
|
|