cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DPM - Script Timed Out

Your script timed out while we were trying to post transaction results to it.
   Transaction ID: 0
Transaction Result: This transaction cannot be accepted.

 

So I keep getting this error. I used the starter code at the end of the documentation for the DPM. It's all pretty much the same code, but with my own settings in it, and yet it's not working:

 

checkout_form.php:

 

<?php
require_once 'sdk-php-master/autoload.php'; // The SDK
$relay_response_url = "http://mysite.com/AuthorizeNet/relay_response.php"; // You will create this file in Step 7.
$api_login_id = 'THISISCORRECT';
$transaction_key = 'THISISCORRECT';
$amount = "5.99";
$fp_sequence = "123"; // Any sequential number like an invoice number.
echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $relay_response_url,$api_login_id, $transaction_key);
?>

 

relay_response.php:

 

<?php
require_once 'sdk-php-master/autoload.php'; // The SDK
$redirect_url = "http://mysite.com/AuthorizeNet/order_receipt.php"; // Where the user will end up.
$api_login_id = 'THISISCORRECT';
$md5_setting = "THISISCORRECT"; // Your MD5 Setting
$response = new AuthorizeNetSIM($api_login_id, $md5_setting);

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 . '&nope=nope';
}
// 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.";
}?>

 

order_receipt.php:

 

<?php
if ($_GET['response_code'] == 1) {
echo "Thank you for your purchase! Transaction id: "
. htmlentities($_GET['transaction_id']);
} else {
echo "Sorry, an error occurred: " . htmlentities($_GET['response_reason_text']);
}
?>

 

What am I doing wrong here?

AdmiralRob
Member
9 REPLIES 9

UPDATE:

Your script timed out while we were trying to post transaction results to it.

   Transaction ID: 2217159555

Transaction Result: This transaction has been approved.

 

So I updated the transaction Key, and now it seems to be approving the items, but it's still saying the script is timing out. I can go to that script myself and it's showing up nice and quick. I don't get it.

 

Fact is, I get the error (and even the email) before ten seconds are up. So I KNOW that Authorize.NET Isn't waiting.

 

Anyone know how to fix this?

 

AdmiralRob
Member

UPDATE:

 

I belive it is because the host is on GoDaddy. That is SO FRUSTRATING.

 

I just moved my script to another host (hostgator) and it worked.

 

So now it's an issue I need to figure out about GoDaddy. Does anyone have any experience with this? What are they doing that's causing this system to error out?

AdmiralRob
Member

Are you using https on the relay response? Mod said issue with GoDaddy.

http://community.developer.authorize.net/t5/Integration-and-Testing/SIM-relay-response-url-stopped-w...

 

That's the wierd thing, I'm not even using https. So that part shouldn't be the problem, right?

If it makes you feel any better I'm having exactly the same problem with a VERY fast server running on Amazon AWS.  I'm fairly sure that the AuthNet gateway isn't waiting 10 seconds for the page to come back, but there seems to be no way to pin this down or fix it and the support people just quote the documentation.  Very frustrating.

Is your relay response URL on a standard port and publicly available on the internet?

 

Richard

I'm experiencing this same issue - did anybody figure out how to solve it?

 


Your script timed out while we were trying to post transaction results to it.
   Transaction ID: 0
Transaction Result: This transaction cannot be accepted.

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 cannot be accepted.

So now it is a problem I need to figure out approximately GoDaddy. Does every person have any revel in with this? What are they doing it truly is inflicting this device to blunders out?

heonii99
Member

@AdmiralRob wrote:

Your script timed out while we were trying to post transaction results to it.
   Transaction ID: 0
Transaction Result: This transaction cannot be accepted.

 

So I keep getting this error. I used the starter code at the end of the documentation for the DPM. It's all pretty much the same code, but with my own settings in it, and yet it's not working:

 

checkout_form.php:

 

<?php
require_once 'sdk-php-master/autoload.php'; // The SDK
$relay_response_url = "http://mysite.com/AuthorizeNet/relay_response.php"; // You will create this file in Step 7.
$api_login_id = 'THISISCORRECT';
$transaction_key = 'THISISCORRECT';
$amount = "5.99";
$fp_sequence = "123"; // Any sequential number like an invoice number.
echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $relay_response_url,$api_login_id, $transaction_key);
?>

 

relay_response.php:

 

<?php
require_once 'sdk-php-master/autoload.php'; // The SDK
$redirect_url = "http://mysite.com/AuthorizeNet/order_receipt.php"; // Where the user will end up.
$api_login_id = 'THISISCORRECT';
$md5_setting = "THISISCORRECT"; // Your MD5 Setting
$response = new AuthorizeNetSIM($api_login_id, $md5_setting);

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 . '&nope=nope';
}
// 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.";
}?>

 

order_receipt.php:

 

<?php
if ($_GET['response_code'] == 1) {
echo "Thank you for your purchase! Transaction id: "
. htmlentities($_GET['transaction_id']);
} else {
echo "Sorry, an error occurred: " . htmlentities($_GET['response_reason_text']);
}
?>

 

What am I doing wrong here?


Is your transfer reaction URL on a standard port and freely accessible on the web?

MaryLewis
Member