douweida2878 2014-12-16 16:12
浏览 60

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

After transaction got successful at authorize.net SIM method it is not redirecting to my website URL. I am getting the error message

the referrer relay response or receipt link url is invalid

Here is my code of my transaction page which is submitting information. Please let me know my mistake in it.

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

IN ACCOUNT SETTING I set Default Receipt URL : http://www.uthstuph.com/payment-success/

Default Relay Response URL : http://www.uthstuph.com/payment-success/

I have tried both http as well as https.

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dongzuoyue6556 2014-12-17 16:22
    关注

    From the Authorize.net support page:

    Error 14 may also occur if you try to submit x_receipt_link_url and x_relay_url simultaneously, instead of choosing a receipt method.

    Remove one of them and they should work. Also, from your Authorize.net account try the following:

    To add a valid Response/Receipt URL:

    1. Log into the Merchant Interface at https://account.authorize.net.
    2. Click Account from the main toolbar.
    3. Click Response/Receipt URLs under
    4. Transaction Format Settings.
    5. Click Add URL.
    6. Enter your Response URL.
    7. Click Submit
    评论

报告相同问题?

悬赏问题

  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 Revit2020下载问题
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数