-------------------Question-------------------
I already did a quick search and I found no documentation on
Enum.ProductPurchaseDecision.NotProcessedYet
Enum.ProductPurchaseDecision.PurchaseGranted
My question is what happens when the Player leaves the game and re-enter?
There is no documentation on “Enum.ProductPurchaseDecision.NotProcessedYet” Behaviour as I already mentioned I think that it would be useful if more information can be provided.
I have no problem with the current Behaviour nor my scripts are broken because of this however I want to know if there is a way to Cancel the purchase?
Also found a similar thread back in the year 2016 (It’s a feature request)
-------------------Testing That I Have Been Doing------------------
DP = DevProduct
Results in the Output
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(80065e26a9a26af98c4113d4c0576f4f) Price:80 "NotProcessedYet" >:( (x2)
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(94ff4079b355c28aed2330dd5bcb65f5) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(80065e26a9a26af98c4113d4c0576f4f) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(94ff4079b355c28aed2330dd5bcb65f5) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(83e504802b26a36727e003a25761a953) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(80065e26a9a26af98c4113d4c0576f4f) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(94ff4079b355c28aed2330dd5bcb65f5) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(83e504802b26a36727e003a25761a953) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(6de5220d0a4b64fb55c6113bdbc45d99) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(80065e26a9a26af98c4113d4c0576f4f) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(94ff4079b355c28aed2330dd5bcb65f5) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(83e504802b26a36727e003a25761a953) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(6de5220d0a4b64fb55c6113bdbc45d99) Price:80 "NotProcessedYet" >:(
TestService: RuizuKun_Dev - 1 - Jack In The Box DevProId:(146144776) PurchaseId:(fe099fdbc4d7774a7e4f2b15611c2ffc) Price:80 "NotProcessedYet" >:(
The result was it will try to repurchase the DP until
“Enum.ProductPurchaseDecision.PurchaseGranted”
is returned if the player tries to purchase the DP again
That’s good because the game will automatically retry the purchase for the player, I understand why this Behaviour is important, because it’s okay if the Player gets x2 or x3 the amount of money for
only 1 purchase, it’s better to give them more than giving them nothing at all.
-------------------Use Case--------------------
I am working on a DP system that sells In-Game Items,
I have many prices for them as well, Godly 800R$, Ultimate 400R$, Legendary 250R$, etc
I know how to handle the purchases, that’s easy the hard part is dealing with Exploiters
but the problem is you can’t cancel the purchase, now I am not sure what will happen next if the Exploiter tries to do this again.
I can use a RemoteFunction for this too and then return the Item that the player selected but the it’s same problem, Exploiters can return a 800R$ item while buying a 50R$ item.
Does anyone have a cleaver solution for this?