The to-infinitive (e.g. to pay) expresses an unrealized event; an event that hasn't happened yet or at least not at the time of the spoken reference. In "was to pay", the speaker refers to a point in time in the past ("was") before the event ("to pay dearly") took place. The speaker is referring to the past while giving us a preview of things to come in the future.
- For Teachers