Devproducts not working

i have a ui with a local script that creates a list of the dev products and lists the info like name, price and image by checking the string value (that shows the dev product ID)

image

The dev products that are listed, have a text button that, if clicked it will show you the buy prompt

i still havent found a solution where if they press buy (roblox prompt) it will print out that they bought the certain product with the certain id

We need more information to help. Do you have a server script which detects the product purchase? You can use the MarketplaceService.ProcessReceipt callback to process developer products.

local mps = game:GetService("MarketplaceService")
local players = game:GetService("Players")

local function process(info: {[string]: any}): Enum.ProductPurchaseDecision
    local player = players:GetPlayerByUserId(info.PlayerId)
    print(`{player.Name} just bought the product with ProductId {info.ProductId}`)    
end

mps.ProcessReceipt = process

MarketplaceService.ProcessReceipt | Documentation - Roblox Creator Hub

The problem here was that i had 2 process receipts in separate scripts which caused some troubleshooting

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.