public function testGetTransactionDetails()
 {
     $sale = new AimRequest();
     $amount = rand(1, 100);
     $response = $sale->authorizeAndCapture($amount, '4012888818888', '04/17');
     $this->assertTrue($response->approved);
     $transId = $response->transaction_id;
     $request = new Request();
     $response = $request->getTransactionDetails($transId);
     $this->assertTrue($response->isOk());
     $this->assertEquals($transId, (string) $response->xml->transaction->transId);
     $this->assertEquals($amount, (string) $response->xml->transaction->authAmount);
     $this->assertEquals("Visa", (string) $response->xml->transaction->payment->creditCard->cardType);
 }