for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\PaypalRest\Message;
/**
* @author Ivan Kerin <[email protected]>
* @copyright 2014, Clippings Ltd.
* @license http://spdx.org/licenses/BSD-3-Clause
*/
class CaptureResponse extends AbstractResponse
{
* Return true if state is "completed"
*
* @return boolean
public function isSuccessful()
return (parent::isSuccessful()
and isset($this->data['state'])
and $this->data['state'] === 'completed');
}