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 DeleteCardRequest extends AbstractPaypalRequest
{
* Requires "cardReference" parameter
*
* @return string
public function getEndpoint()
$this->validate('cardReference');
return '/vault/credit-card/'.$this->getCardReference();
}
public function getHttpMethod()
return 'DELETE';
* @param mixed $data
* @return \Omnipay\PaypalRest\Message\DeleteCardResponse
public function sendData($data)
$httpResponse = $this->sendHttpRequest($data);
return $this->response = new DeleteCardResponse(
$this,
$httpResponse->getBody(true) ? $httpResponse->json() : array(),
$httpResponse->getStatusCode()
);
* @return array
public function getData()
return array();