Reply
Highlighted
Member
Posts: 5
Registered: ‎06-21-2011

SIM - Relay Response

Hello,

 

I'm using SIM methode with a test account.

I tried several combinations but none worked... I always have the following error :

 

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.

      This transaction has been approved.
It is advisable for you to contact the merchant to verify that you will receive the product or service.

 

I tried to add in the console (settings/Relay Response) a default URL without passing "x_relay_response" and "x_relay_url" in the code

 

I tried to add "x_relay_response" and "x_relay_url" in the form with "TRUE" and an URL

 

I tried to remove the default URL and pass "TRUE" to "x_relay_response" and an URL to "x_relay_url"

 

None of this worked, i thought it was due to the URL i passed which was not accessible or something like that (althought it should be accessible...) so then i tried to put "http://www.google.com" to default URL and to "x_relay_url"

 

But i always have the same error message.

 

Can someone help me ?

 

Best regards.

 

 Relay Response

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: SIM - Relay Response

1)The URL need to be in the Settings - Response/Receipt URLs.

2)x_relay_response need to be set to "TRUE"

3)x_relay_url is required unless the Default Relay Response URL is set on the account.

 

Try the URL on a browser to see if it is accessible. On a external computer if possble.

 

Try their test url(remember to set is as a valid url in Response/Receipt URLs)

https://developer.authorize.net/tools/paramdump/index.php 

Highlighted
Member
Posts: 5
Registered: ‎06-21-2011

Re: SIM - Relay Response

Hello,

 

Here a copy of the test form i use :

 

<form id="simForm" runat="server" method='post'>
        <input id="HiddenValue" type="hidden" value="Initial Value" runat="server" />
        <input type='hidden' runat="server" name='x_login' id='x_login' />
        <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_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_test_request' id='x_test_request' />
        <input type='hidden' name='x_show_form' value='PAYMENT_FORM' />
        <input type='hidden' name="x_relay_response" value="TRUE"/>
        <input type='hidden' name="x_relay_url" value="http://stage.sayitwithcelebrations.co.uk/returnsim.aspx"/>
        <input type='submit' runat="server" id='buttonLabel' />

 

I tried to add "action='https://test.authorize.net/gateway/transact.dll' onsubmit="var v=document.getElementById('__VIEWSTATE');v.parentNode.removeChild(v);" on the <form> tag

 

I tried to add EnableViewStateMac="false" on both sending page and receiving page

 

I tried to access the url from an extern connection : http://stage.sayitwithcelebrations.co.uk/returnsim.aspx

 

I configured in the console the relay response : http://stage.sayitwithcelebrations.co.uk/ReturnSim.aspx

 

It is working with https://developer.authorize.net/tools/paramdump/index.php so it may  be something on my side but i can't figure out what ...

 

Best regards.

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: SIM - Relay Response

something fishy about your x_relay_url line.

 

I copy it to my test page and when I ctrl-click(in VS2010).

it show up as http://stage.sayitwithcelebrations.co.uk/returnsim.aspx%EF%BB%BF

Note the %EF%BB%BF at the end.

I have to delete and retype the whole line to get remove it. Copy and paste the url didn't fix it.

 

 

Highlighted
Regular Contributor
Posts: 72
Registered: ‎07-06-2011

Re: SIM - Relay Response

I had the exact same issue.

 

When I changed the target URL for the form to https://secure.authorize.net/gateway/transact.dll it worked.

 

Example of my own working code:

 

<FORM method="post" action="https://secure.authorize.net/gateway/transact.dll" >
    <INPUT type="hidden" name="x_login" value="My_Login" />
    <INPUT type="hidden" name="x_amount" value="10.95" />
    <INPUT type="hidden" name="x_description" value="Test Transaction" />
    <INPUT type="hidden" name="x_invoice_num" value="INV123" />
    <INPUT type="hidden" name="x_fp_sequence" value="(sequence)" />
    <INPUT type="hidden" name="x_fp_timestamp" value="(timestamp)" />
    <INPUT type="hidden" name="x_fp_hash" value="(Generated HMAC Fingerprint)" />
    <INPUT type="hidden" name="x_test_request" value="true" />
    <INPUT type="hidden" name="x_show_form" value="PAYMENT_FORM" />
    <INPUT TYPE=HIDDEN NAME="x_relay_response" VALUE="TRUE">
    <INPUT TYPE=HIDDEN NAME="x_relay_url" VALUE="http://www.mydomainname.com/myfile.php">
    <input type="submit" value="Submit Payment" />
    </FORM>

 

This particular SIM run works with my live merchant account set to test mode within the merchant admin panel.

 

WHeis

Highlighted
Contributor
Posts: 37
Registered: ‎05-09-2011

Re: SIM - Relay Response

what are the PCI compliant stanards needed to use SIM's relay reponse? Does anyone know who to ask to get a definitive answer? i'm trying to code an app that does a certain thing depending on the success of the transaction but it appears that if you are using the relay response you need to comply with certain PCI DSS standards.