PayPal\Core\PPBaseService::getLastResponse PHP Method

getLastResponse() public method

public getLastResponse ( )
    public function getLastResponse()
    {
        return $this->lastResponse;
    }

Usage Example

 /**
  * @test
  */
 public function testMakeRequestWithHandlers()
 {
     $req = new MockNVPClass();
     $ret = $this->object->call(null, 'GetInvoiceDetails', $req, null);
     $this->assertContains("responseEnvelope.timestamp=", $ret);
     $this->assertEquals($req->toNVPString(), $this->object->getLastRequest());
     $this->assertEquals($ret, $this->object->getLastResponse());
 }