CreateTransactionController returns null, conflicting examples
Hey,
I've been following the example documentation provided, but started running into issues across the project when response was null, which resulted in exception while attempting to read messages. https://github.com/AuthorizeNet/sample-code-php/blob/master/TransactionReporting/get-transaction-details.php#L40
Call to a member function getMessages() on null
echo "ERROR : Invalid response\n";
$errorMessages = $response->getMessages()->getMessage();
echo "Response : " . $errorMessages[0]->getCode() . " " .$errorMessages[0]->getText() . "\n";
"name": "authorizenet/authorizenet",
"version": "2.0.2",
After reading some source code, this seems to happen when sdk fails to get response from API, but I'm still no closer to figuring out why. Was the API down?
Can confirm from authorize.net dashboard that the customer was charged, so there shouldn't be any issues there.
I also received the same issue for a 15 minute period April 15th, except in my case it was for the CreateCustomerProfileTransactionController, it did not happen either before or after.