Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I am trying to setup Authorize.net to work with OScommerce. Authorizenet AIM module works fine. The problem happens when I use AIM version. When the order is submited, the user gets "there is a problem with your card" error. However, when I login to Authorize.net I can see that the order went thru and was approved. So my suspicion is that the problem is with the following section of the code:

 

 

$response_vars = explode(',', $response);

 

if ($response_vars[0] != '1') { show error blah blah blah .....

 

I used print_r($response) to see what is the response from Authorize.net and I get the following:

Array ( [0] => 1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,,Your Products Description,1.00,CC,auth_only .... etc....

 

So it looks like the value of $response_vars[0] is 1 and it should not show me the error on the page, but that is what I am getting. This is driving me crazy.

 

Anyone have any suggestion? Thank you in advance.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...