I have this script but I don't know how to Process a Receipt and add cash:
local id = 44311080
script.Parent.MouseButton1Down:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player, id)
-- I dont know how to make it add cash if they buy
end)

2 comments
Read the wiki on developer products. http://wiki.roblox.com/index.php?title=Developer_product
This may help as well... https://scriptinghelpers.org/questions/27112/how-do-i-use-dev-products#30658