Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by
karlo_tr10 1233 Moderation Voter
4 years ago

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

0
THANK YOU speedyfox66 237 — 4y
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. karlo_tr10 1233 — 4y
Ad

Answer this question