PromptProductPurchase needs a "WasPrompted" return value

As a Roblox developer, it is currently impossible to detect whether a PromptProductPurchase prompt was actually prompted or not. Usually, a PromptProductPurchase doesn’t prompt when the user spams a button that prompts a product purchase. I understand this is a safety feature, but it would be helpful to know if the prompt was actually prompted or not, as it’s essential to my payment processing system.

Currently, I would have to wait an arbitrary amount of time until I can enable the buttons to prevent errors in client-visual data processes. But with this new value, I could check whether this went through and wait for a response from the server, or if it didn’t, I wouldn’t have to wait at all to reenable the buttons.

I hope this makes sense, but it would be very useful in the present and in the future.

4 Likes

Why not always keep the buttons accessible even if the modal is up? Why do you need to change button states to disabled while a modal is active?

I require a response from the server, and without the client be able to interact with the modal, there will be no response from the server, while leaves the client infinitely yielding a response from the server. When I receive this response from the server, I change data around etc.

3 Likes