def update_payment_transaction(payment_transaction, callback_response)
      payment_transaction.status = callback_response.status
      payment_transaction.payment.paynet_id = callback_response.payment_paynet_id

      if callback_response.error? || callback_response.declined?
        payment_transaction.add_error callback_response.error
      end
    end
def update_payment_transaction(payment_transaction, callback_response)
      payment_transaction.status = callback_response.status
      payment_transaction.payment.paynet_id = callback_response.payment_paynet_id

      if callback_response.error? || callback_response.declined?
        payment_transaction.add_error callback_response.error
      end
    end
Updates Payment transaction by Callback data

 @param    payment_transaction   [PaymentTransaction]    Payment transaction for updating
 @param    callback_response     [CallbackResponse]      Callback for payment transaction updating