Roblox Marketplaceservice issues

So i never really use marketplaceservice, and today i tried to make a store but it isnt going too well,
each time the user gets prompted it just gives errors
image
I fire a remote from the client to the server to prompt but it keeps errors like i said
here is code

Game:GetService("MarketplaceService"):PromptPurchase(Client, 4416387849)

It cannot offer to buy because it cannot be bought, if you replace it for another product that can be bought, everything will work
image

Well, its on sale always because its a developer product

This product (4416387849) cannot be bought, so there will be no mistake if you make it so that it can be bought or exchanged for another product (which can be bought).

Well how do i make a developer product purchaseable?

If it’s not yours, then no way, or ask the creator to do it, if yours - just go to the settings and make it available.


you cant really like edit a dev product that much so its not an issue with it being on sale or not

Are you sure you’ve entered the correct id in script?

Wait a second, i copied the id from the link, apparently its different than the real id, im so sorry for bothering you :sad:

You need to insert exactly the product ID into the script.

Yea, i thought the id on the link was the product id, i guess i was wrong

You’re using the wrong method. You should be using PromptProductPurchase.

Yes i did, i got another question:

			Game:GetService("MarketplaceService"):PromptPurchase(Client, 170292467)

so i have this script that prompts a gamepass (not a dev product) but it still doesnt work, and i have double checked it is correct id and it is on sale
image

If it’s a gamepass, then use PromptGamePassPurchase

Okay, do you know anywhere where i can learn this marketplace stuff, i find it quite embarrassing to ask this much (also thank you)

The documentation site: Roblox Creator Documentation

Docs for MarketplaceService: MarketplaceService | Roblox Creator Documentation