All articles
Playbook8 min read

Unity IAP refund events only cover web store payments, so App Store and Google Play refunds are still yours to catch

Unity IAP sends order.refunded for its Direct-to-Consumer web payments, but nothing like it for App Store or Google Play purchases. Here's where a Unity IAP refund from either store really shows up, what a missed one costs a game, and how to revoke it safely.

A developer's desk with a laptop open to a game editor, an Android phone and an iPhone running the same mobile game, and a store receipt, the setup behind a Unity IAP refund

Key takeaways

  • Unity IAP's refund events, order.refunded and order.revoked, are documented for its Direct-to-Consumer payments through Stripe and Coda, where the payment provider is the merchant of record.
  • Unity's own documentation says Unity IAP doesn't automatically revoke entitlements when a refund occurs, even on those Direct-to-Consumer orders.
  • For App Store and Google Play purchases, Unity IAP 5 reports orders as pending, confirmed, deferred or failed, and entitlement as EntitledButNotFinished, EntitledUntilConsumed, FullyEntitled, NotEntitled or Unknown. None of those values means refunded.
  • Unity warns that on Google Play, an offline device with an expired product cache can leave owned purchases out of OnPurchasesFetched, so a missing purchase isn't safe evidence of a refund.
  • Apple sends a REFUND notification to your server for consumable, non-consumable and non-renewing subscription purchases, and says you're responsible for storing, monitoring and acting on each refunded transaction.
  • Google Play reports refunds, cancellations and chargebacks through a voided purchase notification, and its Voided Purchases API covers the past 30 days at up to 6,000 queries a day per app.
  • For Google Play orders placed after August 3, 2026, a chargeback costs the developer the purchase price minus Play's service fee, plus the bank's chargeback fees.

Unity IAP now has a refund event, and it probably isn't the one you need. Unity documents order.refunded and order.revoked for Direct-to-Consumer payments, the web checkout it runs through Stripe and Coda. A refunded gem pack or season pass bought through the App Store or Google Play gets no equivalent. So a Unity IAP refund from either store reaches your server, or it reaches nothing and the player keeps what they bought.

The split makes sense once you ask who holds the money. On D2C orders the payment provider is the merchant of record, and Unity relays its events to you. On store orders, Apple and Google are the merchants, and they send refund news to the backend you registered with them. A client SDK running inside your game isn't on that list.

What Unity IAP 5 reports about a store purchase

Unity IAP 5 replaced the old ProcessPurchase callback with events. New purchases arrive through OnPurchasePending, restored ones through OnPurchasesFetched, and CheckEntitlement answers for one product at a time. Version 5 also moved Apple devices to StoreKit 2. Here's everything those calls can tell you, according to Unity's documentation.

What you callWhat it gives youA refunded value?
OnPurchasePendingA PendingOrder for a new or unconfirmed purchaseNo
OnPurchasesFetchedOrders holding the deferred, pending and confirmed orders the store returnedNo. A refunded purchase can only be absent
OnPurchaseConfirmedA ConfirmedOrder or a FailedOrderNo
CheckEntitlementEntitledButNotFinished, EntitledUntilConsumed, FullyEntitled, NotEntitled or UnknownNo. NotEntitled doesn't say why
order.refunded, order.revokedWebhook events for Direct-to-Consumer ordersYes, for D2C payments only

Why does my Unity game still say a refunded item is owned?

Because the game reads purchases from the device, and the device can be behind the store. A developer on Unity's forums put it plainly in July 2023, on the older v4 API: "I refunded a product over month ago and still product.hasReceipt is true." Version 5 dropped hasReceipt. It didn't change where the answer comes from.

Can I treat a missing purchase as a refund?

No, and Unity says so itself. On Google Play, FetchPurchases() can only restore a purchase it can match to product details fetched from the network. If the device is offline and Google Play's local product cache has expired, owned purchases are left out of OnPurchasesFetched, and the only trace is a console warning. Unity's guide is direct: don't treat an empty or partial result as confirmation that the player has no entitlements. Revoke on absence and you'll strip a paying player who opened your game on a train. Keep access on absence and refunded players keep everything. The client can't tell the two apart.

What about consumables like gems and coins?

The device can't see those refunds at all. Unity's purchases guide says stores don't return consumables that have already been fulfilled, and tells you to persist consumable rewards remotely. Apple's refund documentation names this exact case, gems or coins for games, and suggests currency-rebalancing logic on your server that links each refund notification to a player account.

Where a Unity IAP refund actually shows up

Here's every place a refund can surface for a Unity game, and whether it works while the game is closed. For most players, most of the time, it is.

SignalPayment typeReachesWorks while the game is closedCovers consumables
order.refunded, order.revokedUnity D2C web paymentsYour backendYesYes
REFUND notification, App Store Server NotificationsAppleYour serverYesYes
Voided purchase notification, Real-time developer notificationsGoogle PlayYour serverYesYes
Voided Purchases API, past 30 daysGoogle PlayYour server, on a scheduleYesYes
Purchase missing from OnPurchasesFetchedBoth storesGame codeNoNo

What a missed refund costs a game in money

The store takes your proceeds back whether you notice or not. The real cost of a missed refund is what the player keeps using after the money's gone, and in an online game that usually means metered infrastructure.

