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

"getTransactionResponse" not a function in \net\authorize\api\contract\v1\AnetApiResponseType #399

Open
ghost opened this issue Dec 1, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 1, 2020

I am following the sample code verbatim, I can make requests which work, however I cannot get the transaction response.

Here is the execution of the request

    $controller = new AnetController\CreateTransactionController($request);
    $response = $controller->executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::SANDBOX);

Note now $response is type \net\authorize\api\contract\v1\AnetApiResponseType because executeWithApiResponse function returns this type

Now after getting the message and verifying its "OK" I try to parse the transaction response:

$tresponse = $response->getTransactionResponse();

Undefined method 'getTransactionResponse'

Looking into the AnetApiResponseType type, there is no function for getTransactionResponse. It would seem that executeWithApiResponse is returning the wrong type.

@mainakDev
Copy link

Facing the same issue, any solution?

1 similar comment
@arifktk32
Copy link

Facing the same issue, any solution?

@ghost
Copy link
Author

ghost commented Oct 21, 2022

@arifktk32 the solution is to not use this library. I used Stripe instead.

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

No branches or pull requests

2 participants