Posts: 5
Registered: ‎06-21-2011

SIM - Relay Response



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 "" to default URL and to "x_relay_url"


But i always have the same error message.


Can someone help me ?


Best regards.


 Relay Response

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) 

Posts: 5
Registered: ‎06-21-2011

Re: SIM - Relay Response



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=""/>
        <input type='submit' runat="server" id='buttonLabel' />


I tried to add "action='' 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 :


I configured in the console the relay response :


It is working with so it may  be something on my side but i can't figure out what ...


Best regards.

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

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.



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 it worked.


Example of my own working code:


<FORM method="post" action="" >
    <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="">
    <input type="submit" value="Submit Payment" />


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



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.