Super quick question to do with detecting purchase completion

I have two functions, one is PromptPurchaseFinished() and the other is PromptGamePassPurchaseFinished(). My question is, will gamepass purchases be picked up by PromptPurchaseFinished or if not what does this function detect? Thanks

[MarketplaceService | Documentation - Roblox Creator Hub]

I believe it’s for affiliate gear sale or other assets,

The docs say for game passes to use the PromptGamePassPurchaseFinished
and for developer products to use the PromptProductPurchaseFinished

1 Like

Adding onto above, note that PromptGamePassPurchaseFinished and PromptProductPurchaseFinish does not fire when the gamepass/developer product is purchased. It fires when the purchase prompt is closed.

1 Like

PromptProductFinished and other variants of it give the player’s UserId, the ProductId, and a boolean which says whether the player bought it or not. Definitely for developer products and maybe gamepasses (idk what gets picked up by it) I would recommend using MarketplaceService.ProcessReceipt to handle them.

1 Like

Thanks guys, but I was talking about PromptPurchaseFinished, not PromptProductFinished. Basically I need to detect asset sales (Like t shirts) but I need it to NOT detect gamepass sales. I was wondering whether PromptPurchaseFinished does this?

I’m not too sure myself what detects what. You might want to have a look in the documentation, which @MasterPlayerMind linked above.

Edit: I just looked myself and from the descriptions of each you might want to use PromptPurchaseFinished.

1 Like

Yes, PromptPurchaseFinish only fires for asset prompts such as t-shirts. It does not fire for developer products and gamepasses.

1 Like

PromptBundlePurchaseFinished only fires for bundles. You would need to use PromptPurchaseFinished to detect asset sale prompts.

1 Like

I know, I make a typo and corrected it within 10 seconds of doing so… nvm tbh

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.