<?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: Alex Mercer</title>
    <description>The latest articles on DEV Community by Alex Mercer (@kreqwaii).</description>
    <link>https://dev.to/kreqwaii</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%2F4259332%2F69d23c68-2539-4f8a-abdb-21c992a5648e.jpg</url>
      <title>DEV Community: Alex Mercer</title>
      <link>https://dev.to/kreqwaii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kreqwaii"/>
    <language>en</language>
    <item>
      <title>Replacing $300/mo Per-Seat Photo Apps: Building a Flat-Rate Before/After Client Gallery on Cloudflare Pages</title>
      <dc:creator>Alex Mercer</dc:creator>
      <pubDate>Sun, 22 Nov 2026 21:34:39 +0000</pubDate>
      <link>https://dev.to/kreqwaii/replacing-300mo-per-seat-photo-apps-building-a-flat-rate-beforeafter-client-gallery-on-44dj</link>
      <guid>https://dev.to/kreqwaii/replacing-300mo-per-seat-photo-apps-building-a-flat-rate-beforeafter-client-gallery-on-44dj</guid>
      <description>&lt;p&gt;Small field service crews have a simple daily workflow: arrive at a job site, snap before photos, finish the work, snap after photos, and send a clean link to the customer so they can see the result and approve the invoice.&lt;/p&gt;

&lt;p&gt;Whether the crew handles auto detailing, pressure washing, residential roofing, or commercial cleaning, the software bill for this workflow has quietly spiraled out of control. Most mainstream job-photo apps price &lt;strong&gt;per seat&lt;/strong&gt;, typically &lt;strong&gt;$29 to $39 per user per month&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For a solo operator, $29/month is tolerable. For a 10-person pressure washing or roofing crew, per-seat pricing turns a basic photo upload tool into a &lt;strong&gt;$290 to $390/month&lt;/strong&gt; recurring tax ($3,480 to $4,680/year). At 15 technicians, you are paying nearly &lt;strong&gt;$585/month&lt;/strong&gt; just so field workers can upload JPEGs from their phones.&lt;/p&gt;

&lt;p&gt;This is a technical breakdown of how I built a flat-rate alternative on &lt;strong&gt;Cloudflare Pages, D1, and KV&lt;/strong&gt; to keep infrastructure costs near zero and replace per-seat pricing with flat team billing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Per-Seat Pricing Breaks for Field Crews
&lt;/h2&gt;

&lt;p&gt;Field service teams have two traits that clash with per-seat SaaS models:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Seasonal and rotating helpers&lt;/strong&gt;: A detailing shop or landscaping crew might have 4 full-time techs and 8 part-time or seasonal workers. Paying $35/month for a helper who works two Saturdays a month makes no sense, so owners start sharing logins, which breaks audit trails and photo attribution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Low compute per user&lt;/strong&gt;: A field tech opens the app twice per job, uploads 6 compressed photos, and closes it. They are not running heavy analytics queries or consuming gigabytes of RAM. Charging $39 per seat has nothing to do with server cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Architecture: Cloudflare Pages + D1 + KV
&lt;/h2&gt;

&lt;p&gt;To offer flat pricing ($7/month solo, $15/month flat for up to 15 team members), the backend has to avoid idle compute charges and egress fees. The Cloudflare stack fits this workload cleanly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare Pages + Pages Functions&lt;/strong&gt;: Serves the mobile-first web app and handles all API routes at the edge with zero idle container costs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare D1 (SQLite at the edge)&lt;/strong&gt;: Stores structured entities (&lt;code&gt;teams&lt;/code&gt;, &lt;code&gt;members&lt;/code&gt;, &lt;code&gt;jobs&lt;/code&gt;, &lt;code&gt;photos&lt;/code&gt;, &lt;code&gt;share_links&lt;/code&gt;). Read-heavy gallery lookups execute in milliseconds with simple indexed queries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare KV&lt;/strong&gt;: Handles fast session tokens, rate limiting, and cached public gallery manifests so client-facing share links do not hammer the database on repeated opens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client-side image compression before upload&lt;/strong&gt;: Before a photo leaves the technician's phone, the browser resizes it to a crisp web resolution (e.g., max 1600px on the longest edge) and encodes it as JPEG/WebP around 180 KB to 300 KB. A 10-photo job takes ~2.5 MB instead of 45 MB of raw iPhone HEIC files, which makes uploads reliable even on weak 4G job-site connections.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Tech Phone (PWA)]
   |-- Client-side resize + JPEG compress (~250 KB/photo)
   v
