Add user ID parameter (defaulting to an empty string) in makePurchase()