<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Malti G</title>
    <description>The latest articles on DEV Community by Malti G (@maltig).</description>
    <link>https://dev.to/maltig</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4239468%2F1f9fd198-2b35-4f82-b3cb-6853af1825f1.png</url>
      <title>DEV Community: Malti G</title>
      <link>https://dev.to/maltig</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maltig"/>
    <language>en</language>
    <item>
      <title>Google Play quietly refunds purchases you don't acknowledge within 3 days</title>
      <dc:creator>Malti G</dc:creator>
      <pubDate>Wed, 02 Dec 2026 06:23:36 +0000</pubDate>
      <link>https://dev.to/maltig/google-play-quietly-refunds-purchases-you-dont-acknowledge-within-3-days-2d7f</link>
      <guid>https://dev.to/maltig/google-play-quietly-refunds-purchases-you-dont-acknowledge-within-3-days-2d7f</guid>
      <description>&lt;p&gt;Here's a fun one if you sell anything on Android.&lt;/p&gt;

&lt;p&gt;A user buys your subscription. The app unlocks, they're happy, you're happy. Three days later they've lost access, and when you open Play Console the order says "refunded". Nobody asked for a refund. Nobody emailed support. Google just gave the money back.&lt;/p&gt;

&lt;p&gt;What happened: your app never &lt;em&gt;acknowledged&lt;/em&gt; the purchase. Google Play has a rule that every purchase has to be acknowledged within three days, or it gets refunded and revoked automatically. It's there to protect people who paid for something an app never delivered. Fair enough. But if your app is the one that forgets, you find out days later, in production, one confused user at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  "But I do call acknowledgePurchase"
&lt;/h2&gt;

&lt;p&gt;Most apps do. The leak is usually in the paths where that call never runs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You only acknowledge inside &lt;code&gt;onPurchasesUpdated&lt;/code&gt;. If the app crashes or gets killed, or the network drops right after the payment, that callback never finishes and nothing retries it.&lt;/li&gt;
&lt;li&gt;You acknowledge after your server confirms the purchase. Fine, until the server has a bad hour and every purchase in that window is quietly on a three-day timer.&lt;/li&gt;
&lt;li&gt;You skip &lt;code&gt;PENDING&lt;/code&gt; purchases (which is correct, you shouldn't acknowledge those), but then never look at them again. Cash and bank-transfer payments sit in &lt;code&gt;PENDING&lt;/code&gt; for a while. Google's docs say the three-day clock only starts once they flip to &lt;code&gt;PURCHASED&lt;/code&gt;, so you do get time. You just have to come back for them.&lt;/li&gt;
&lt;li&gt;You handle subscriptions and forget one-time products, or the other way round.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to tell if it's happening to you
&lt;/h2&gt;

&lt;p&gt;The quickest check is to log what the device actually owns when the app starts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="n"&gt;billingClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;queryPurchasesAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nc"&gt;QueryPurchasesParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newBuilder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setProductType&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;BillingClient&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ProductType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SUBS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;purchases&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;
    &lt;span class="n"&gt;purchases&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;forEach&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;d&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Ack"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"${it.products} state=${it.purchaseState} acknowledged=${it.isAcknowledged}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do the same with &lt;code&gt;ProductType.INAPP&lt;/code&gt;. Anything showing &lt;code&gt;PURCHASED&lt;/code&gt; with &lt;code&gt;acknowledged=false&lt;/code&gt; is going to be refunded.&lt;/p&gt;

&lt;p&gt;And you don't have to wait three days to test it. For license testers the window is tiny: Google's testing guide says an unacknowledged test purchase is refunded after about 3 minutes. So buy something as a license tester, kill the app before your acknowledge code gets a chance to run, and grab a coffee. If the purchase is gone when you come back, you've found your leak.&lt;/p&gt;

&lt;p&gt;Tomorrow's post is the fix: where to acknowledge so none of these paths can slip.&lt;/p&gt;

&lt;p&gt;If you want the whole checklist in one place now, BillDog has it on their fix page: &lt;a href="https://billdog.io/fixes/google-play/refunded-after-three-days?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=maltig-play-refund-part1" rel="noopener noreferrer"&gt;Google Play refunds purchases after three days&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Sources: &lt;a href="https://developer.android.com/google/play/billing/integrate" rel="noopener noreferrer"&gt;Google Play Billing: integrate&lt;/a&gt; · &lt;a href="https://developer.android.com/google/play/billing/test" rel="noopener noreferrer"&gt;Google Play Billing: test your integration&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I work with the team behind BillDog. Drafted by AI from Google's docs and reviewed before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>kotlin</category>
      <category>googleplay</category>
      <category>abotwrotethis</category>
    </item>
  </channel>
</rss>
