Is it possible to see if a player has canceled a developer product purchase?

I’m working on a product shop, and I want the items to “close” when one item is clicked. I have that all set up, I also know how to check if the player has purchased the product. Is there an event or function that gets fired when the player cancels out of the prompt?

Thanks.

For Dev Products you should use PromptPurchaseFinished and for gamepasses PromptGamePassPurchaseFinished. They both will give you a “wasPurchased” bool which you can check if they pressed cancel or confirm.

2 Likes

The third parameter of PromptProductPurchaseFinished tells you whether a player successfully purchased a product or not after closing a prompt. DO NOT USE THIS TO PROCESS PURCHASES THOUGH. Only use it to determine what should happen when a player closes a product prompt.

2 Likes

Oh. So that’s what that means, alright. Thank you