Developer Product Transactions Not Going Through

Hello Everyone,
This is my first post ever so don’t bully me to much if this is not in the correct “Format”.

First time developer, I just launched my game couple of weeks ago and gotten 45K visits, and with that a bunch of bugs. My biggest one being, failed transactions. Not everyone but a couple of people are having troubles with purchasing Developer Products. Just some people, once they buy and product (A clue for my puzzle game) it just doesn’t give them a clue. But again It works in studio, it works for most players, its just for a couple a player it just doesn’t go through.

This is the script that handles the cluuuues.

MarketplaceService.ProcessReceipt = function(receiptInfo)
	local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
	if not player then
		return Enum.ProductPurchaseDecision.NotProcessedYet
	end
	if player then
	if receiptInfo.ProductId == nil then
	elseif receiptInfo.ProductId == 2699770619 then
		player.Clues.Value += 3
		print("Giving 3 Clue")
		local productInfo = MarketplaceService:GetProductInfo(receiptInfo.ProductId, Enum.InfoType.Product)
		TopDonorsDS:IncrementAsync(player.UserId, productInfo.PriceInRobux)
	elseif receiptInfo.ProductId == 2699770910 then
		player.Clues.Value += 6
		print("Giving 6 Clue")
		local productInfo = MarketplaceService:GetProductInfo(receiptInfo.ProductId, Enum.InfoType.Product)
			TopDonorsDS:IncrementAsync(player.UserId, productInfo.PriceInRobux)
	end
	end
	return Enum.ProductPurchaseDecision.PurchaseGranted
end

If anyone has any ideas or links to a good youtube video that deals with this issue that would be great!

Sorry again if this post is like “wrong” . Love to get feedback on both the script and I guess format of the forum lol.

1 Like

Just to confirm - is there any other script that also handles ProcessReceipt?

Do Ctrl+Shift+F and search for ProcessReceipt

So ye, I got a donation board from the Roblox toolbox, that does Process Receipts. They have a setting to turn off Process Receipts in the script so that’s turned to false. That’s it tho.

(Also thanks for letting me know about crtl+shift+f never knew about that feature)

Fourth time solving the same exact problem, please look here: https://devforum.roblox.com/t/solved-dev-products-only-work-when-handled-through-a-single-callback/3371994/12?u=lava_shield

Right I’m aware that you cant have two scripts running the process receipt info. Like in the settings for the script it literally say “If you have an other script running receipts change to false”. It totally can be lying to me which I can believe but that would be super lame. But your also saying that if I remove the piece of code that has process receipts it should work?

If you remove the other script that handles process receipts, your code should function properly.

Well hopefully it works. Cant tell for certain without some play testing. Thanks again!

So sadly removing that did not create a fix. Still same issue, it works sometimes and sometimes it doesn’t . Its super random…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.