The wiki doesnt tell you much about either. Can you buy a Dev Product with the same script as you would with a gamepass? If so, is all you need to change is just the rewarding of the item or bonus feature.
When dealing with Products, is there a certain way to code, or is it the same as gamepasses.
No, it's not the same. Developer Products use MarketplaceService
and Game Passes use GamepassService
.
Gamepasses are much easier to handle than Developer Products. For Developer Products, YOU are responsible to save which passes have been bought. You need to define code to give the product and code to handle the cases where the player just got the product and where the player rejoined the game and also got the product.
Gamepasses, however, are saved on the roblox servers. You can just use game:GetService("GamePassService"):PlayerHasPass(player, passid)
to check if a player has the pass.
For a detailed description on Developer Products - I just wrote an article on the blog about it.