예제 #1
0
 /**
  * @param Response\RemoveCard $response
  */
 public function removeCardResponse(Response\RemoveCard $response)
 {
     $response->setSuccess($response->getApiResponse('FinalStatus') === 'success');
 }
예제 #2
0
 /**
  * @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;
 }