/**
  * {@inheritdoc}
  */
 protected function validatePaymentTransaction(PaymentTransaction $paymentTransaction)
 {
     if ($paymentTransaction->getPayment()->hasProcessingTransaction()) {
         throw new ValidationException('Payment can not has processing payment transaction');
     }
     if (!$paymentTransaction->isNew()) {
         throw new ValidationException('Payment transaction must be new');
     }
     parent::validatePaymentTransaction($paymentTransaction);
 }
 /**
  * {@inheritdoc}
  */
 protected function validatePaymentTransaction(PaymentTransaction $paymentTransaction)
 {
     $this->checkPaymentTransactionStatus($paymentTransaction);
     parent::validatePaymentTransaction($paymentTransaction);
 }