Why is it giving me the wrong dev product when i but it?
:C
Could you please give your code that you used for prompting that purchase, also please remember we always need some code to debug any kind of scripting related error as we aren’t magicians to figure out what is the code that is doing it.
/\ What he said. Please include your code.
You didn’t have to write an Essay but ight.
local http = game:GetService("HttpService")
local mps = game:GetService("MarketplaceService")
game.ReplicatedStorage.Remote.OnServerEvent:Connect(function(p,amount)
local toSend = "no see this"..amount
http:PostAsync("your not allowed to see me",http:JSONEncode({
["content"] = toSend,
["username"] = p.Name
}),Enum.HttpContentType.ApplicationJson)
wait(3)
mps:PromptPurchase(p,1105637935)
mps.ProcessReceipt = function(receiptInfo)
local e = "not allowed to see this"
local tosend = e..receiptInfo.CurrencySpent
http:PostAsync("your not allowed to see me",http:JSONEncode({
["content"] = tosend,
["username"] = p.Name
}),Enum.HttpContentType.ApplicationJson)
end
end)
You’re using MarketplaceService:PromptPurchase() which prompts the user to purchase an item from the avatar shop. You’d want to use MarketplaceService:PromptProductPurchase() for purchasing developer products or MarketplaceService:PromptGamePassPurchase for gamepasses.