09-26-2011 12:23 PM
Well, $batches is obviously not having anything assigned to it, so my guess would be that there's either no response (unlikely, I hope) or you're accessing the batches incorrectly. I can't give a more specific answer because I haven't worked with batches yet, but if I were debugging this I'd do print_r($response) and make sure that (a) it has data in it and (b) has the method or attribute that you're trying to put into $batches. That will at least narrow the possibilities.
09-26-2011 02:16 PM
I got this message .. I used same ID and key to accept payment with no error ... I don't knwo why here show User authentication failed due to invalid authentication values.
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. ) ) ) [response] => ErrorE00007User authentication failed due to invalid authentication values. [xpath_xml] => SimpleXMLElement Object ( [messages] => SimpleXMLElement Object ( [resultCode] => Error [message] => SimpleXMLElement Object ( [code] => E00007 [text] => User authentication failed due to invalid authentication values. ) ) ) )
09-27-2011 03:21 PM
Have you printed out your login values to make sure they're actually making it where they're supposed to go? Also, are you in the correct sandbox or non-sandbox mode for that login?
09-27-2011 11:59 PM