<?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: Epic Devs</title>
    <description>The latest articles on DEV Community by Epic Devs (@epic_devs_129f4329a2f4baa).</description>
    <link>https://dev.to/epic_devs_129f4329a2f4baa</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%2F4178881%2Fec9eb852-04a9-4c26-8571-2c45af723fb5.png</url>
      <title>DEV Community: Epic Devs</title>
      <link>https://dev.to/epic_devs_129f4329a2f4baa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/epic_devs_129f4329a2f4baa"/>
    <language>en</language>
    <item>
      <title>Why Stripe Test Mode Lies: A Solo Dev's 36-Hour Payment Infrastructure Trench Warfare</title>
      <dc:creator>Epic Devs</dc:creator>
      <pubDate>Mon, 12 Oct 2026 09:16:46 +0000</pubDate>
      <link>https://dev.to/epic_devs_129f4329a2f4baa/why-stripe-test-mode-lies-a-solo-devs-36-hour-payment-infrastructure-trench-warfare-2k25</link>
      <guid>https://dev.to/epic_devs_129f4329a2f4baa/why-stripe-test-mode-lies-a-solo-devs-36-hour-payment-infrastructure-trench-warfare-2k25</guid>
      <description>&lt;p&gt;Why Stripe Test Mode Lies: A Solo Dev's 36-Hour Payment Infrastructure Trench Warfare&lt;/p&gt;

&lt;p&gt;Hey everyone 👋 I'm Usama. By day, I work as a Project Manager. By night, I'm a solo dev building a Kotlin Multiplatform (KMP) notes app called EpicNotes, targeting the "forgotten combo" of Android phones and MacBooks.&lt;/p&gt;

&lt;p&gt;The tech stack was hard (KMP, Supabase, local-first sync). But the part that actually broke me was &lt;strong&gt;the payment infrastructure.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I thought wiring up Stripe for the Mac app and RevenueCat for the Android app would take a weekend. Instead, I ended up in a 36-hour debug marathon, buying my own subscriptions, refunding them, watching database rows flip, and debugging at 2 AM after a full day of meetings.&lt;/p&gt;

&lt;p&gt;If you are an indie dev about to wire up payments, here are the 3 brutal lessons I learned so you don't have to.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Test Mode is a Sandbox, Not Reality
&lt;/h2&gt;

&lt;p&gt;Stripe and RevenueCat test environments are great for happy paths, but they lie to you in subtle ways. &lt;/p&gt;

&lt;p&gt;During my testing, the Android RevenueCat SDK had a blank API key that nobody noticed until I tried a &lt;em&gt;real&lt;/em&gt; purchase with a real credit card. Test mode was perfectly happy passing simulated webhooks, masking the fact that my Android SDK was essentially flying blind. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; Test with real money. Buy a $2 subscription on your own phone. Refund it. Watch your database. The peace of mind is worth the $2.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Webhook Retries Create "Zombie" Users
&lt;/h2&gt;

&lt;p&gt;Webhooks are not guaranteed to arrive in order, and they will retry if your server takes more than a few seconds to respond. &lt;/p&gt;

&lt;p&gt;I ran into a nightmare scenario where a &lt;code&gt;customer.subscription.updated&lt;/code&gt; event arrived &lt;em&gt;before&lt;/em&gt; the &lt;code&gt;customer.subscription.deleted&lt;/code&gt; event due to network retries. My Supabase database saw the update, flipped the user back to &lt;code&gt;is_pro: true&lt;/code&gt;, and completely ignored the subsequent deletion event. I had accidentally built a system that resurrected cancelled subscriptions into "Zombie Pro Users."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; Never trust the webhook payload blindly. When a webhook arrives, use the &lt;code&gt;subscription_id&lt;/code&gt; to make a direct API call back to Stripe/RevenueCat to fetch the live, current state of the subscription. &lt;/p&gt;

&lt;h2&gt;
  
  
  3. The "Hostage Paywall" Bug
&lt;/h2&gt;

&lt;p&gt;I had a bug where the X button on my Mac paywall wouldn't close the window unless the Stripe checkout session actually finished. If a user opened the paywall and changed their mind, they were trapped. I had to literally force-quit the app to get out. &lt;/p&gt;

&lt;p&gt;It sounds silly, but when you are deep in the weeds of Kotlin Multiplatform UI state and async Stripe callbacks, you lose sight of the basic UX. &lt;/p&gt;

&lt;h2&gt;
  
  
  The Mental Toll of the Side Hustle
&lt;/h2&gt;

&lt;p&gt;Building a dual-platform SaaS on top of a day job is a feature, not a bug—it forces you to be disciplined. But it also means when the webhooks fail, you aren't just losing company time; you're losing your sleep and your time with your family. &lt;/p&gt;

&lt;p&gt;Having a working payment pipe is the most stressful part of the journey, but it's also the moment your hobby officially becomes a business. &lt;/p&gt;

&lt;p&gt;I finally got the Stripe and RevenueCat webhooks fully certified and bulletproof, and EpicNotes officially launched this week. &lt;/p&gt;

&lt;p&gt;If you want to see the result of those 36 hours of trench warfare, you can check out the app here: &lt;a href="https://epicnotes.app" rel="noopener noreferrer"&gt;EpicNotes&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;I'd love to hear from other solo devs: What's the most painful infrastructure you've had to wire yourself? Payment processing? Auth? Let me know in the comments!&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>stripe</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