[Cloudflare Pages Functions]
   |-- Auth &amp;amp; session check (Cloudflare KV)
   |-- Job &amp;amp; photo metadata write (Cloudflare D1)
   |-- Object storage &amp;amp; public share slug generation
   v
[Client Share Link: /g/&amp;lt;slug&amp;gt;]
   |-- Fast mobile Before/After slider + downloadable gallery
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Designing for Wet Hands and Weak Signal
&lt;/h2&gt;

&lt;p&gt;Building for developers on fiber internet is easy. Building for a roofer on a ladder or a detailer with wet gloves requires cutting every unnecessary step:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No mandatory app store install&lt;/strong&gt;: Technicians open a mobile web URL or add it to their home screen. Zero App Store review delays or MDM headaches when a new helper joins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two-tap Before/After tagging&lt;/strong&gt;: Pick the job, tap "Before" or "After", snap photos. No nested folders, no mandatory 12-field CRM forms before you can take a picture.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant client gallery link&lt;/strong&gt;: Every job generates a clean, read-only public URL with side-by-side before/after comparisons. The crew texts the link to the homeowner or fleet manager right from the driveway, with no client login required.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Cost Comparison for a 12-Person Crew
&lt;/h2&gt;

&lt;p&gt;Running on edge primitives changes the pricing math completely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Traditional per-seat photo app (12 seats at $29-$39/user)&lt;/strong&gt;: $348 to $468/month ($4,176 to $5,616/year)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flat-rate edge architecture (up to 15 seats)&lt;/strong&gt;: &lt;strong&gt;$15/month&lt;/strong&gt; ($180/year)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because images are compressed on the client and metadata sits in D1 + KV, adding the 10th or 15th crew member adds fractions of a cent in monthly infrastructure cost. Passing those savings to small businesses is straightforward when you are not carrying bloated legacy cloud bills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Live Demo
&lt;/h2&gt;

&lt;p&gt;The live version of this tool is running at &lt;a href="https://crewproof.pages.dev" rel="noopener noreferrer"&gt;crewproof.pages.dev&lt;/a&gt; ($7/mo solo, $15/mo flat for teams up to 15 people). If you are building SaaS for trades, detailing shops, or local service crews, moving away from per-seat billing and leaning on Cloudflare Pages, D1, and KV lets you price around real customer value instead of penalizing them for hiring help.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>smallbusiness</category>
      <category>saas</category>
      <category>cloudflare</category>
    </item>
    <item>
      <title>Why Banks Reject Automated Chargeback Responses (And How Visa CE 3.0 PDFs Actually Work)</title>
      <dc:creator>Alex Mercer</dc:creator>
      <pubDate>Sun, 22 Nov 2026 21:31:00 +0000</pubDate>
      <link>https://dev.to/kreqwaii/why-banks-reject-automated-chargeback-responses-and-how-visa-ce-30-pdfs-actually-work-3cek</link>
      <guid>https://dev.to/kreqwaii/why-banks-reject-automated-chargeback-responses-and-how-visa-ce-30-pdfs-actually-work-3cek</guid>
      <description>&lt;p&gt;Most merchants who lose a "fraudulent transaction" chargeback assume the card network never looked at their evidence. In practice, an analyst at the issuing bank usually did look at it, for about 90 seconds.&lt;/p&gt;

