Upon losing the case, neither you nor the attorney will get paid. However, you have to pay other charges like court filing fees, the cost associated with deposing witnesses whether you win or lose.