我正在尝试2 2checkout沙箱帐户,但是如果我提交了表单,它会显示错误代码if 102,但是如果我将action属性值更改为https://www.2checkout.com/checkout/purchase,它就会工作得很好。
我要检查结账。
以下是我的表格
<form action="https://sandbox.2checkout.com/checkout/purchase" method="post">
<input name="sid" type="hidden" value="32480392840983"><!--901260471-->
<input name="mode" type="hidden" value="2CO">
<input type='hidden' name='currency_code' value='INR'>
<input name="return_url" type="hidden" value="{$sitepath}{$packagereturn}">
<input name="li_0_name" type="hidden" value="{$adtype}">
<input name="li_0_price" type="hidden" value="{$pkamount}">
<input name="custom_currency_code" type="hidden" value="INR">
<input name="custom_adtype" type="hidden" value="{$adtype}">
<input name="custom_noofads" type="hidden" value="{$noofads}">
<input name="custom_userid" type="hidden" value="{$pkuserid}">
<input name="custom_username" type="hidden" value="{$userdetails[0].user_name}">
<input name="custom_city" type="hidden" value="{$userdetails[0].user_city}">
<input name="custom_state" type="hidden" value="{$userdetails[0].user_region}">
<input name="custom_zip" type="hidden" value="{$userdetails[0].user_postcode}">
<input name="custom_email" type="hidden" value="{$userdetails[0].user_email}">
<input name="custom_phone" type="hidden" value="{$userdetails[0].user_phone}">
<input name="custom_date" type="hidden" value="{$custom_date}">
<input name="custom_validmonths" type="hidden" value="{$validmonths}">
{*user details *}
<input name="card_holder_name" type="hidden" value="{$userdetails[0].user_name}">
<input name="street_address" type="hidden" value="{$userdetails[0].user_address}">
<input name="city" type="hidden" value="{$userdetails[0].user_city}">
<input name="state" type="hidden" value="{$userdetails[0].user_region}">
<input name="zip" type="hidden" value="{$userdetails[0].user_postcode}">
<input name="email" type="hidden" value="{$userdetails[0].user_email}">
<input name="phone" type="hidden" value="{$userdetails[0].user_phone}">
<input type="image" id="payCheckout" name="submit_x" src="images/Buy-Now-button.jpg" width="145" height="69" border="0" />
</form>发布于 2016-03-21 19:00:45
sid参数需要一个9位的帐户ID。您已经注释掉了沙箱sid,并且输入了一个更长的非帐户号作为值。尝试使用"901260471“作为sid的值,并再次进行测试。
https://stackoverflow.com/questions/35936529
复制相似问题