2检查沙箱错误

时间:2016-03-11 09:32:44

标签: php 2checkout

我正在尝试使用2checkout沙箱帐户,但如果我提交表单,则会显示错误错误代码:PE102,但如果我将操作属性值更改为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>

1 个答案:

答案 0 :(得分:2)

sid参数需要9位数的帐号。您已注释掉沙箱sid,并将更长的非帐号作为值输入。尝试使用&#34; 901260471&#34;作为sid的值再次测试。