How to allow donators to pay exactly how much they want to pay

This is a really clever solution! My only concern is that an exploiter could create a million dev products by pinging the server with a for loop. Is it possible to protect against that?

1 Like

To be honest, I didn’t really think about rate limits myself. :sweat_smile: I’ll be busy with shool during the week, but I’ll work on rate limitations next weekend!

1 Like

I don’t think this is the best idea to do, first, creating a new developer product is time-consuming, and second, why would you spam your developer products page with hundreds of products that are occupying memory on roblox’s servers.

But gotta respect your work, looks very nice :slight_smile:

I already requested a feature, both for on website and using Roblox’s public API, to delete or archive unused developer products. I’m hoping to hear a response from them sometime soon.

2 Likes

If you play the demo, it’s actually really fast. Also, a few hundred dev products is the least of Roblox’s worries in terms of memory. There are large games that make a new copy of your data every time you play.

1 Like

By the way, if you go above a certain price, the dev product fails. I don’t know precisely what the maximum is but it’s greater than 2^46 and less than 2^47. It also fails if the number has a decimal.

image

1 Like

Thanks for telling me, I’ll also be fixing that next weekend.

1 Like

I have tested the gameplay and it took around 1 minute for the prompt to pop up

1 Like

That’d probably be because the webserver I used in my demo was “asleep”.
If you first “wake it up” by going to http://roblox-donation-api.glitch.me/ping, wait till it finishes “waking up”, and then try donating again it should be much faster.

1 Like

I want to thank everyone who has donated so far. Thanks to all you boys, girls, and enbies our group already earned almost double the amount of robux it already has. Thanks for all the donated robux! :heart:

1 Like

Your tutorial is great for people who already know how to set-up a web server, but it would be even better for those who don’t if you added on to your tutorial with instructions on how to set one up for those who don’t know!

Edit: for context I mean that you should show them how to use a service like glitch to set this up, not just tell them how to setup the system itself on one

2 Likes

So I take it that the server creates a dev product of the amount specified by the user and then it links with the game so that the user can then buy it.

Interesting way of going about it. Very innovative.

1 Like

Bump because I made a small update to this.

The donation doesn’t seem to be popping up.

The github page doesn’t seem to exist? Could you fix this?

Have you tried pinging the webserver? I don’t have paypal or anything similar so unfortunately I’m unable to offer 24/7 uptime.

Unfortunately it seems I cannot recover the original Github repository, a possible explanation for this is someone having forked the repository when I deleted it.

Although I can’t find the original repository on Github, you should be able to still find the code over at glitch.com.

Hello. I don’t know if anyone is gonna even read this, but I want to know how to setup and use the server.js file, because when I open it nothing happens. Thanks.

Alr, I figured out how to fix some stuff from the file server.js, but now when I execute it, it just says “Listening on port undefined”

Is it better if I host it in Replit?