public function testSetRequestWithSOAPModel() { $requestObj = new CybersourceSOAPModel('PHP', phpversion(), 'test', 'test-id', 'test-merchant-code'); $model = $this->createModel('100', 'ACCEPT'); $responseObj = new CybersourceResponse($model, $this->configs->getResultCodes()); $responseObj->setRequest($requestObj); $requestArray = $responseObj->getRequestData(); $this->assertEquals('PHP', $requestArray['clientLibrary']); $this->assertEquals(phpversion(), $requestArray['clientLibraryVersion']); }
public function sendRequest($request) { $rawResponse = $this->requester->send($request); $csResponse = new CybersourceResponse($rawResponse, $this->configs->getResultCodes()); $csResponse->setRequest($request); return $csResponse; }