Do you want to have a DevProduct purchase log on your game? I have scripted a DevProduct Purchase Log Webhook Script that I believe will help you! I have made this script simple unlike one I tried out before making this script, which motivated me to make my own.
Requirements
Allow HTTP Requests needs to be turned on.
Enable Studio Access to API Services needs to be turned on.
This script can send the following to your webhook destination:
Player Thumbnail
Player ID
DevProduct ID
Amount Of Currency the DevProduct was sold for (Appears as 0 for test purchases)
Link to the player’s profile (Website)
Display the name of the DevProduct (Have to do manually)
This is how you make it work!
Insert Webhook into the beginning of the script where it says, “Enter Webhook Here” on line 3. (Make sure you are using a proxy server. I use https://hooks.hyra.io/ as my proxy)
Insert the DevProduct ID into where it says “Enter DevProduct ID Here” on line 6.
Put the name of the DevProduct where it says (Enter Product Name Here) on line 15. You can also add two *'s on both sides to make it bolded. Make sure to REMOVE the parenthesis or else it will show up on the embed on the webhook as parenthesis.
Disclaimer: I have not tested this with gamepasses and I learned how to code webhooks only yesterday.
And that’s it! The link to this model will be posted below, along with some previews of the webhook/script! If you catch any bugs flying around, just reply below!
Even if you’re respecting their rate limit policies, you’re already not respecting their webhook request block, so there’s that.
It’s a worthwhile piece of advice to share, because it’s a very common mistake/bad assumption when a lot of people default to Discord as a logging system. There’s a reason they blocked the requests in the first place.
The warning about Discord isn’t a critique against OP necessarily, it’s just something that should be kept in mind.
They just blocked Roblox webhooks themselves, but you’re more than welcome to use your own server to host them, which needs to respect the ratelimits.
Your account is highly unlikely to be deleted, because if you’re only sending a couple of requests a day, that’s 100% abiding by their ratelimit policies. I highly doubt that anyone has gotten their discord account banned because of a webhook.
Roblox developers make resources like this and then wonder why and complain that Discord webhooks don’t work out of the box and they need to use workarounds. A super mystery that is.
FWIW: when it comes to arbitrarily acting on developer products, the best thing to do is to make a function that you can call repeatedly and just pass a few arguments to tailor the data that the function will process. Repetitive code isn’t good practice, so if you end up having more than one product you’ll need to think about how you can avoid repetition where possible.
Any code that doesn’t need to be specific to a product likewise should not be done in an if statement checking the product’s id. You’ll find examples of DataStore purchase history in developer documentation as a point of reference for how you can make a system scale for any number of products without code repetition.
Yea I hate when people use Discord to log things. That is one of the main reasons why Discord banned Roblox servers from sending requests to Discord in the first place.
This is false information. Hyra (the proxy they use) absorbs requests when there are too many. Rate limits are the only problem Discord has. Discord has this feature to use as a resource, so saying that they ban accounts that use webhooks is completely false.
Again, as long as you respect the rate limit (a built-in feature to Hyra), you won’t get banned. Read the official site for more: https://hooks.hyra.io/