from farmers markets, if you wanted to buy a piglet the seller would sometimes do the deal and then hand over a bag with a puppy rather than a piglet in it.
Is the opposite of that, then, "buying a pig in a poke" - where people were sold pigs in bags but you couldn't look to check your pig until money had changed hands? Bags are still called pokes in Scotland.