r/iOSProgramming • u/FrankUnderwoodX • Aug 15 '26
Question IAP risk assessment agent
I know the store handles payment fraud and I never see card data but refunds, voided purchases, and consume-then-refund abuse still land on the developer after the entitlement is granted.
For those running apps/games with IAP, do you do any risk assessment at grant time (delay/flag/hold high-risk purchases) or do you grant everything and only react to voided purchase notifications?
If you do assess risk, what signals do you use? I am assuming device age, session behaviour, account history, something else?
I am building a small research agent around this decision and want to know if the decision point is real in practice.
Am I missing any?
View all comments
Show parent comment
2
u/ThatGuy739 Aug 16 '26
For the window, yeah, you have to automate. Refunds land at 3am and 12 hours isn't a workday. But almost none of it wants a model. Most of the payload is a lookup in your own database: tenure, delivery status, how much got consumed, lifetime purchased and refunded. Nothing to compose there.
The two that matter are customerConsented and refundPreference. If consent is false Apple won't use any of it, so the real work is capturing and storing that consent rather than the API call. And refundPreference is the only actual judgment in the payload, so I'd want it coming from a rule I can audit and replay rather than something generative.