0
我在2checkout.i上有模拟账户需要通过2checkout接受在线支付。因此,我正在用模拟账户测试代码。问题是,在模拟账户中,我得到了成功处理的消息,但是当我使用文档验证相同的瑕疵时,它总是失败。2在模拟账户不支付验证2checkout支付验证
下面是HTML代码,网上付款
<form action='https://www.2checkout.com/checkout/purchase' method='post'>
<input type='hidden' name='sid' value='202351337'>
<input type='hidden' name='quantity' value='1'>
<input type='hidden' name='product_id' value='1'>
<input name='submit' type='submit' value='Buy from 2CO' >
</form>
下面是从的2Checkout官方文档
<?php
print_r($_REQUEST);
$hashSecretWord='james007'; //2Checkout Secret Word
$hashSid=202351337; //2Checkout account number
$hashTotal=100.00; //Sale total to validate against
$hashOrder=1; //2Checkout Order Number
$StringToHash = strtoupper(md5($hashSecretWord . $hashSid . $hashOrder . $hashTotal));
echo "<br/> And StringToHash is $StringToHash <br/>";
if ($StringToHash != $_REQUEST['key'])
{
$result = 'Fail - Hash Mismatch';
}
else
{
$result = 'Success - Hash Matched';
}
echo $result;
采取我总是对消息的验证码失效哈希不匹配
我也尝试将它作为数字,但不工作。任何 – user3819360 2014-09-26 02:37:49