Quote Originally Posted by swguy View Post
In getTransactionDetails(), I'm seeing logs on includes/modules/payment/authorizenet_cim.php" line 1263

PHP Fatal error: Uncaught Error: Call to a member function getMessages() on null

Should the two lines

$errorMessages = $response->getMessages()->getMessage();
$logData .= "Response : " . $errorMessages[0]->getCode() . " " . $errorMessages[0]->getText() . "\n";

be wrapped in a check for ($response != null)?
@swguy,
i do not think so. i would look into why the $response is null. that method seems real simple to me:
  • it creates a request.
  • it populates the request with the merchant credentials.
  • it populates the transaction id.
  • it then makes a request via the controller.


i have not been able to get a $response of null, despite trying. (and i do see this line, where that same conditional seems superfluous):

https://github.com/proseLA/authorize..._cim.php#L1256

if i populate $transactionId with a random numeric, i still get a response. the message is:

The record cannot be found.

if i populate $transactionId with null or a character string, i get the following message:

The element 'getTransactionDetailsRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'refId, transId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.

something seems much further off in the implementation to be getting a null value as the $response.

is this a new install? are you sure the merchant credentials are correct?