Open
Description
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";
Metadata
Metadata
Assignees
Labels
No labels
Activity