Before buying anything you should first make sure your machine will accept the upgrade you have in mind.
For Lion, the minimum specs are … OS X Lion - Technical Specifications
If it does, a download code can be bought from Apple.
You should then apply the Combo update for LION. OS X Lion Update 10.7.5 (Client Combo)