A writ of attachment may be obtained before the debt sued upon is due. If the debt is paid when it becomes due, the costs of the seizure shall be paid by the plaintiff.