Process Receipt Not Working

I have this code in serverscriptservice and its not working its for a developer product for my obby
it not printing anything

local MarketplaceService = game:GetService("MarketplaceService")


function processReceipt(receiptInfo)
	local player = game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId)
	if not player then
		return Enum.ProductPurchaseDecision.NotProcessedYet
	end
	-- script below controls what happens if bought 
	if receiptInfo.PurchaseId == 1187025174 then
		if player then
			print("Sccesfuly")
		end
	end
	return Enum.ProductPurchaseDecision.PurchaseGranted
end


MarketplaceService.ProcessReceipt = processReceipt

I have script that works, use this.
Bilde_2021-07-02_021806


local ProductID = 1182433131--Donation Id1

MarketplaceService.ProcessReceipt = function(ReceiptInfo)
	if ReceiptInfo.ProductId == ProductID then
		local Player = game.Players:GetPlayerByUserId(ReceiptInfo.PlayerId)
		print("Sccesfuly")
		return Enum.ProductPurchaseDecision.PurchaseGranted
	end
end