示例#1
0
 /**
  * @param Response\ValidateCard $response
  */
 public function validateCardResponse(Response\ValidateCard $response)
 {
     $response->setSuccess($response->getApiResponse('FinalStatus') === 'success');
 }
示例#2
0
 /**
  * @param Helper\CreditCard $creditCard
  * @param callable $success
  * @param callable $failure
  *
  * @return Response\ValidateCard
  */
 public final function validateCard(Helper\CreditCard $creditCard, callable $success, callable $failure)
 {
     $this->apiCheck(__FUNCTION__);
     $this->blacklistCheck($creditCard);
     $response = new Response\ValidateCard($this->getApi());
     $response->setCreditCard($creditCard);
     $this->execute($response, __FUNCTION__, $success, $failure);
     return $response;
 }