Pay to (do something)

To be beneficial to do something.

I decided that it would pay to buy a new car rather than fix my old car.