Verifying if a player owns a product from the store is explained in Verifying Ownership. As the documentation state, verifying ownership should be performed on a trusted server, not on a game client. You can verify owership of all CatalogItemIds in a sandbox using…
https://dev.epicgames.com/community/learning/knowledge-base/l0RL6/epic-online-services-how-do-i-check-ownership-of-a-game-in-the-epic-games-store