cancel
Showing results for 
Search instead for 
Did you mean: 

SIM integration help

Hello all,

 

i have ASPX page written in C# that has a form with all the required fields for the transaction. I need the payment page to automaticaly redirect to my site after successful payment so that i know who paid and who didnt. 

 

So i tried the follow, as per the sample code:

 

<FORM METHOD=POST ACTION="https://secure.authorize.net/gateway/transact.dll">
<INPUT TYPE=HIDDEN NAME="x_login" VALUE="the merchant’s API Login ID">
<INPUT TYPE=HIDDEN NAME="x_version" VALUE="3.1">
<INPUT TYPE=HIDDEN NAME="x_method" VALUE="CC">
<INPUT TYPE=HIDDEN NAME="x_show_form" VALUE="PAYMENT_FORM">
<INPUT TYPE=HIDDEN NAME="x_invoice_num" VALUE="ORDER-002450">
<INPUT TYPE=HIDDEN NAME="x_description" VALUE="Product or order description.">
<INPUT TYPE=HIDDEN NAME="x_cust_id" VALUE="Doe-John 001">
<INPUT TYPE=HIDDEN NAME="x_amount" VALUE="9.95">
<INPUT TYPE=HIDDEN NAME="x_relay_response" VALUE="TRUE">
<INPUT TYPE=HIDDEN NAME="x_relay_url" VALUE="www.mydomain.com">
<INPUT TYPE=SUBMIT VALUE="Click here for the secure payment form">
</FORM>

 

 

 

However, after payment i get the error:

 

Your script timed out while we were trying to post transaction results to it.
  Transaction ID: 0
Transaction Result: This transaction has been approved.

 

i also tried the x_receipt fields but that only places a link on the form. This does not ensure that the user will click on the link after successful payment.

 

Any help is greatly apprecaited.

tk79
Member
3 REPLIES 3

Furthermore, if i can do this will simple HTTP post, why do i need the SDK??? Am I missing something ??

 

 

 

tk79
Member

You don't need the SDKs

 

Relay Response Basics and Troubleshooting

 

For aspx you might need to set EnableViewStateMac="false"

on both the submit and relay response page.

Hello tk79,

 

From your code, it appears you are running your transaction using test mode against a live server.  This only confirms your API Login and Transaction key are correct, but won't actually attempt to process the request.  Instead, you might consider running in live mode in the sandbox using your sandbox credentials.  Check your API documentation for the correct URL to use for your post action in the sansbox.

 

Richard