So, I have been working on a new simulator game currently and have made DevProducts for it like 2k Coins, 5k and so on.
When I try to test the DevProducts by buying in it GUI, it shows something like this:
Error
https://gyazo.com/6d66205970523d6d8bb85e46a60cf790
My script for DevProduct is this:
Script
> local MarketPlace = game:GetService("MarketplaceService")
> local id1 = 1118449208
> local id2 = 1118449571
> local id3 = 1118449660
> local id4 = 1118449892
> local id5 = 1118450005
> id1Reward = 2000
> id2Reward = 5000
> id3Reward = 8000
> id4Reward = 10000
> id5Reward = 20000
>
>
> MarketPlace.ProcessReceipt = function(receiptInfo)
> if receiptInfo.ProductId == id1 then
> local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
> plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + id1Reward
> return Enum.ProductPurchaseDecision.PurchaseGranted
>
> elseif receiptInfo.ProductId == id2 then
> local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
> plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + id2Reward
> return Enum.ProductPurchaseDecision.PurchaseGranted
>
> elseif receiptInfo.ProductId == id3 then
> local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
> plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + id3Reward
> return Enum.ProductPurchaseDecision.PurchaseGranted
>
> elseif receiptInfo.ProductId == id4 then
> local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
> plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + id4Reward
> return Enum.ProductPurchaseDecision.PurchaseGranted
>
> elseif receiptInfo.ProductId == id5 then
> local plr = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
> plr.leaderstats.Coins.Value = plr.leaderstats.Coins.Value + id5Reward
> return Enum.ProductPurchaseDecision.PurchaseGranted
> end
> end
Help would be really appreciated. <3
Feloriss
(Feloriss)
November 18, 2020, 1:55pm
#2
This happened to our game as well and our code was working fine up until yesterday. Something must have happened in Roblox’s receipt processing.
Worst part is that in the live game, players are losing Robux and the products are never granted so we had to shut down purchases. I really hope a Staff member can enlighten us on this issue.
2 Likes
Oh, well it’s not a new thing ROBLOX always has a way to make our lives hard though.
Let me know if it’s fixed for you.
luketeam5
(luketeam5)
November 18, 2020, 1:59pm
#4
Hello, same problem here script worked for long time and now it stopped working. Probbably roblox error
1 Like
Hope ROBLOX fixes this error.
Let me know if it’s fixed for you.
1 Like
Hello, I have a game in development right now, I have added a shop with dev product purchases
It has worked well for 2 months plus.
I am having the same problem, is it roblox end or has there been a change to how the dev products
are handled in the game scripts?
Cheers
1 Like
Well, don’t know still.
Let’s see if it get fixed or else we have to research everything.
See if this link helps you. It’s from the official Roblox.
Feloriss
(Feloriss)
November 18, 2020, 4:30pm
#9
Can someone post this issue in Engine Bugs or a better suited place then Scripting Support?
This needs to be seen by more and I don’t seem to have high enough level to post in there.
2 Likes
waystar69
(waystar)
November 18, 2020, 5:16pm
#10
I’m guessing you are no longer to use ‘elseif’.
I’d do ‘else if’.
Has anyone had any luck fixing this?
I’ve just been through my dev product handler script and changed
all the ‘elseif’ commands to ‘else if’ and its still showing the same ‘text box error’
but no error in the output or dev console.
@Feloriss This Topic needs to be Escalated.
Cheers
It has been raised (Not by me)
check this out
Today I recently tested purchasing a dev product from studio, and was unable to complete the purchase. It only appears to be happening from studio.
I am getting this error and the process receipt event is not firing:
[image]
I created a simple repro place to test this bug, you will have to replace the dev product id with your own:
There is a Script in ServerScriptService and a LocalScript in the StarterPlayerScripts
TestingDevProductBug.rbxl (22.7 KB)
2 Likes