I’m making a game where players can enter an assetID and other players can purchase it.
The problem I’m encountering is that gamepass IDs and product IDs are different. For example, the ID 843417370 can link to two places:
This issue also applies to using PromptPurchase, PromptProductPurchase, and PromptGamePassPurchase.
How should I overcome this ostacle?
You’ll first want to check if the assetId is a GamePass by using the previous method :GetProductInfo(843417370, Enum.InfoType.GamePass) and if that fails, you can then assume its any other asset type and rerun that method with the Asset infoType. Then you can rely on the ProductType returned from the method to determine whether you need to use PromptPurchase or PromptGamePassPurchase