You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Note now
$response
is type\net\authorize\api\contract\v1\AnetApiResponseType
becauseexecuteWithApiResponse
function returns this typeNow after getting the message and verifying its "OK" I try to parse the transaction response:
Undefined method 'getTransactionResponse'
Looking into the
AnetApiResponseType
type, there is no function for getTransactionResponse. It would seem thatexecuteWithApiResponse
is returning the wrong type.The text was updated successfully, but these errors were encountered: