This event fires when the Premium purchase modal closes, specifically when the player presses “Cancel” at the prompt, “OK” at the error message, or after the payment UI closes.
To learn more about and incorporating Premium into your game, and monetizing your game with the Premium Payouts system, take a look at this article.
MarketplaceService/PromptPremiumPurchase, used to prompt a user to purchase Premium
Players/PlayerMembershipChanged, fires when the game server recognizes that a player’s membership has changed
The player who finished the purchase
Handling Premium In-Game Purchases
The function in the code sample runs immediately after the Premium purchase process has been completed.