Hi
I am in way over my head and need some help. I know enough html code to create my own website (www.csites.com) and incorporate authourize.net for credit card transactions. To my surprise a test transaction actually worked but produced an error message as follows:
Authorize.Net Merchant,
Your script timed out while we were trying to post transaction to it.
Transaction ID: 2976728987
Transaction Result: This transaction has been approved.
The following message was displayed to the customer:
------------------------------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.
After speaking to authorize.net they sent me the following explanation:
Response Reason Code: 52
Response Reason Text: The transaction was authorized, but the client could not be notified; the transaction will not be settled.
Integration Team Suggestions: When Authorize.Net is responding back to a script on your server, our system waits up to 10 seconds for a response. If we do not get a response in 10 seconds, our server will time out and display an error page. The first thing that you will need to look for is the order that your script executes. It is very important that something is printed to the screen before any other process is started. If your script prints to the screen first, we will recognize that you are receiving the information. The most effective method would be to PRINT the headers, and a line of text such as "Processing, please wait."
To resolve this issue:
Check that your script permissions are correct and that it can accept an HTTPS POST.
Check that the script is not completing other functions before writing to the screen, such as writing to a database or sending emails.
Please check to see if there are different processes that are used in your script for approvals, declines, or errors. Check each process to be sure that they will write to the screen before any other functions.
Check if your script is using redirects immediately upon receipt of the response from our servers. Redirects are discouraged because they can potentially interfere with the process.
On occasion, timeouts will occur that are outside of the control of your script or our servers. Typical reasons for these timeouts include Internet traffic, your server is overloaded or malfunctioning, or Internet routing issues. Depending upon your server location and what route is used to send data, it is possible that you may occasionally receive the message you are seeing.
Thank you for contacting our Authorize.Net Customer Support. The Authorize.Net Knowledge Base, located at http://www.authorize.net/help, is available 24x7 to provide you with comprehensive answers to virtually any customer support question, as well as useful links to video demos, help files and more. The video tutorials can be found at http://www.authorize.net/videos. If you need help, we strongly recommend starting with these resources.
I am not competent to implement the fix for this problem and need some guidance on finding someone who can help.
Thanks
Irwin
โ05-08-2010 09:04 AM
This usually means your relay response script has an error of some kind and thus cannot output proper results. The best thing you can is send a test post to your script and see what error message it generates. Then you can fix it and your relay response should work. I can give you a form to use to test your script if you need one.
โ05-08-2010 09:44 AM
I faced the same issue but got to know after several tries that interestingly if your script doesn't generate any output, it gives this error.
I was using the script only for updating the transaction with the database and it was giving this error. I just put a few words to be displayed and it worked without an error. I tried out by removing the words again and error was back so even your script doesn't have an error, if it's not generating an output, it will show the message to the user:
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.
and send the following email to the merchant:
Authorize.Net Developer Center Merchant,
Your script timed out while we were trying to post transaction results to it.
Transaction ID: XXXXXXXXX
Transaction Result: This transaction has been approved.
The following message was displayed to the customer:
------------------------------
โ11-25-2010 07:08 AM
Hi
I have integrate sim method in my server.other methods are display success message.
but implement sim method validate credit card numbers and during ipn calling time update sample textfile content.
It could not update the db.after submit user details in test mode.after display same message.
"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".
Please any one help to me.
by
kamesh.v
โ02-08-2012 05:43 AM
Read the following blog and see if it help you find your problem.
โ02-08-2012 05:49 AM
i have set default response url in my account. add that same url in my replay_response.php
here is my code
checkout_form.php $relay_response_url = "http://www.techmodi.com/demo/pfonline/"; // You will create this file in Step 7. //$relay_response_url=SITE_URL."/classifieds/"; $api_login_id = 'xxxxxxx'; $transaction_key = 'xxxxxxxxxxxx'; extract($_POST); $amount=$fund_amount; $fp_sequence = "123"; // Any sequential number like an invoice number. echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $relay_response_url,$api_login_id, $transaction_key);
reply_response.php <?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK //$redirect_url = "http://techmodi.com/demo/pfonline/cr_receipt.php/"; // Where the user will end up. $redirect_url ="http://techmodi.com/demo/pfonline/cr_receipt.php/"; $api_login_id = 'xxxxxx'; $md5_setting = ""; // Your MD5 Setting $response = new AuthorizeNetSIM($api_login_id, $md5_setting); extract($_POST); if ($response->isAuthorizeNet()) { if ($response->approved) { // Do your processing here. $redirect_url .= '?response_code=1&transaction_id=' .$response->transaction_id; } else { $redirect_url .= '?response_code='.$response->response_code .'&response_reason_text=' . $response->response_reason_text; } // Send the Javascript back to AuthorizeNet, which will redirect user back to your site. echo AuthorizeNetDPM::getRelayResponseSnippet($redirect_url); } else { echo "Error. Check your MD5 Setting."; }?>
it will run but it will redirect to " https://test.authorize.net/gateway/transact.dll". please give me solution . thanks in adv.
โ08-09-2012 05:54 AM
At the first paragraph
Relay Response Basics
Relay Response is a feature available to merchants using Server Integration Method (SIM) or Simple Checkout. It instructs the payment gateway to return transaction results to the merchant using an HTML form POST to a specified URL on the merchant's Web server. A script or program at the URL can be used to create a custom receipt page using the transaction information. The custom receipt page is then relayed back to the customer's browser. Relay Response does not redirect the end user back to the merchantโs server, but relays the page content to the end user instead of displaying the Authorize.Net default receipt page.
โ08-09-2012 06:03 AM
ok now i have made change in check_form.php
$relay_response_url="http://DOMAIN/relay_reponse.php" $api_login_id = 'xxxxx'; $transaction_key = 'xxxxxxxxx; extract($_POST); $amount=$fund_amount; $fp_sequence = "123"; // Any sequential number like an invoice number. echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $relay_response_url,$api_login_id, $transaction_key);
reply_response.php
redirect_url = "http://mydomain/cr_receipt.php"; $api_login_id = 'xxxxxxx'; $md5_setting = ""; // Your MD5 Setting $response = new AuthorizeNetSIM($api_login_id, $md5_setting); extract($_POST); if ($response->isAuthorizeNet()) { if ($response->approved) { // Do your processing here. $redirect_url .= '?response_code=1&transaction_id=' .$response->transaction_id; } else { $redirect_url .= '?response_code='.$response->response_code .'&response_reason_text=' . $response->response_reason_text; } // Send the Javascript back to AuthorizeNet, which will redirect user back to your site. echo AuthorizeNetDPM::getRelayResponseSnippet($redirect_url); } else { echo "Error. Check your MD5 Setting."; }?>
in my account i have add the url http://www.techmodi.com/demo/pfonline so now it will display in my Response/Receipt URLs still it will redirect https://test.authorize.net/gateway/transact.dll this page and it comes to my home page on the site but in url is is showing this url and it i deleted all url including default " 3,2,14,The referrer, relay response or receipt link URL is invalid.,,P,0,,,2.00,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,64F46AD9840A36E3CDAA628503F64DA0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," this error .i don't understand wht is my mistake.please give me the solution.
โ08-09-2012 07:23 AM
You said this
in my account i have add the url http://www.techmodi.com/demo/pfonline
but you code said this
$relay_response_url="http://DOMAIN/relay_reponse.php"
โ08-09-2012 07:34 AM
after payment i want to redirect to the my index page of site. so in my account i have added
http://www.techmodi.com/demo/pfonline $relay_response_url this url and in my account Response/Receipt URLs must be the same right? so now i have changed it.
checkout_form.pph $relay_response_url = "http://www.techmodi.com/demo/pfonline/"; // You will create this file in Step 7. //$relay_response_url=SITE_URL."/relay_response.php"; $api_login_id = 'xxxxxxx'; $transaction_key = 'xxxxxx'; $amount=$fund_amount; $fp_sequence = "123"; // Any sequential number like an invoice number. echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $relay_response_url,$api_login_id, $transaction_key);
my url is redirect to my home page . but in browers instead of "http://www.techmodi.com/demo/pfonline" it is showing https://test.authorize.net/gateway/transact.dll and automatically all the session are also destroied....
โ08-09-2012 10:12 PM