[Help] Gamepass Notification

The issue I have is, with DeveloperProducts I can use PromptProductPurchase(Player, ID) and ProductPurchaseDecision, but if I try doing something the same with Gamepasses it doesn’t matter of whichever button the player clicks it still gives the notification. Since even if I do it properly using PromptGamePassPurchaseFinished:Connect() it gives a notification even if I press “Cancel” or “Ok”

DeveloperProduct
(After Checking if its the DeveloperProduct button clicked)
image

Gamepass
(After Checking if its the right Gamepass button clicked)
image

PromptGamePassPurchaseFinished:Connect() fires when a prompt is finished, doesn’t matter if someone bought the gamepass or not.

PromptGamePassPurchaseFinished has the arguments: player, gamepassId, wasPurchased.

You would need to check the wasPurchased argument.