Scottish idiom meaning to enter a deal which turns out differently than agreed

Solution 1:

I think it's simply a reference to "been there, done that, bought the T-shirt".

Definitely not Scots slang.