DevProduct "Not For Sale"

Hey everyone,

So I have created a donation gui which allows for a player to select between 6 developer products for a donation amount. When testing in game, 2 of the products work perfectly fine, but the other 4 I keep getting a message saying “This item is not currently for sale. Your account has not been charged.” I created all of them on the same day, with the same icon.

Let me know if you have any ideas!

Did you go into the game settings and change the robux of the Product?

I did do that, yes. I have them all set up with the right costs.

By chance do you mind screenshotting it?

Oh! And send the script please to make sure you are using the right prompt

Sounds good.

This one is when you try to buy the 50 robux donation.

This one is when you buy the 10 robux donation. It works fine.

Script (Client):

local buttonsframe = script.Parent.SelectAmount

local mps = game:GetService("MarketplaceService")
local plr = game.Players.LocalPlayer

local d10 = "1236917589"
local d50 = "1236917686"
local d100 = "1236917713"
local d500 = "1236917738"
local d1000 = "1236917796"

local event = game.ReplicatedStorage.Events.DonateEvent

for i,v in pairs(buttonsframe:GetChildren()) do
	if v:IsA("TextButton") then
		v.MouseButton1Click:Connect(function()
			local t = v.Text
			
			if t == "10" then
				mps:PromptProductPurchase(plr,d10)
				
				game.ReplicatedStorage.Events.DonateEvent:FireServer(v.Text)
			elseif t == "50" then
				mps:PromptProductPurchase(plr,d50)
				
				game.ReplicatedStorage.Events.DonateEvent:FireServer(v.Text)
			elseif t == "100" then
				mps:PromptProductPurchase(plr,d100)
				
				game.ReplicatedStorage.Events.DonateEvent:FireServer(v.Text)
			elseif t == "500" then			
				mps:PromptProductPurchase(plr,d500)
				
				game.ReplicatedStorage.Events.DonateEvent:FireServer(v.Text)
			elseif t == "1000" then
				mps:PromptProductPurchase(plr,d1000)			
				
				game.ReplicatedStorage.Events.DonateEvent:FireServer(v.Text)
			end
		end)
	end
end

Screenshot the devproducts please

////

Oh yeah, sorry about that. This is the page.

It might be a roblox issue themselves. I sadly do not see the issue

EDIT: Try giving every button its own MouseButton1Click Event

I believe it was a roblox issue. I re-created the products and they all work now.

1 Like