-
Notifications
You must be signed in to change notification settings - Fork 10
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
getTransactionDetailsRequest Sample Code Not Working #13
Comments
Unable to reproduce. PHP code try {
$request = AuthnetApiFactory::getJsonApiHandler(
AUTHNET_LOGIN,
AUTHNET_TRANSKEY,
AuthnetApiFactory::USE_DEVELOPMENT_SERVER
);
$response = $request->getTransactionDetailsRequest([
'transId' => '40067511400'
]);
} catch (Exception $e) {
echo $e;
exit;
} JSON Response
Output <table>
<tr>
<th>Transaction</th>
<td>
<b>ID</b>: <?php echo $response->transaction->transId; ?><br>
<b>Type</b>: <?php echo $response->transaction->transactionType; ?><br>
<b>Status</b>: <?php echo $response->transaction->transactionStatus; ?><br>
<b>Authorization Code</b>: <?php echo $response->transaction->authCode; ?><br>
<b>AVS Response</b>: <?php echo $response->transaction->AVSResponse; ?><br>
</td>
</tr>
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having some difficulty with the getTransactionDetailsRequest part of your sample code. Whenever I run the following the results from transactionType and transactionStatus are empty:
The text was updated successfully, but these errors were encountered: