             case 0:
                 return displayPreferenceDescription ? 120 : 0
             case 1:
-            
                 let currentPaymentMethod = self.paymentMethodsSearch[indexPath.row]
                 if currentPaymentMethod.isPaymentMethod() && !currentPaymentMethod.isBitcoin() {
                     return 80

                return preferenceDescriptionCell
            case 1:
                let currentPaymentMethod = self.paymentMethodsSearch[indexPath.row]
                let iconImage = MercadoPago.getImage(currentPaymentMethod.idPaymentMethodSearchItem)
                let tintColor = self.tintColor && (!currentPaymentMethod.isPaymentMethod() || currentPaymentMethod.isBitcoin())
            
                if iconImage != nil {
                    if currentPaymentMethod.isPaymentMethod() && !currentPaymentMethod.isBitcoin() {
                        if currentPaymentMethod.comment != nil && currentPaymentMethod.comment!.characters.count > 0 {
                            let offlinePaymentCell = self.paymentsTable.dequeueReusableCellWithIdentifier("offlinePaymentMethodCell") as! OfflinePaymentMethodCell
                            offlinePaymentCell.fillRowWithPaymentMethod(currentPaymentMethod, image: iconImage!)
                            return offlinePaymentCell
                    } else {
                        let offlinePaymentCellWithImage = self.paymentsTable.dequeueReusableCellWithIdentifier("offlinePaymentWithImageCell") as! PaymentMethodImageViewCell
                        offlinePaymentCellWithImage.paymentMethodImage.image = iconImage
                        return offlinePaymentCellWithImage
                    }
                } else {
                    let paymentSearchCell = self.paymentsTable.dequeueReusableCellWithIdentifier("paymentSearchCell") as! PaymentSearchCell
                    paymentSearchCell.fillRowWithPayment(self.paymentMethodsSearch[indexPath.row], iconImage : iconImage!, tintColor: tintColor)
                    paymentSearchCell.separatorInset = UIEdgeInsets.init(top: 20, left: 20, bottom: 20, right: 20)
                    
                    return paymentSearchCell
                }
            }
            
            if currentPaymentMethod.comment != nil && currentPaymentMethod.comment?.characters.count > 0 {
                let paymentSearchTitleAndCommentCell = self.paymentsTable.dequeueReusableCellWithIdentifier("paymentTitleAndCommentCell") as! PaymentTitleAndCommentViewCell
                paymentSearchTitleAndCommentCell.fillRowWith(currentPaymentMethod.description, paymentComment: currentPaymentMethod.comment!)
                return paymentSearchTitleAndCommentCell
            }
            
            let paymentSearchCell = self.paymentsTable.dequeueReusableCellWithIdentifier("paymentSearchTitleCell") as! PaymentTitleViewCell
            paymentSearchCell.paymentTitle.text = currentPaymentMethod.description
            return paymentSearchCell
        default :
            let copyrightCell = self.paymentsTable.dequeueReusableCellWithIdentifier("copyrightCell") as! CopyrightTableViewCell
            let separatorLineView = UIView(frame: CGRect(x: 0, y: 139, width: self.view.bounds.size.width, height: 1))
            separatorLineView.layer.zPosition = 1
            separatorLineView.backgroundColor = UIColor().UIColorFromRGB(0xEFEFF4)
            copyrightCell.addSubview(separatorLineView)
            copyrightCell.bringSubviewToFront(separatorLineView)
            return copyrightCell
        }
        
    }
    
    public func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        let paymentSearchItemSelected = self.paymentMethodsSearch[indexPath.row]
        self.paymentsTable.deselectRowAtIndexPath(indexPath, animated: true)
        
        if (paymentSearchItemSelected.children.count > 0) {
            MPFlowController.push(PaymentVaultViewController(amount: self.amount, currencyId : self.currencyId!, purchaseTitle : self.purchaseTitle, paymentMethodSearch: paymentSearchItemSelected.children, paymentMethodSearchParent: paymentSearchItemSelected, title:paymentSearchItemSelected.childrenHeader, callback: { (paymentMethod: PaymentMethod, cardToken: CardToken?, issuer: Issuer?, installments: Int) -> Void in
                self.callback(paymentMethod: paymentMethod, cardToken: nil, issuer: nil, installments: 1)
            }))
        } else {
            self.optionSelected(paymentSearchItemSelected)
        }
    }
    

            self.title = "¿Cómo quieres pagar?".localized
        }
        
        //Configure navigation item button
        self.navigationItem.rightBarButtonItem!.target = self
        self.navigationItem.rightBarButtonItem!.action = Selector("togglePreferenceDescription")
        
        self.paymentsTable.tableHeaderView = UIView(frame: CGRectMake(0.0, 0.0, self.paymentsTable.bounds.size.width, 0.01))
        
        self.registerAllCells()
        self.loadPaymentMethodGroups()

    }
    
