【问题标题】:the referrer relay response or receipt link url is invalid推荐人中继响应或收据链接 url 无效
【发布时间】:2014-12-16 16:12:52
【问题描述】:

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

referrer 中继响应或接收链接 url 无效

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

<!-- 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/

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

我已经尝试过 http 和 https。

提前致谢。

【问题讨论】:

    标签: php authorize.net


    【解决方案1】:

    来自Authorize.net support 页面:

    如果您尝试提交x_receipt_link_urlx_relay_url 同时进行,而不是选择收款方式。

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

    添加有效的响应/回执 URL:

    1. 通过https://account.authorize.net登录商户界面。
    2. 单击主工具栏中的帐户。
    3. 点击
    4. 下的响应/收据 URL
    5. 事务格式设置。
    6. 单击添加 URL。
    7. 输入您的响应 URL。
    8. 点击提交

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-27
      • 2014-10-10
      • 1970-01-01
      • 2021-05-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多