We recently found a bug that when a player cancels a prompt purchase dialog, PromptPurchaseFinished and PromptGamePassPurchaseFinished event will not be fired.
This will be fixed in next week’s release.
Please make sure to check the third parameter of the event callback function.