Adds stae id to purchase