Skip to content

CreateTransactionController returns null, conflicting examples #430

Open
@KasparRosin

Description

@KasparRosin

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";

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions