Posting a .capx would make answering your question possible, as you can do this in million ways and we have no idea how you've approached it... :)
Here is one way:
You probably got variable money on player object.
on buy event
player.money > item.price
.. play not enough money sound or something