Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmc committed Dec 24, 2014
1 parent 2893bd7 commit cf0cd05
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,21 +303,17 @@ Here's the PHP code :

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

if ($response != null)
{
echo "\n REF ID IS " . $response->getRefId();
echo "\n Error Code is " . $response->getMessages()->getResultCode();
}

$tresponse = $response->getTransactionResponse();
$tresponse = $response->getTransactionResponse();

echo "\nchecking transaction response\n";

if ($tresponse != null)
{
echo " AUTH CODE : " . $tresponse->getAuthCode() . "\n";
if (($tresponse != null) && ($tresponse->getResponseCode()=="1") )
{
echo " AUTH CODE : " . $tresponse->getAuthCode() . "\n";
echo " TRANS ID : " . $tresponse->getTransId() . "\n";
}
}

?>
````

0 comments on commit cf0cd05

Please sign in to comment.