         if let payerData = self.paymentData.getPayer(),
             let payerIdentification = payerData.identification,
             let type = payerIdentification.type,
-            let boletoType = BoletoType(rawValue: type)  {
+            let boletoType = BoletoType(rawValue: type) {
             //cpf type requires first name and last name to be a valid payer
             let cpfCase = payerData.firstName != nil && payerData.lastName != nil && boletoType == .cpf
             //cnpj type requires legal name to be a valid payer

        customPaymentOptions?.removeAll()

        for pxCustomOptionSearchItem in search.customOptionSearchItems {
            let customerPaymentMethod =  pxCustomOptionSearchItem.getCustomerPaymentMethod()
//            if let paymentMethodSearchCards = paymentMethodSearch.cards {
//                var filteredCustomerCard = paymentMethodSearchCards.filter({return $0.id == customerPaymentMethod.customerPaymentMethodId})
//                if !Array.isNullOrEmpty(filteredCustomerCard) {
//                    customerPaymentMethod.card = filteredCustomerCard[0]
//                }
//            }
            customPaymentOptions = Array.safeAppend(customPaymentOptions, customerPaymentMethod)
        }



    public func getPaymentMethodsForSelection() -> [PXPaymentMethod] {
        let filteredPaymentMethods = search?.paymentMethods.filter {
            return $0.conformsPaymentPreferences(self.getPaymentPreferences()) && $0.paymentTypeId == self.paymentOptionSelected?.getId()
        }
        guard let paymentMethods = filteredPaymentMethods else {
            return []
