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