Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can you check if a purchase was successful? (Prompt)

I wanted to know how to check (or see) if a prompt purchase is successful (the user successfully buying "said item") with code?

UPDATE: I found how to get the receipt but I don't know how to check it.

example.ProcessReceipt = function(receiptInfo) 

Thanks!

1 answer

✓ Accepted answer

Alberto he didn't request script, that means he didn't break any rule. In this case you can use PromptPurchaseFinished to catch when player has bought it. Reference: https://developer.roblox.com/en-us/api-reference/event/MarketplaceService/PromptPurchaseFinished

2 comments

0

THANK YOU

1

No problem, keep in mind that that event will return the assed id then you have to compare it to assetid of your devproduct/gamepass.

This discussion is preserved as it was. New answers, comments, and votes are closed.