Grant purchases only after the save lands, and dedupe receipts
@devsingh05▲ 13 net votes
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.