protected function updatePaymentTransactionOnError(PaymentTransaction $paymentTransaction, Response $response)
    {
        if ($response->isDeclined())
        {
            $paymentTransaction->setStatus($response->getStatus());
        }
        else
        {
            $paymentTransaction->setStatus(PaymentTransaction::STATUS_ERROR);
        }

        $paymentTransaction->addError($response->getError());

        $this->setPaynetId($paymentTransaction, $response);
    }