What should I return if payment failed (DevProducts)

Hello!

I recently learned about DevProducts and the MarketplaceService.ProcessReceipt callback and how you have to use Enum.ProductPurchaseDecision.PurchaseGranted to show to ROBLOX that everything went well, but I was wondering, what if my script fails?

What should I return in case of failure?

Thanks,
Mehdi

You return Enum.ProductPurchaseDecision.NotProcessedYet.

1 Like

Thanks! I had returned that, but I wasn’t sure.

Please check the wiki before making threads in the future. This took me less than 15 seconds to find: ProductPurchaseDecision | Documentation - Roblox Creator Hub

4 Likes

I was already returning that, but I wanted to make sure that there wasn’t another function or something.