validate('cardReference'); return; } public function getHttpMethod() { return 'DELETE'; } public function getEndpoint() { if ($this->getCustomerReference()) { // Delete a card from a customer return $this->endpoint.'/customers/'. $this->getCustomerReference().'/cards/'. $this->getCardReference(); } // Delete the customer. Oops? return $this->endpoint.'/customers/'.$this->getCardReference(); } }