A better "alternative" for "MarketPlaceService.ProcessReceipt"!

If you see that when you use MarketPlaceService.ProcessReceipt not working, use this alternative:

local MarketplaceService = game:GetService('MarketplaceService')
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(Player, PassId, IsPurchased)
    if IsPurchased  then
        if PassId == 20929293 then -- Change "20929293" with the actual gamepass id that you need
            -- SCRIPT TO GENERATE POINTS OR ANOTHER THING HERE --
         end

    end

end)

3 Likes

Isn’t ProcessReceipt only for DevProducts?

1 Like

oh yeah, for products you use MarketplaceService.PromptProductPurchaseFinished as a better alternative cus for me processreceipt didn’t worked

1 Like

MarketplaceService.PromptProductPurchaseFinished just says that the Dev Product UI was closed, not confirming if the user bought it

1 Like

MarketplaceService.ProcessReceipt won’t work for gamespasses for a reason, BECAUSE it’s only for Developer Products

1 Like

the IsPurchased thingy after :Connect(function() says if the player purchased is True the script for the points will fire, i learned it from another script when i was new in roblox studio

The script works, just it wouldn’t be an alternative to .ProcessReceipt


Also, this shouldn’t be in Help and Feedback.

and seeing your image, processreceipt only works for products, not for gamepass, and yeah, i “confused” ( i don’t know the correct word ) it with “Comunity tutorials” and i didn’t know in which category i should put this

1 Like

community tutorials is the correct for me, this one should be for questions (the category i put this)

I will be using your script though, it seems very good!

1 Like

Not really a tutorial (it doesn’t go in depth)

1 Like

oh true. + sorry if i put solution by accident.

1 Like

You use ProcessReceipt and return a special enum to confirm that player got thier reward.

4 Likes

This is a terrible idea. Do not do this. ProcessReceipt is designed to rerun until you confirm the user has received what they purchased. If you use the method from the OP, there will be cases where users never receive what they purchased.

If ProcessReceipt does not work for you then you are doing something wrong.

8 Likes

tell me where you got it

  • got stressed for 5 days cus of u but ok =/

  • i’m not being rude

  • i cannot put u as solution cus i did before by accident