         let height2 = heightOfItem(indexItem: index2)
 
         return height1 > height2 ? height1 : height2
-
     }
 
     func heightOfItem(indexItem: Int) -> CGFloat {

        self.hideLoading()
    }

    open override func willMove(toParentViewController parent: UIViewController?) {
        super.willMove(toParentViewController: parent)
    }

    fileprivate func cardFormCallbackCancel() -> (() -> Void) {
        return { () -> Void in
            if self.viewModel.getDisplayedPaymentMethodsCount() > 1 {
                self.navigationController!.popToViewController(self, animated: true)
            } else {
                self.loadingGroups = false
              //  self.navigationController!.popToViewController(self, animated: true)
                self.callbackCancel!()
            }
        }
    }

    fileprivate func getCustomerCards() {
        if self.viewModel!.shouldGetCustomerCardsInfo() {

            if let customerURL = MercadoPagoCheckoutViewModel.servicePreference.getCustomerURL() {
                self.viewModel.mercadoPagoServicesAdapter.getCustomer(callback: { [weak self] (customer) in

                    self?.viewModel.customerId = customer._id
                    self?.viewModel.customerPaymentOptions = customer.cards
                    self?.loadPaymentMethodSearch()

                }, failure: { (error) in

                    // Ir a Grupos igual
                    self.loadPaymentMethodSearch()

                })
            }

        } else {
            self.loadPaymentMethodSearch()
        }

    }

    fileprivate func initCommon() {
        self.merchantAccessToken = MercadoPagoContext.merchantAccessToken()
        self.publicKey = MercadoPagoContext.publicKey()
        self.currency = MercadoPagoContext.getCurrency()
