Effect of advance payment or delivery

Article 1195 of the Civil Code of the Philippines discusses the effect of advance payment or delivery in an obligation with a period, to wit:
ART. 1195. Anything paid or delivered before the arrival of the period, the obligor being unaware of the period or believing that the obligation has become due and demandable, may be recovered, with the fruits and interests. (1126a)