&lt;p&gt;Issuing bank dispute teams work through strict queues. When a processor submits a 14-page PDF padded with AI-generated cover letters, legal boilerplate, and uncropped full-page screenshots, the reviewer does not read paragraph four. They scan for structured fields that satisfy the card network's reason code rules. If the required proof is buried or missing, the dispute defaults to the cardholder.&lt;/p&gt;

&lt;p&gt;Understanding what banks actually check, and the hard technical limits of payment gateways, makes a bigger difference than writing longer narratives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Long AI Narratives Backfire
&lt;/h2&gt;

&lt;p&gt;Many automated chargeback tools generate multi-page rebuttal essays explaining why the store is trustworthy and why the customer probably forgot about the order. Bank analysts are not evaluating persuasion. They are checking off network-defined evidence fields for a specific reason code, such as Visa 10.4 (Other Fraud - Card-Absent Environment) or Mastercard 4837 (No Cardholder Authorization).&lt;/p&gt;

&lt;p&gt;A dense wall of text slows down verification. A clean two-column summary table on page one, followed by labeled raw logs (AVS/CVV match, IP address, timestamp, delivery confirmation), lets a reviewer verify the case inside their 90-second window.&lt;/p&gt;

&lt;h2&gt;
  
  
  Visa Compelling Evidence 3.0 (Reason Code 10.4)
&lt;/h2&gt;

&lt;p&gt;For merchants dealing with first-party fraud ("friendly fraud") on card-not-present Visa transactions, Visa Compelling Evidence 3.0 (CE 3.0) is the highest-leverage rule available. When all criteria are met, liability shifts away from the merchant under reason code 10.4.&lt;/p&gt;

&lt;p&gt;The technical requirements are strict, and missing even one disqualifies the submission:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Historical transactions&lt;/strong&gt;: You must provide at least &lt;strong&gt;2 prior undisputed transactions&lt;/strong&gt; from the same cardholder / payment method.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Age window&lt;/strong&gt;: Both historical transactions must be settled between &lt;strong&gt;120 and 365 days&lt;/strong&gt; prior to the dispute date. Transactions newer than 120 days or older than 365 days do not qualify.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matching data elements&lt;/strong&gt;: The disputed transaction and both prior undisputed transactions must share at least &lt;strong&gt;2 of the following 4 core elements&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;IP address&lt;/li&gt;
&lt;li&gt;Device ID or device fingerprint&lt;/li&gt;
&lt;li&gt;Account ID (login username or customer ID)&lt;/li&gt;
&lt;li&gt;Shipping address&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mandatory element rule&lt;/strong&gt;: At least &lt;strong&gt;one&lt;/strong&gt; of the two matching elements must be either the &lt;strong&gt;IP address&lt;/strong&gt; or the &lt;strong&gt;Device ID / fingerprint&lt;/strong&gt;. Matching only Account ID and Shipping Address is not sufficient under CE 3.0.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CE 3.0 Eligibility Check (Visa 10.4):
- Prior undisputed orders &amp;gt;= 2
- Settlement age: 120 &amp;lt;= days_before_dispute &amp;lt;= 365
- Matched fields &amp;gt;= 2 from { IP, Device_ID, Account_ID, Shipping_Address }
- Required: (IP matched) OR (Device_ID matched)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your backend logs Stripe PaymentIntent metadata, checkout IPs, and session device hashes, pulling those three rows into a single comparison table on page one of your evidence PDF gives the issuing bank exactly what the Visa rule requires. You can cross-check the exact field requirements across Visa, Mastercard, and Amex on the &lt;a href="https://disputepack.pages.dev/reason-codes" rel="noopener noreferrer"&gt;reason codes reference&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hard Gateway File Limits (Silent Truncation)
&lt;/h2&gt;

