/**
  * {@inheritdoc}
  */
 protected function updatePaymentTransactionOnSuccess(PaymentTransaction $paymentTransaction, Response $response)
 {
     parent::updatePaymentTransactionOnSuccess($paymentTransaction, $response);
     if ($response->isProcessing()) {
         $response->setNeededAction(Response::NEEDED_STATUS_UPDATE);
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function updatePaymentTransactionOnSuccess(PaymentTransaction $paymentTransaction, Response $response)
 {
     parent::updatePaymentTransactionOnSuccess($paymentTransaction, $response);
     $payment = $paymentTransaction->getPayment();
     $card = $payment->getRecurrentCardFrom();
     $card->setPaynetId($response->getCardPaynetId());
     $card->setCardPrintedName($response['cardholder-name']);
     $card->setExpireYear($response['card-exp-year']);
     $card->setExpireMonth($response['card-exp-month']);
     $card->setBin($response['bin']);
     $card->setLastFourDigits($response['last-four-digits']);
     $card->setCardHashId($response['card-hash-id']);
     $card->setCardType($response['card-type']);
 }
 /**
  * {@inheritdoc}
  */
 protected function updatePaymentTransactionOnSuccess(PaymentTransaction $paymentTransaction, Response $response)
 {
     parent::updatePaymentTransactionOnSuccess($paymentTransaction, $response);
     $this->setNeededAction($response);
     $this->setFieldsFromResponse($paymentTransaction, $response);
 }
 /**
  * {@inheritdoc}
  */
 protected function validateResponseOnSuccess(PaymentTransaction $paymentTransaction, Response $response)
 {
     $this->checkPaymentTransactionStatus($paymentTransaction);
     parent::validateResponseOnSuccess($paymentTransaction, $response);
 }