If the payment was made after judgment and the principal had notice of the pendency of the action against the surety, the amount of such judgment shall be conclusive against the principal as to the amount for which the surety was bound. If the payment was not made after judgment, the principal may dispute the validity of the payment as to the amount or as to the authority of the person to whom it was paid.