As Orlove noted, barter may occur in commercial economies, usually during periods of monetary crisis. During such a crisis, currency may be in short supply, or highly devalued through hyperinflation. In such cases, money ceases to be the universal medium of exchange or standard of value. Money may be in such short supply that it becomes an item of barter itself rather than the means of exchange. Barter may also occur when people cannot afford to keep money (as when hyperinflation quickly devalues it).
It’s hard to answer that without actually seeing a modern gift economy in action. Luckily, modern gift economies actually do exist. On a small scale, they exist among friends, who might lend each other a vacuum or a cup of flour. There’s even an example of a gift economy on a much larger scale, albeit one that’s not always in operation: The Rainbow Gathering, an annual festival in which about 10,000 people gather for a month in the woods (it rotates among various national forests around the country each year) and agree not to bring any money. Groups of attendees set up “kitchens,” in which they prepare and serve food for thousands of people every day, all for free. Classical economists might guess that people would take advantage of such a system, but, sure enough, everyone is fed, and the people who don’t cook play music, set up trails, teach classes, gather firewood, and perform in plays, among other things.
If you've ever swapped one of your toys with a friend in return for one of their toys, you have bartered. Bartering is trading services or goods with another person when there is no money involved. This type of exchange was relied upon by early civilizations. There are even cultures within modern society who still rely on this type of exchange. Bartering has been around for a very long time, however, it's not necessarily something that an economy or society has relied solely on.
Other countries, though, do not have the reporting requirement that the U.S. does concerning proceeds from barter transactions, but taxation is handled the same way as a cash transaction. If one barters for a profit, one pays the appropriate tax; if one generates a loss in the transaction, they have a loss. Bartering for business is also taxed accordingly as business income or business expense. Many barter exchanges require that one register as a business.
Still, Adam Smith really did seem to believe barter was real. He writes, “When the division of labour first began to take place, this power of exchanging must frequently have been very much clogged and embarrassed in its operations,” and then goes on to describe the inefficiencies of barter. And Beggs says that many textbooks sloppily seem to endorse this viewpoint. “They sort of use that fairy tale,” he explains.