To pay expenses for something, and thus be in a position to be in control.
To pay a monetary or other debt or experience unfavorable consequences, especially when the payment or consequences are inevitable or a result of something one has enjoyed.
How often have the words be punished and pay the piper occurred in a corpus of books? (source: Google Ngram Viewer )