推荐人中继响应或收据链接URL无效

时间:2014-12-16 16:12:52

标签: php authorize.net

在authorize.net SIM方法成功交易后,它没有重定向到我的网站网址。我收到错误消息

  

推荐人中继响应或收据链接网址无效

这是我的交易页面的代码,它提交信息。请让我知道我的错误。

<!-- Create the HTML form containing necessary SIM post values -->
 <form method="post" id="finalform" action="<?php echo $url; ?>" >
  <!--  Additional fields can be added here as outlined in the SIM integration guide  
  at:  http://developer.authorize.net -->
   <input type='hidden' name='x_login'                 value='<?php echo $loginID; ?>' />
   <input type='hidden' name='x_amount'  onkeyup="gethash(this.value);"      value='<?php echo $amount; ?>' /><br/>
   <input type='hidden' name='x_description'           value='<?php echo $description; ?>' />
   <input type='hidden' name='x_invoice_num'           value='<?php echo $invoice; ?>' /><br/>
   <input type='hidden' name='x_fp_sequence'           value='<?php echo $sequence; ?>' />
   <input type='hidden' name='x_fp_timestamp'          value='<?php echo $timeStamp; ?>' />
   <input type='hidden' name='x_fp_hash'  id="fphash"  value='<?php echo $fingerprint; ?>' />
   <input type='hidden' name='x_test_request'          value='<?php echo $testMode; ?>' />
   <input type='hidden' name="x_first_name"            value="<?php echo $_REQUEST['fne'];?>" />
   <input type='hidden' name="x_last_name"             value="<?php echo $_REQUEST['lne'];?>" />
   <input type='hidden' name="x_company"               value="<?php echo $_REQUEST['orgme'];?>" />
   <input type='hidden' name="x_address"               value="<?php echo $_REQUEST['adds'];?>" />
   <input type='hidden' name="x_city"                  value="<?php echo $_REQUEST['cty'];?>" />
   <input type='hidden' name="x_state"                 value="<?php echo $_REQUEST['ste'];?>" />
   <input type='hidden' name="x_zip"                   value="<?php echo $_REQUEST['zip'];?>" />
   <input type='hidden' name="x_cust_id"               value="<?php echo $_REQUEST['cusd'];?>" />
   <input type="hidden" name="x_receipt_link_method"   value="LINK" >
   <input type="hidden" name="x_receipt_link_url"      value="http://www.uthstuph.com/payment-success/" >
   <input type="hidden" name="x_relay_response"        value="TRUE" >
   <input type="hidden" name="x_relay_url"             value="http://www.uthstuph.com/payment-success" >
   <input type="hidden" name="x_phone"                value="<?php echo $_REQUEST['phone'];?>"/>
   <input type="hidden" name="x_email"                value="<?php echo $_REQUEST['email'];?>"/>
   <input type="hidden" name="x_billing_zip" value="<?php echo $_REQUEST['x_billing_zip'];?>"/>
   <input type="hidden" value="<?php echo $_REQUEST['cno'];?>" autocomplete="off" maxlength="16" name="x_card_num" id="x_card_num" class="input_text"><br/>
   <input type="hidden" value="<?php echo $_REQUEST['cexp'];?>" autocomplete="off" maxlength="20" name="x_exp_date" id="x_exp_date" class="input_text">
   <input type="hidden"  name="x_card_code" value="<?php echo $_REQUEST['ccode'];?>"/>
 </form>


<script type="text/javascript">
  document.getElementById("finalform").submit();
</script>

帐户设置我设置 默认收据网址:http://www.uthstuph.com/payment-success/

默认中继响应网址:http://www.uthstuph.com/payment-success/

我已尝试过http和https。

提前致谢。

1 个答案:

答案 0 :(得分:0)

来自Authorize.net support页面:

  

如果您尝试提交x_receipt_link_url和,也可能出现错误14   同时x_relay_url,而不是选择收据方法。

删除其中一个,他们应该工作。另外,从您的Authorize.net帐户尝试以下操作:

添加有效的回复/收据网址:

  
      
  1. https://account.authorize.net
  2. 登录商家界面   
  3. 点击主工具栏中的“帐户”。
  4.   
  5. 点击
  6. 下的响应/收据网址   
  7. 交易格式设置。
  8.   
  9. 点击添加网址。
  10.   
  11. 输入您的回复网址。
  12.   
  13. 点击提交
  14.