Payment by a surety or endorser of a debt past due entitles him to proceed immediately against his principal for the sum paid, with interest thereon, and all legal costs to which he may have been subjected by the default of the principal.
Ala. Code § 8-3-5 (1975)