Category : authorize

$check_request = new AnetAPIGetTransactionDetailsRequest(); $check_request->setMerchantAuthentication($merchantAuthentication); $check_request->setTransId($transId); $check_controller = new AnetControllerGetTransactionDetailsController($check_request); if(env(‘AUTHORIZE_MODE’) == ‘SANDBOX’){ $response2 = $check_controller->executeWithApiResponse(netauthorizeapiconstantsANetEnvironment::SANDBOX); } else{ $response2 = $check_controller->executeWithApiResponse(netauthorizeapiconstantsANetEnvironment::PRODUCTION); } $card_no = $response2->getTransaction()->getPayment()->getCreditCard()->getCardNumber(); I am getting card no like this but it is giving last four digits of card just not full card no. Sourc..

Read more

I have try this code and get the result public function getTransactionDetails($transactionId) { $merchantAuthentication = new AnetAPIMerchantAuthenticationType(); $merchantAuthentication->setName(env(‘MERCHANT_LOGIN_ID’)); $merchantAuthentication->setTransactionKey(env(‘MERCHANT_TRANSACTION_KEY’)); // Set the transaction’s refId $refId = ‘ref’ . time(); $request = new AnetAPIGetTransactionDetailsRequest(); $request->setMerchantAuthentication($merchantAuthentication); $request->setTransId($transactionId); $controller = new AnetControllerGetTransactionDetailsController($request); $response = $controller->executeWithApiResponse( netauthorizeapiconstantsANetEnvironment::SANDBOX); return $response; } when i return the response it gives me the ..

Read more