#Dev products

1 messages · Page 1 of 1 (latest)

hearty pier
#

Can I have some assistance on how to properly handle and prompt dev product purchases? Like how do you detect if a user purchases a product? Thanks so much!

quartz ivy
#

Marketplaceservice.ProcessReceipt = function(info)
--Inside here just award player with what they bought.
end
This automatically gets called when someone buys something

#

And u must return a decision
either
Enum.ProductPurchaseDecision.PurchaseGranted
or
Enum.ProductPurchaseDecision.NotProcessedYet

#

btw info here is a table that contains playerId, ProductId, CurrencySpent, PurchaseId, PlaceIdWherePurchased