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.
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