         obj["card_token_id"] = (self.token != nil ) ? self.token!._id : ""
         obj["issuer_id"] = (self.issuer != nil ) ? self.issuer!._id : ""
         obj["payer"] = (self.payer != nil) ? self.payer?.toJSON() : ""
+        obj["transaction_details"] = (self.transactionDetails != nil) ? self.transactionDetails?.toJSON() : ""
         
         return obj
     }

        self.payerCost = nil
        self.token = nil
        self.payer = nil
    }
    
    

        }
        
        if paymentMethod.isEntityTypeRequired() && payer?.entityType == nil {
            return false
        }
        
        if !Array.isNullOrEmpty(paymentMethod.financialInstitutions) && transactionDetails?.financialInstitution == nil{
            return false
        }
        
