After reading the manual several times and searching the forums and trying every sample code I can find... Still no joy.
Tried this:
Code executes.. sits for a while and comes back with 0 batches.
So I added in dates for the last 20 days and set details to true. Still nothing.
So i borrowed other sample code posted here in the forums and from the TD.markdown file as well as from the readme samples. Blank.. Nada.
Obviously I'm missing a major part of the puzzle here.
Is there a way to set debugging to see where the process is breaking down?
Perchance is it defaulting to a test account? (I don't have one, I only acces my live account)
Any hints or pointers to sample code that really should work?
Thanks
Frustrated Michael
Solved! Go to Solution.
10-15-2011 09:19 AM
The function you're using must be defaulting to sandbox. Try adding this:
define("AUTHORIZENET_SANDBOX", false);
If that doesn't work, go into the lib files for the API and see if there's a sandbox argument for the function.
10-19-2011 07:32 AM - edited 10-19-2011 07:33 AM
Can you add this and paste the result (in a code box if it's more than a line or two)?
print_r($response);
It's theoretically possible it defaults to sandbox (test mode is different), and in that case the response should contain an applicable error, since your production account login obviously isn't going to work on the test server.
10-15-2011 01:37 PM
TJ.
Very useful idea, Thank you..
The $response array reports an authentication error (pasted below). What is odd is that I am using the same API login and Transaction key used in my shopping cart connector to authroize (which works fine).. API login as 12 characters and Transaction Key is 16 characters.
I must be missing something. But what?
AuthorizeNetTD_Response Object
(
[xml] => SimpleXMLElement Object
(
[messages] => SimpleXMLElement Object
(
[resultCode] => Error
[message] => SimpleXMLElement Object
(
[code] => E00007
[text] => User authentication failed due to invalid
authentication values.
)
)
)
10-19-2011 06:19 AM
The function you're using must be defaulting to sandbox. Try adding this:
define("AUTHORIZENET_SANDBOX", false);
If that doesn't work, go into the lib files for the API and see if there's a sandbox argument for the function.
10-19-2011 07:32 AM - edited 10-19-2011 07:33 AM
And THAT is a solution that should be shared with others.
IT works now. Thanks TJ.
Note to Authorize.net - this would be important to mention/add/change in sample code and documentation.
Much thanks TJ,,
-Michael
10-19-2011 07:37 AM - edited 10-19-2011 07:37 AM
Glad to be of help.
10-19-2011 01:25 PM