don't deduct GP unless purchase successful (see #233)
Merge branch 'develop'