我正在将paymentwall添加到我的网站中,但我一直收到他们的md5签名的错误,我尝试的所有内容都显示“错误:签名不匹配”。如果有人能帮上忙,我真的很想得到一些帮助。谢谢
$secret = "xxxxxxxx";
$userId = isset($_GET['uid']) ? $_GET['uid'] : null;
$transactionId = isset($_GET['ref']) ? $_GET['ref'] : null;
$points = isset($_GET['currency']) ? $_GET['currency'] : null;
$sig = isset($_GET['sig']) ? $_GET['sig'] : null;
$action = isset($_GET['type']) ? $_GET['type'] : null;
$ipuser = isset($_GET['userIp']) ? $_GET['userIp'] : "0.0.0.0";
// validate signature
if (md5($userId.$points.$action.$transactionId) != $sig){
echo "ERROR: Signature doesn't match";
return;
}在idk之后,我在paymentwall上得到了这个it信息,签名基本字符串
uid=1currency=11type=0ref=rrrrrrrr2621097ba7ef27f468946f05799688a4Signature =MD5(签名基串)
efdd4e86decba4537212eaebac993b7e发布于 2016-09-24 00:51:02
我现在让MD5工作了,只是想让你知道。我不得不使用paymentwall api,它可以为我处理所有的事情。)
https://stackoverflow.com/questions/39279148
复制相似问题