for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Omnipay\ZipPay\Message;
class RestCaptureRequest extends AbstractRequest
{
protected function getEndpoint()
return parent::getEndpoint() . '/charges/' . $this->getChargeId() . '/capture';
}
public function getHttpMethod()
return 'POST';
public function getChargeId()
return $this->getParameter('chargeId');
public function setChargeId($value)
return $this->setParameter('chargeId', $value);
public function getData()
$this->validate('chargeId', 'amount');
$data = $this->getBaseData();
$data['amount'] = $this->getAmount();
return $data;
protected function createResponse($data, $headers = [], $status = 404)
return $this->response = new RestCaptureResponse($this, $data, $headers, $status);