Lawsuit?

If a credit card company filed a lawsuit, can you settle it with them without going to the court and stuff?