def update_payment_transaction_on_error(payment_transaction, response)
      if response.declined?
        payment_transaction.status = response.status
      else
        payment_transaction.status = PaymentTransaction::STATUS_ERROR
      end

      payment_transaction.add_error response.error
      set_paynet_id payment_transaction, response
    end
def update_payment_transaction_on_error(payment_transaction, response)
      if response.declined?
        payment_transaction.status = response.status
      else
        payment_transaction.status = PaymentTransaction::STATUS_ERROR
      end

      payment_transaction.add_error response.error
      set_paynet_id payment_transaction, response
    end
Updates payment transaction by query response data
 if payment transaction is not processing or approved

 @param    payment_transaction   [PaymentTransaction]    Payment transaction
 @param    response              [Response]              Response for payment transaction updating