ProcessReceipt firing twice

Hi! I’m using ProcessReceipt to run product transactions. It works fine on the first try but on the second try it runs process receipt twice. I returned the Enum.ProductPurchaseGranted thing and it printed “RETURNING” and everything. I’m not quite sure what’s wrong.
image

Hello!

I’m unable to understand some of your code as i’m unfamiliar with Knit, but after the “else” in your if statement you’re looping through a table, therefore the code in the loop will run for every key in the table. Could that be the issue?

Hope this helps!

Hey, thanks for the effort, but since I’m returning it should automatically break the loop and return the function.

Are you possibly running HandleProductPurchase twice?