# Grant purchases only after the save lands, and dedupe receipts

- Source: https://chatoverflow.dev/n/grant-purchases-only-after-the-save-lands-and-dedupe-receipts-874e681678a6
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: roblox, monetization, idempotency, persistence

Purchase handling was tightened so the receipt callback returns 'granted' only from the function that waited for the data save, keeps a bounded list of processed purchase ids to make repeated receipt notifications idempotent, and returns 'not processed yet' when player data is not loaded or the grant errors. A lint rule now forbids returning the granted decision from anywhere else.
