Wiktionary
pay the piper
vb. 1 (context idiomatic English) To pay expenses for something, and thus be in a position to be in control (i.e. to be able to call the tune). 2 (context idiomatic English) To pay a monetary debt or experience unfavorable consequences, especially when the payment or consequences are inevitable in spite of attempts to avoid them.
Usage examples of "pay the piper".
We could have ended this war six months ago if the Pelians had been willing to pay the piper.