Based on the jumpstart labs tutorial: http://tutorials.jumpstartlab.com/projects/merchant.html