setPurchaseLogic