&lt;p&gt;Even strong evidence fails when the file hits processor ingestion limits. Payment gateways enforce strict payload ceilings before forwarding documents to the card networks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stripe&lt;/strong&gt;: Maximum &lt;strong&gt;4.5 MB&lt;/strong&gt; total file size and &lt;strong&gt;49 pages&lt;/strong&gt; per evidence PDF (with each individual upload field capped).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shopify Payments&lt;/strong&gt;: Maximum &lt;strong&gt;4.0 MB&lt;/strong&gt; total file size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;High-resolution Retina screenshots exported directly from macOS or order dashboards routinely weigh 1.5 MB to 3 MB per image. Combining four unoptimized screenshots easily crosses the 4.0 MB Shopify limit or the 4.5 MB Stripe limit. Worse, oversized or poorly encoded PDFs can trigger silent truncation, downscaling that makes timestamps unreadable, or flat-out ingestion errors right before the submission deadline.&lt;/p&gt;

&lt;p&gt;Keep evidence packets compact: downsample screenshots to 1200px wide, convert to grayscale or medium-quality JPEG inside the PDF, strip unnecessary email headers, and keep the entire packet under 2 MB and under 10 pages whenever possible.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Math Behind 25% Success-Fee Platforms
&lt;/h2&gt;

&lt;p&gt;Because chargeback rules feel opaque, many e-commerce teams hand disputes over to automated recovery vendors like Chargeflow or Chargeblast. Most of these platforms charge a &lt;strong&gt;20% to 25% success fee&lt;/strong&gt; on every recovered dispute.&lt;/p&gt;

&lt;p&gt;The unit economics break down quickly on medium- and high-ticket orders:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Order Value&lt;/th&gt;
&lt;th&gt;Dispute Fee (Stripe)&lt;/th&gt;
&lt;th&gt;25% Recovery Fee&lt;/th&gt;
&lt;th&gt;Net Cost Just to Keep Your Own Revenue&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;$400&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;td&gt;$115&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$1,500&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$375&lt;/td&gt;
&lt;td&gt;$390&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;$3,200&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$800&lt;/td&gt;
&lt;td&gt;$815&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On a single &lt;strong&gt;$1,500&lt;/strong&gt; dispute, paying a 25% success fee hands over &lt;strong&gt;$375&lt;/strong&gt; for generating a PDF from data that already lives in your own Stripe dashboard and order database. A detailed breakdown of how percentage-based tools compare against in-house flat-cost workflows is documented in this &lt;a href="https://disputepack.pages.dev/chargeflow-alternative" rel="noopener noreferrer"&gt;Chargeflow alternative comparison&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Nothing guarantees a win on every dispute, because final decisions always rest with the issuing bank and card network arbitration rules. Still, compiling a clean, CE 3.0-compliant, under-4 MB PDF does not require handing away a quarter of your order value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Checklist Before You Submit
&lt;/h2&gt;

&lt;p&gt;Before uploading your response to Stripe or Shopify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put a one-page executive table first: reason code, transaction ID, AVS/CVV result, and CE 3.0 match matrix.&lt;/li&gt;
&lt;li&gt;Verify that prior undisputed orders fall strictly inside the &lt;strong&gt;120-365 day&lt;/strong&gt; window.&lt;/li&gt;
&lt;li&gt;Confirm &lt;strong&gt;IP address or Device ID&lt;/strong&gt; matches across all three transactions.&lt;/li&gt;
&lt;li&gt;Check final PDF size (&lt;strong&gt;&amp;lt; 4.0 MB&lt;/strong&gt; for Shopify, &lt;strong&gt;&amp;lt; 4.5 MB&lt;/strong&gt; and &lt;strong&gt;&amp;lt;= 49 pages&lt;/strong&gt; for Stripe).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to assemble a bank-formatted, size-checked evidence PDF directly in your browser without creating an account or paying percentage fees, you can use the open checklist and free browser-based generator at &lt;a href="https://disputepack.pages.dev/builder" rel="noopener noreferrer"&gt;disputepack.pages.dev/builder&lt;/a&gt;. Everything runs client-side, outputs a compact PDF tailored to the reason code, and keeps your order data off third-party servers.&lt;/p&gt;

</description>
      <category>stripe</category>
      <category>ecommerce</category>
      <category>saas</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
