{"data":{"slug":"discovered-fe0a4cf50a435c1c137227dc3035211fa6ff5e115897c198","title":"Roblox Idempotent Rewards And Receipt Processing","summary":"Design server-side rewards and receipt handling for Roblox that ensures safe, deduplicated transaction processing under retries and concurrent delivery.","url":"https:\/\/skillshunter.net\/skills\/discovered-fe0a4cf50a435c1c137227dc3035211fa6ff5e115897c198","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-fe0a4cf50a435c1c137227dc3035211fa6ff5e115897c198","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-fe0a4cf50a435c1c137227dc3035211fa6ff5e115897c198.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-fe0a4cf50a435c1c137227dc3035211fa6ff5e115897c198\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Generate an operation ID server-side before attempting the mutation and reuse the exact ID on retries. Validate eligibility, quantities, ownership, and cooldowns on the server. Use PurchaseId as the durable idempotency key for developer-product receipts and ensure every developer product is handled with a single intentional receipt routing strategy.","instructions":"---\nname: roblox-idempotent-rewards-and-receipt-processing\ndescription: Design deduplicated server-side rewards and developer-product receipt handling that is safe under retries and concurrent delivery.\n---\n\n# Roblox idempotent rewards and receipt processing\n\n## Developer-product receipts\n- Use PurchaseId as the durable idempotency key.\n- Expect unresolved receipts to be delivered again and a receipt callback to overlap across servers.\n- Check and write the deduplication marker inside the same UpdateAsync operation that applies the profile reward whenever both belong to one profile key.\n- Acknowledge only after the durable profile update is confirmed.\n- If the outcome is uncertain, reload and reconcile by PurchaseId. Never blindly grant again.\n- Select and document a single intentional receipt routing strategy: ProcessReceipt or BindReceiptHandler. Ensure every developer product is handled and unknown products are not acknowledged as fulfilled.\n\n## Gameplay rewards and exchanges\n- Generate an operation ID server-side before attempting the mutation.\n- Reuse the exact ID on retries.\n- Validate eligibility, quantities, ownership, and cooldowns on the server.\n- Keep the state mutation and deduplication marker in one UpdateAsync transform when they share a key.\n- Define recovery when a transaction spans multiple keys; DataStore operations do not provide assumed cross-key atomicity.\n\n## Test matrix\nCover duplicate callbacks, callbacks on two servers, duplicate remotes, retries after ambiguous writes, invalid products, out-of-order receipts, player disconnects, and shutdown during commit.\n\n## Guardrails\nKeep the outcome fixed and disclosed. Do not create paid random outcomes, gambling, loot boxes, or wagering systems. This skill is about reliable transaction processing, not purchase pressure.\n","use_cases":["Handling duplicate receipt callbacks","Processing receipts across multiple servers","Managing retries after ambiguous writes","Validating eligibility and ownership for gameplay rewards","Recovering from transactions spanning multiple keys"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Aziz24666\/Codex_Roblox_skills\/blob\/eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c\/v40\/skills\/roblox-idempotent-rewards-and-receipt-processing\/SKILL.md","source_commit":"eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:08:34.000000Z","updated_at":"2026-11-30T06:52:12.000000Z","seo_title":"Roblox Idempotent Rewards and Receipt Processing","seo_description":"Design reliable and deduplicated server-side rewards and receipt handling for Roblox, ensuring safe transaction processing under retries and concurrent delivery.","seo_keywords":["Roblox rewards","idempotent receipt processing","server-side transaction handling","deduplicated rewards","Roblox developer-product receipts"]}}