How to Prevent Game Pass Purchases from Completing

Is there a way to process game pass purchases like dev products?

2 Likes

what do you mean, add more detail.

1 Like

If a certain condition is not met, it would then result in an error saying the purchase could not be completed.

1 Like

https://developer.roblox.com/en-us/api-reference/event/MarketplaceService/PromptGamePassPurchaseFinished

and use a else statement if it isn’t

I am aware of this functionality of game passes. What I am looking for is to cancel the purchase all together. With dev products, I can return false if a condition is not true to cancel the transaction.

1 Like

you can have an if statement before you prompt the gamepass purchase, to check if they meet the ‘conditions’

1 Like

But what if these conditions arise while they have the prompt open. They could open the prompt, wait 30 minutes, and then click purchase.

1 Like

yeah idk what you mean man, i’ma dip now good luckn