The correct option is D to buy
The infinitive verb is a verb with the word 'to' in front of it. This verb is always just a verb. There is no - ed, no - ing, no - s at the end of the verb. Thus, options A, B and C are wrong according to the rule. The correct option is D since 'to' is in front of the verb 'buy'.