bobren4 Posted March 15, 2006 Posted March 15, 2006 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. Quote
Recommended Posts
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.