Take a hypothetical multiplayer game built in Unity that sells a $9.99 season pass on both stores. The pass unlocks ranked matches on dedicated servers, and assume hosting costs you about $0.04 per player-hour. A refunded player who keeps the pass and plays two hours a day runs up roughly $2.40 a month in server time. That bill keeps coming for as long as the pass works, from someone who paid nothing.

Google Play adds a sharper line. For orders placed after August 3, 2026, Google says a chargeback costs the developer the purchase price minus Play's service fee, plus the chargeback fees charged by the bank. On that $9.99 pass at a 15% service fee, you lose about $8.49 plus the bank's fee. Chargebacks are bank-final, so a lost one doesn't come back.

Cost lineRefund caught by your serverRefund missed by the game
Store proceedsTaken back by the storeTaken back by the store
Dedicated server time at 2 hours a dayStops at the refundAbout $2.40 a month, open-ended
Gems already spentRebalanced, or the account flaggedKept, with no record
Google Play chargeback, orders after August 3, 2026Price minus Play's fee, plus bank feesThe same, plus every cost above

How to catch a Unity IAP refund

None of this means leaving Unity IAP. It means giving one backend the final say on a single question: does this player still own this item?

Send every order to your server before granting it

  • In OnPurchasePending, send the order to your backend, grant the item from the server's answer, then call ConfirmPurchase. On Apple, Unity IAP 5 exposes Order.Info.Apple.jwsRepresentation, a signed StoreKit 2 transaction your server can check with the App Store Server API.
  • Store each Apple transaction ID and each Google purchase token against the player's account. Both stores' refund signals name the purchase, not your player.
  • Confirm promptly. Google says a purchase must be acknowledged within three days so it isn't automatically refunded and the entitlement revoked, and Unity's guide repeats the warning.

Turn on both stores' server notifications

  • Point App Store Server Notifications V2 at your server and treat REFUND as a revocation of that transaction.
  • Connect Google Play's Real-time developer notifications to a Pub/Sub topic your server reads, and handle voidedPurchaseNotification. Its refundType separates a full refund from a quantity-based partial refund on a multi-quantity purchase.
  • Run the Voided Purchases API on a schedule as a safety net. Google says to use it alongside Real-time developer notifications, not instead of them.
A server room aisle with one amber light among blue ones and a phone showing a mobile game store screen, the backend that catches App Store and Google Play refunds for a Unity game

Let the server decide what the player owns

On launch, ask your backend for the player's entitlements and let that answer overrule the device. Use OnPurchasesFetched to pick up purchases the server hasn't seen yet, never to take things away. If the server says a purchase was refunded, remove it and tell the player why. Apple asks developers to inform customers in the app of any action taken because of a refund.

If you also sell through Unity's D2C checkout

Handle order.refunded yourself, because Unity doesn't revoke on a refund. On a full refund, where refundedMicros equals totalMicros, revoke in your own system and then set the order to revoked. On a partial refund, set revoked only if you mean to take back the whole purchase, since a revoked order can't move to another status. When a dispute closes in the player's favor, Unity revokes the order itself and sends order.revoked. Make sure anything you granted in your own systems, like soft currency, comes off too.

Which store refunds can a game developer fight?

Two, and neither runs through Unity. Apple sends a CONSUMPTION_REQUEST to your server when a customer asks for a refund on certain purchases, and you have 12 hours to answer with consumption data. Google Play asks for your side only in a chargeback review, through a PendingRefundReviewNotification you answer with orders.reviewrefund within 24 hours. Everything else, the 48-hour Play self-service refund, refunds granted by Apple or Google support, voided purchases and the automatic refund of a purchase left unacknowledged, is decided without you. For those, your only lever is the one above: notice the refund, and take the item back.

Frequently asked questions

Does Unity IAP tell you when a purchase is refunded?
Only for Unity's Direct-to-Consumer payments, which send order.refunded and order.revoked webhook events. For App Store and Google Play purchases, Unity IAP 5 has no refunded order type or entitlement status, so refunds have to come from Apple's and Google's server notifications.
Why does my Unity game still unlock an item after a refund?
Usually because the game grants items from what the device reports and never takes them away. A refunded store purchase simply stops appearing, and Unity warns that purchases can also go missing when a Google Play device is offline, so the client can't safely revoke anything on its own.
How do I detect a Google Play refund in a Unity game?
On your server. Subscribe to Google Play's Real-time developer notifications and handle the voided purchase notification, which names the purchase token and order ID. Then run the Voided Purchases API on a schedule, which lists refunds, cancellations and chargebacks from the past 30 days.
How do I detect an App Store refund in a Unity game?
Point App Store Server Notifications V2 at your server and handle the REFUND notification, which Apple sends for consumable, non-consumable and non-renewing subscription purchases. Map each transaction to a player account when the purchase first reaches your server, so the refund can be applied to the right player.
Does Unity IAP revoke a D2C purchase automatically after a refund?
No. Unity's documentation says Unity IAP doesn't automatically revoke entitlements when a refund occurs. After a full refund you set the order to revoked yourself. Unity revokes automatically only when a dispute closes in the player's favor.

Sources and further reading

RefundHalt

The refund autopilot for the App Store and Google Play

Keep reading

The next refund request is already on its way.

Set up RefundHalt in the time it takes to read another support email about a refund you didn't get to contest.