/** * @param Response\RemoveCard $response */ public function removeCardResponse(Response\RemoveCard $response) { $response->setSuccess($response->getApiResponse('FinalStatus') === 'success'); }
/** * @param string $billingProfile * @param callable $success * @param callable $failure * * @return Response\RemoveCard */ public final function removeCard($billingProfile, callable $success, callable $failure) { $this->apiCheck(__FUNCTION__); $response = new Response\RemoveCard($this->getApi()); $response->setBillingProfile($billingProfile); $this->execute($response, __FUNCTION__, $success, $failure); return $response; }