Jump to content
Sign in to follow this  
The_recruit

Authorize.net AIM Integration with Oscommerce

Recommended Posts

Hello, I have spent my last to days in searching the answers to AIM integration, I corrected all of themand I know I am closed to make it work with a little bit of help from you.

 

What I've got:

- hostgator.com as hoster

-Curl is activated for the account (they told me I don't have to set up proxy)

- the website site establish an https connection to Authorize Net (https working)

- authorize.net account is in Live mode as directed by their customer support

- the shopping cart is in Test mode

- Login Username correct (beware the others: is API USERNAME from authorizenet control panel - not the regular login)

- TransactionKey correct.

- Authorize Net AIM Module - CVV Help Fix (IcedDante)

 

My problem (I'm sure there are a lot in my sittuation)

- I tried in Live mode and on Authorize.net account the transactions are being reflected but not in the shopping cart and I get this error message:

 

"\"(TESTMODE) This transaction has been approved.\" - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance."

 

Is the same in Live mode also.

 

Delimiter problem? Response Variable?

I tried to modify Aim authorizenet_aim.php file:

if (count($this->response) < 5) {
	$this->response = explode('|', $response);
  }



 // If the response code is not 1 (approved) then redirect back to the payment page with the appropriate error message
  if ($this->response[0] <> '1') {
	tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($this->response[3]) . ' - ' . urlencode(MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_DECLINED_MESSAGE), 'SSL', true, false));

 

if (count($this->response) < 5) {
	$this->response = explode(',', $response);
  }



 // If the response code is not 1 (approved) then redirect back to the payment page with the appropriate error message
  if ($this->response[0] <> '1') {
	tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($this->response[3]) . ' - ' . urlencode(MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_DECLINED_MESSAGE), 'SSL', true, false));

 

I found this sollution a post but is not working. I have the same error.

 

 

Sollutions?

I really think the problem is here somewhere but I'm not sure. If anyboy has a clue please enlight the others.

 

Could also be a host problem? I changed one already but is the same.

Share this post


Link to post
Share on other sites

Well after many frustrations I found the answer to my problem:

 

http://forums.oscommerce.com/index.php?sho...99381&st=40

 

Go on your authorize.net account ->Settings_>Direct Response and change:

Delimited Reponse to NO

Field Encapsulator Char to BLANK

 

For me didn't worked until I went in oscommerce admin panel->configuration->Sessions

Forced Cookie Use to No (if you put yes aol users cannot buy from you)

Check SSL ID to YES

Check user-agent to YES

Check IP address to YES

 

Good luck!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×