PHP支付接口签名生成数据
$pay\_memberid,
"pay\_orderid" => $pay\_orderid,
"pay\_amount" => $pay\_amount,
"pay\_applydate" => $pay\_applydate,
"pay\_bankcode" => $pay\_bankcode,
"pay\_notifyurl" => $pay\_notifyurl,
"pay\_callbackurl" => $pay\_callbackurl,
);
ksort($native);
$md5str = "";
foreach ($native as $key => $val) {
$md5str = $md5str . $key . "=" . $val . "&";
}
//作者主页 [https://www.bz80.com](https://www.bz80.com)
echo '签名串:';echo($md5str . "key=" . $Md5key);
$sign = strtoupper(md5($md5str . "key=" . $Md5key));
$native\["pay\_md5sign"\] = $sign;
echo '
得到签名后,转换为大写字母。
';
echo $sign;
?>