This is coupon concept, i.e., on 1st purchase a coupon shall be generated which can be adjusted in the second bill/purchase. You can implement this concept using third party coupon services offered by EasyRewardz, Capillary, etc.
You won't be notified about changes to this idea.