assign resources when a user buy a app