How can I use developer products?

Hi, I’m developer of some random games and met the question. How can I make an script that will do something when you successfully purchased the developer product / unsuccessfully purchased it? Also, how can I bypass the bug that will do something when you bought the first dev product (it added the amount you bought), but then when you successfully bought the 2nd it will do nothing, but when you rejoined and tried again (in another order) it will work for the 2nd dev product, but won’t do anything when you bought the first one?

1 Like

Hi, the documentation page actually explains pretty well how to do this. If you have any further problems please explain it in another way, since I could not figure out the whole issue you where facing.

1 Like

As covered in the documentation (link sent by @TortenSkjold ), you should use MarketplaceService.ProcessReceipt. The documentation gives an awesome example of how it should be used, handling unsuccessful purchases as well.

  • You should return Enum.ProductPurchaseDecision.PurchaseGranted after a successful purchase.
  • You should return Enum.ProductPurchaseDecision.NotProcessedYet for unsuccessful purchases.
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.