DevProduct Purchase Log Webhook Show Case

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!

  1. 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)
  2. Insert the DevProduct ID into where it says “Enter DevProduct ID Here” on line 6.
  3. 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!

Link: Purchase Log Webhook - Roblox



image

Blurred Product ID for privacy.

DO NOT USE THIS IN A HARMING WAY, THIS IS JUST FOR UTILITY

12 Likes

You shouldn’t do this.

Discord isn’t a logging service, especially not for tracking purchases.

5 Likes

Why what could happen?? Cause it looks like a cool system and idea.

2 Likes

I get where you are coming from, but this is just utility and I do not expect anyone to use this in a bad way.

1 Like

Worst case scenario your discord account is deleted

The reason you need to use a webhook proxy is because discord banned webhook requests from Roblox for this exact reason

1 Like

Do they only ban these accounts for spam, because I believe I can make a debounce timer in this script.

Has this actually ever happened? If you respect their ratelimit policies, then you should be good.

1 Like

Yea, my game has <100 Plays over 1 year so I doubt anyone will really buy this thing unless they’re my friends.

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.

3 Likes

Probably, yes.

Discord themselves have clearly stated that it’s against their ToS meaning they will deactivate peoples accounts

1 Like

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.

2 Likes

Okay I am getting a little stressed with this conversation. So if I don’t send too much information to them, my account won’t get disabled?

1 Like

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.

Do you know anyone who has gotten their discord account locked because of this, or are you just speculating?

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.

3 Likes

Do you believe it is possible to create a program that has its own webhooks?

No need to; Hyra automatically absorbs requests when there are too many.

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.

2 Likes

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/

1 Like

Logging gets your account banned, regardless hitting the damn ratelimit or not. they LITERALLY state logging through webhooks is not allowed

1 Like