Help With Script For Donation Board


local donation = 1157240824
local service = game:GetService('MarketplaceService')

--Code

function onClicked(plr)
	service:PromptProductPurchase(plr, donation)
end

local function processReceipt(receiptInfo)
	print(receiptInfo)
end


script.Parent.ClickDetector.MouseClick:Connect(onClicked)

service.PromptProductPurchaseFinished:Connect(function(player, assetId, isPurchased)
	if isPurchased then
		processReceipt()
		print("Purchased.")
		return Enum.ProductPurchaseDecision.PurchaseGranted
	else
		print("Didn't purchase.")
	end
end)

Should it be looking like this? I saw the receipt thing is labeled important so I want to make sure I don’t mess it up if it is important.