paySignData 是签名的数据 上面参数为 appid\n时间戳\n随机字符串\n下单的时候返回的代码
wx.requestPayment(OBJECT)
$paySign=base64_encode(Rsa::sign($paySignData,$merchantPrivateKeyFilePath));//
Rsa::sign //sdk自带的
base64_encode//这是php本身的 试过了不用base64_encode
请问这样是参数不敌还是密钥不对?好像还有另外两个是公钥不是私钥
解决了吗,签名正确了吗?
你调起支付参数是这些?
wx.requestPayment
(
{
"timeStamp": "1414561699",
"nonceStr": "5K8264ILTKCH16CQ2502SI8ZNMTM67VS",
"package": "prepay_id=wx201410272009395522657a690389285100",
"signType": "RSA",
"paySign": "oR9d8PuhnIc+YZ8cBHFCwfgpaK9gd7vaRvkYD7rthRAZ\/X+QBhcCYL21N7cHCTUxbQ+EAt6Uy+lwSN22f5YZvI45MLko8Pfso0jm46v5hqcVwrk6uddkGuT+Cdvu4WBqDzaDjnNa5UK3GfE1Wfl2gHxIIY5lLdUgWFts17D4WuolLLkiFZV+JSHMvH7eaLdT9N5GBovBwu5yYKUR7skR8Fu+LozcSqQixnlEZUfyE55feLOQTUYzLmR9pNtPbPsu6WVhbNHMS3Ss2+AehHvz+n64GDmXxbX++IOBvm2olHu3PsOUGRwhudhVf7UcGcunXt8cqNjKNqZLhLw4jq\/xDg==",
"success":function(res){},
"fail":function(res){},
"complete":function(res){}
}
)