cancel
Showing results for 
Search instead for 
Did you mean: 

SIM errors out after changing domain.

We've had three SIM accounts working fine with authorize for about 5 years now.  After changing our domain name, we get the error of "An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card."

 

After over a week of getting nowhere with their help desk, they asked that we post here.  Authorize is saying that the relay response page is trying to print.  However, I replaced the response page with nothing but the word "tada" on it and we're getting the same error within two seconds.  The new website is located on the same server in the same network.  The www.mahec.net domain was changed to using sys.mahec.net  I've verified that the url listed on the page is the same as the one listed on the merchant account.  The ssl certificate is from the same company and appears to be working correctly.

 

Any help appreciated.  Here's the code:

 

Page sending info:

<form id="simForm" runat="server" method="post" action="https://secure.authorize.net/gateway/transact.dll">

<inpu ttype="submit" runat="server" id="buttonLabel" class="glossy-button" />         

<input type="hidden" runat="server" name="x_login" id="x_login" />

<input type="hidden" runat="server" name="x_invoice_num" id="x_invoice_num" />

<input type="hidden" runat="server" name="x_fp_sequence" id="x_fp_sequence" />

<input type="hidden" runat="server" name="x_fp_timestamp" id="x_fp_timestamp" />

<input type="hidden" runat="server" name="x_fp_hash" id="x_fp_hash" />

<input type="hidden" runat="server" name="x_show_form" id="x_show_form" value="PAYMENT_FORM" />

<input type="hidden" runat="server" name="x_version" id="x_version"value="3.1" />

<input type="hidden" runat="server" name="x_type" id="x_type" value="AUTH_CAPTURE" />

<input type="hidden" runat="server" name="x_method" id="x_method" value="CC" />

<input type="hidden"runat="server" name="x_test_request" id="x_test_request" value="true" />

<input type="hidden" runat="server" name="x_duplicate_window" id="x_duplicate_window" value="30" />

<input type="hidden" runat="server" name="x_relay_response" id="x_relay_response "value="TRUE" />

<input type="hidden" runat="server" name="x_email_customer" id="x_email_customer" value="FALSE" />      

<input type="hidden" runat="server" name="x_amount" id="x_amount" />

<input type="hidden" runat="server" name="x_description" id="x_description" />

<input type="hidden" runat="server" name="x_first_name" id="x_first_name" />

<input type="hidden" runat="server" name="x_last_name" id="x_last_name" />

<input type="hidden" runat="server" name="x_company" id="x_company" />

<input type="hidden" runat="server" name="x_ship_to_first_name" id="x_ship_to_first_name" />

<input type="hidden" runat="server" name="x_ship_to_last_name" id="x_ship_to_last_name" />

<input type="hidden" runat="server" name="x_ship_to_company" id="x_ship_to_company" />

<input type="hidden" runat="server" name="x_email" id="x_email" />

<input type="hidden" runat="server" name="x_address" id="x_address" />

<input type="hidden" runat="server" name="x_city" id="x_city" />

<input type="hidden" runat="server" name="x_state" id="x_state" />

<input type="hidden" runat="server" name="x_zip" id="x_zip" />

<input type="hidden" runat="server" name="x_phone" id="x_phone" />

<input type="hidden" runat="server" name="x_ship_to_address" id="x_ship_to_address" />

<input type="hidden" runat="server" name="x_ship_to_country" id="x_ship_to_country" />  

<input type="hidden" runat="server" name="x_header_html_payment_form" id="x_header_html_payment_form" value="<div><img src=https://sys.mahec.net/media/images/logoMM.gif border=0><br /><br />We do not share our customer's information; please see our <a style='color:#660066;'href=http://sys.mahec.net/aboutus/privacy.aspx target=_blank>privacy and return policy</a>.</div>" />

<input type="hidden" runat="server" name="x_color_text" id="x_color_text" value="#000000" />

<input type="hidden" runat="server" name="x_relay_url" id="x_relay_url" value="https://sys.mahec.net/donate/donateReceipt.aspx" />

<input type="hidden" runat="server" name="x_color_background" id="x_color_background" value="#dfdfdf" />

<input type="hidden" runat="server" name="x_logo_url" id="x_logo_url" value="" />

<input type="hidden" runat="server" name="x_cust_id" id="x_cust_id" />

<input type="hidden" runat="server" name="x_country" id="x_country" />

 

Code behind:

Imports System.Security.Cryptography

Partial Class donate_donateCheckout    

Inherits System.Web.UI.Page    

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load        

Dim loginID As String = "mylogin"        

Dim transactionKey As String = "myKey"        

Dim amount As String = Request("x_amount")        

Dim description As String = Request("x_description")        

Dim label As String = "Continue"        

Dim testMode As String = "false"        

Dim random As New Random        

Dim sequence As Integer = random.Next(0, 1000)        

Dim timeStamp As Integer = CInt((DateTime.UtcNow - New DateTime(1970, 1, 1)).TotalSeconds)        

Dim invoice As String = Left(HttpContext.Current.Session.SessionID.ToString, 20)        

Dim fingerprint As String = HMAC_MD5(myCall)        

 

x_login.Value = loginID        

x_amount.Value = amount        

x_description.Value = Request("x_description")        

x_first_name.Value = Request("x_first_name")        

x_cust_id.Value = Request("x_first_name")        

x_last_name.Value = Request("x_last_name")        

x_country.Value = Request("x_last_name")        

x_company.Value = Request("x_company")        

x_ship_to_first_name.Value = Request("x_ship_to_first_name")        

x_ship_to_last_name.Value = Request("x_ship_to_last_name")        

x_ship_to_company.Value = Request("x_ship_to_company")        

x_email.Value = Request("x_email")        

x_address.Value = Request("x_address")        

x_city.Value = Request("x_city")        

x_state.Value = Request("x_state")        

x_zip.Value = Request("x_zip")        

x_phone.Value = Request("x_phone")        

x_ship_to_address.Value = Request("x_ship_to_address")        

x_ship_to_country.Value = Request("x_ship_to_country")        

buttonLabel.Value = label        

x_test_request.Value = testMode        

x_invoice_num.Value = invoice        

x_fp_sequence.Value = sequence        

x_fp_timestamp.Value = timeStamp        

x_fp_hash.Value = fingerprint    

End Sub

 

receipt page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="donateReceipt.aspx.vb" Inherits="donate_donateReceipt" %>

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">    

<title></title> </head>

<body>    

<form id="form1" runat="server">    

<div>     tada     </div>    

</form>

</body>

</html>

 

Partial Class donate_donateReceipt    

Inherits System.Web.UI.Page

End Class

janetb
Member
1 REPLY 1

In case anyone else runs into this in asp.net - it had nothing to do with the printing.  I needed to add enableViewState-False into the header.

Cheers,

Janet

janetb
Member