Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateTransactionController returns null, conflicting examples #430

Open
KasparRosin opened this issue Apr 4, 2022 · 3 comments
Open

CreateTransactionController returns null, conflicting examples #430

KasparRosin opened this issue Apr 4, 2022 · 3 comments

Comments

@KasparRosin
Copy link

KasparRosin commented Apr 4, 2022

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";
@KasparRosin
Copy link
Author

"name": "authorizenet/authorizenet",
"version": "2.0.2",

@KasparRosin
Copy link
Author

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.

@thewunder
Copy link

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.

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

No branches or pull requests

2 participants