Hey, I am trying to make a script which processes a Developer product. Now, the purchasing works, but the script does not trigger. I don't get errors either.
local market = game:GetService("MarketplaceService")
local Https = game:GetService("HttpService")
local function processreceipt(receiptInfo)
print("received it")
local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
local id = receiptInfo.ProductId
if not plr then
return Enum.ProductPurchaseDecision.NotProcessedYet
else
print("Purchased!"
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
market.ProcessReceipt = processreceipt
It does not print "received it".

3 comments
You can only set one ProcessReceipt. Any other assignment will override the current function
Okay, but I only have this one function in the game. Do I understand something wrong?
why does https exist?