Mock purchases in games

As a Roblox developer, it is currently too hard to make mock purchases in games. Personally I have struggled a little about this in the past as well. We should have an API to start a mock purchase from server to a player.

If this issue is addressed, it would improve my development experience because on pre-release/testing places we can have testers test Game Passes and Developer Products, and have admins quickly debug items without needing any admin-command like features.

API which I think be great to add;
MarketplaceService:SetPlayerIsMocking(player, boolean)

4 Likes

I thought “buying” any asset from the Studio marks it as a test-purchase?

This post requests that feature for in-game, so testers etc. could use it

4 Likes

I hope that roblox makes it so you cant exploit it on clientside because i can already imagine exploiters using that to get free gamepasses without paying any robux (aka serverside only feature)

I mean ideally just check if player has permissions to mock purchase on the server and you’ll be fine

Of course i would never leave my Admin remote without sanity checks

what I meant is that exploiter would probably try doing MarketplaceService:SetPlayerIsMocking(player, boolean) on clientside and then (for example) roblox forgot to secure it and it actually replicated to the server and now the exploiter got free gamepass

Edit: well that would never work because of filtering enabled (could have thinked twice before replying…)