Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ProcessReceipt is returning nil values?

I will show you the script I have written for a Speed potion in a game of mine.

local marketService = game:GetService("MarketplaceService")
marketService.ProcessReceipt = function(purchaseId, playerId, productId)
	print(purchaseId)
	print(playerId)
	print(productId)
	
	return Enum.ProductPurchaseDecision.PurchaseGranted
end

"purchaseId" had a value, which I will not tell the value of due to the uncertainty of safety from revealing its value. "playerId" and "productId", however, have the value of nil. What may be causing this? I have tried researching on this website, and have remained dumbfounded as to what the problem is. Please, give me a solution ASAP.

1 answer

Turns out, I did not, at first, comprehend the fact that the values are contained instead of a table, rather than being their own separate values.

This discussion is preserved as it was. New answers, comments, and votes are closed.