protected function updatePaymentTransaction(PaymentTransaction $paymentTransaction, CallbackResponse $callbackResponse)
    {
        $paymentTransaction->setStatus($callbackResponse->getStatus());
        $paymentTransaction->getPayment()->setPaynetId($callbackResponse->getPaymentPaynetId());

        if ($callbackResponse->isError() || $callbackResponse->isDeclined())
        {
            $paymentTransaction->addError($callbackResponse->getError());
        }
    }
protected function updatePaymentTransaction(PaymentTransaction $paymentTransaction, CallbackResponse $callbackResponse)
    {
        $paymentTransaction->setStatus($callbackResponse->getStatus());
        $paymentTransaction->getPayment()->setPaynetId($callbackResponse->getPaymentPaynetId());

        if ($callbackResponse->isError() || $callbackResponse->isDeclined())
        {
            $paymentTransaction->addError($callbackResponse->getError());
        }
    }
protected function updatePaymentTransaction ( PaymentTransaction $ paymentTransaction , CallbackResponse $ callbackResponse ) { $ paymentTransaction -> setStatus ( $ callbackResponse -> getStatus ( ) ) ; $ paymentTransaction -> getPayment ( ) -> setPaynetId ( $ callbackResponse -> getPaymentPaynetId ( ) ) ; if ( $ callbackResponse -> isError ( ) || $ callbackResponse -> isDeclined ( ) ) { $ paymentTransaction -> addError ( $ callbackResponse -> getError ( ) ) ; } }
Updates Payment transaction by Callback data

@param       PaymentTransaction      $paymentTransaction     Payment transaction for updating
@param       CallbackResponse        $response               Callback for payment transaction updating
Updates Payment transaction by Callback data