         MercadoPagoCheckoutViewModel.error = error
         self.errorCallback = errorCallback
     }
-    
+
     func shouldDisplayPaymentResult() -> Bool {
         if !MercadoPagoCheckoutViewModel.flowPreference.isPaymentResultScreenEnable() {
             return false

            MercadoPagoContext.setSiteID(self.checkoutPreference.getSiteId())
        }
    }
    
    func hasError() -> Bool {
        return MercadoPagoCheckoutViewModel.error != nil
    }

            self.directDiscountSearched = true
            return .SEARCH_DIRECT_DISCOUNT
        }

        if hasError() {
            return .ERROR
        }

        if shouldExitCheckout() {
            return .FINISH
        }
