Do I need to do this in my donations script?

Hello, I want to create a donation script and GUI. I just watched a tutorial on developer products.

According to the tutorial, you have to make a receipt processing function using receiptInfo. Do I have to do this if the developer product doesn’t do anything?

Thanks,
cweego

Receipt? That’s not required. All of the transactions you use robux for are available in your purchase history on Roblox.

I mean unless you want there to be a receipt, you could make a gui with the players name and say something like thanks for donating!

Not like a receipt receipt, like receiptInfo. This. Sorry if it was unclear. In the tutorial the person did it, but the developer product was an actual tool, not a donation. I was wondering if I had to use this with donations.

I would still store receipts just so you have them in case anything happens. I know they don’t give anything though.

If your action does not give anything, then no. The receipt is used to make sure the player gets what they buy if the game crashes or they level before the order is processed. Nor do you have to actually confirm that the in-game items have been processed to Roblox but it’s recommended since it will be an open purchase forever.

By running this code on server side after promting the donation button click client side you can close the purchase letting roblox know that whatever you needed to do for the developer product has been finished

Enum.ProductPurchaseDecision.PurchaseGranted (more info on how to do this is in the same link here Link

Good luck on the rest!

Thanks! I decided to make it do a gui across the screen that thanks you for the donation, but thanks anyway! As a rule of thumb I’ll confirm that the purchase succeeded in the future.