pass userId to buy to create payload