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

Enum.ProductPurchaseDecision grant later moment?

Asked by 7 years ago

Hello! I'm making a game where the player buys a developer product for a service but as a guarantee, we pay back if we couldn't fixi t. To do this without extra fees, we would like to use the Enum.ProductPurchaseDecision.NotProcessedYet thing. But how do you set it on a later time to Enum.ProductPurchaseDecision.PurchaseGranted?

Would it look like this: Enum.ProductPurchaseDecision.PurchaseGranted(purchaseId)?

Thanks for your help and time, Jonas

0
Pay back as in give back robux? FazNook 61 — 7y

1 answer

Log in to vote
0
Answered by
Vezious 310 Moderation Voter
7 years ago

ProcessReceipt will keep on being called until PurchaseGranted is returned. So if you don't want it to be granted right away, keep returning NotProcessedYet. And somehow tell the script when you want it to be granted, return PurchaseGranted.

0
hmm marketmanager1 52 — 7y
0
? Vezious 310 — 7y
Ad

Answer this question