Refunds, disputes & tax

Handle full and partial refunds cleanly, prevent costly chargebacks, enable automated sales tax or VAT, and understand how Stripe bank payouts settle.

How refunds work in Stripe and your Cloud database

Every real online business issues refunds eventually — a client cancels within your studio's 24-hour window, a parcel arrives damaged, or a subscriber forgot to cancel before renewal. Handling refunds cleanly builds long-term brand trust and prevents expensive bank disputes.

Keep one accounting rule sacred in your Cloud database: never delete an order, booking, or invoice row when you issue a refund. Instead, preserve the original record and update explicit refund columns (status, amount_refunded_cents, refunded_at, refund_reason) so your revenue reports and tax exports always reconcile to the cent.

When you issue a refund through Stripe:

  • Customer timeline: Stripe submits the refund immediately; cardholders typically see the credit on their bank statement within 5 to 10 business days.
  • Processing fees: ExaSpark charges a 0% platform fee on all payments and refunds. Note that Stripe generally does not return Stripe's original card processing fee when a charge is refunded — check Stripe's current pricing schedule for your country.

Keeping Cloud order and access states aligned via webhooks

You can issue full or partial refunds from your Stripe Dashboard or from an admin-only Issue refund control inside your app. Either way, listen for Stripe's charge.refunded webhook so your Cloud database updates identically no matter where the refund originated.

Define your exact post-refund business rule explicitly by product type so partial goodwill credits never accidentally lock out paying customers:

Product modelFull refund (`amount_refunded == amount`)Partial refund (`amount_refunded < amount`)
SaaS or membershipMark invoice refunded, cancel active Stripe subscription, downgrade tier to FreeMark invoice partially_refunded; keep subscription active (goodwill credit)
Studio or service bookingMark booking canceled and refunded; release calendar slot if date is still in the futureMark partially_refunded (e.g., partial service adjustment); preserve booking history
Online storefrontMark order refunded; do not auto-restock damaged goods until admin confirms return conditionMark order partially_refunded (e.g., shipping fee or single damaged item refunded)

Store cumulative refunded cents rather than a simple boolean so issuing two $10 partial refunds on a $30 order computes amount_refunded_cents = 2000 (partially_refunded) accurately:

json
{
  "order_id": "ord_1042",
  "total_cents": 6800,
  "amount_refunded_cents": 2200,
  "status": "partially_refunded",
  "stripe_charge_id": "ch_3Q9aK1Example",
  "refunded_at": "2026-11-22T15:40:00Z",
  "refund_reason": "Damaged mug replaced via partial refund"
}

Preventing chargebacks and responding to disputes

A dispute (or chargeback) occurs when a customer calls their card issuer to reverse a charge instead of contacting you. When a dispute opens, the card network immediately pulls the disputed amount from your Stripe balance and Stripe assesses a dispute fee (typically $15 in the US) while the bank reviews evidence.

Five habits that prevent most chargebacks

Most disputes stem from confusion rather than fraud. Put these five protections in place before launching Live traffic:

ProtectionWhy it prevents disputesWhere to configure it
Clear card statement descriptorCardholders recognize your public app or studio name instead of an unfamiliar LLCStripe Dashboard → Settings → Public details
Instant branded receiptsBuyers get immediate proof of purchase with items, amount, and real Reply-To support emailTransactional email flows
3-day trial conversion alertEliminates "I forgot the free trial ended" bank reversalsStripe customer.subscription.trial_will_end webhook
Self-serve Customer PortalFrustrated subscribers cancel in two clicks instead of calling their bankSubscriptions & proration
Plain refund & deposit termsVisible cancellation cutoff right next to the Pay button establishes clear consentCheckout summary & confirmation email

Handling `charge.dispute.created` promptly

Listen for Stripe's charge.dispute.created webhook to flag the order (dispute_status = 'needs_response') and alert your admin inbox immediately.

Banks enforce strict response deadlines (often 7 to 21 days). In Stripe Dashboard, upload concise evidence — email logs, shipping delivery proof, sign-in timestamps, and your visible refund policy — or accept the dispute quickly when valid.

Collecting sales tax, VAT, and GST with Stripe Tax

Selling subscriptions, digital downloads, or physical goods can trigger US state sales tax, EU/UK VAT, or regional GST once you register or pass local thresholds. (This section covers technical setup — consult an accountant for local registration rules.)

Rather than hand-coding regional tax tables, enable Stripe Tax inside your Stripe Dashboard:

  • Configure origin and registrations. Set your headquarters address, default product tax code (SaaS, digital goods, or retail), and active registrations in Stripe.
  • Enable automatic calculation. Pass automatic_tax: { enabled: true } and address collection on your server Checkout Session creator.
  • Collect B2B VAT/GST IDs. Add tax_id_collection: { enabled: true } so business buyers enter tax IDs for reverse-charge invoices.
  • Record tax separately in Cloud. Save subtotal_cents, tax_cents, and total_cents as separate integer columns from verified webhooks.

Understanding Stripe payout schedules and reserves

Customer payments settle into your own Stripe account and pay out straight to your bank — ExaSpark never holds your customer revenue.

  • First payout delay: New Stripe accounts commonly see a 7-to-14-day hold on their very first payout for standard banking verification.
  • Rolling payouts: Afterward, Stripe transfers balances automatically on your regional cadence (typically 2 business days in the US/Australia, or 3 to 7 business days in much of Europe).
  • Refund deductions: Refunds and disputes deduct from your pending Stripe balance first before adjusting linked bank transfers.
  1. Set a recognizable statement descriptor

    Use your public brand name and support URL inside Stripe business settings.

  2. Build an admin-only refund route

    Verify session.user.role === 'admin', call the Stripe Refunds API with an idempotency key, and record refund_reason.

  3. Wire refund and dispute webhooks

    Handle charge.refunded and charge.dispute.created so Cloud stays accurate even for refunds issued in Stripe Dashboard.

  4. Enable Stripe Tax if needed

    Configure tax registrations in Stripe, turn on automatic_tax, and persist subtotal_cents and tax_cents.

  5. Run a live `$1` smoke test and refund it

    Complete one real personal-card order after Publish, refund it in Stripe, and verify your Live row flips to refunded.

Starter prompt · App

Add refund, dispute, and tax tracking to our Stripe flow: (1) Store `subtotal_cents`, `tax_cents`, `total_cents`, `amount_refunded_cents`, `refunded_at`, `refund_reason`, and `dispute_status` on `orders` without deleting rows; (2) Enable `automatic_tax` and `tax_id_collection` on Checkout Sessions; (3) Add an admin-only full/partial refund modal checking `role === 'admin'` and calling Stripe Refunds with an idempotency key; (4) Handle `charge.refunded` (`partially_refunded` vs `refunded`, canceling subscriptions only on full refund) and `charge.dispute.created` (emailing admins immediately).

Troubleshooting refund, tax, and dispute surprises

SymptomMost likely root causeReliable fix
Order stays `paid` after refundWebhook missed charge.refunded or charge_id lookupSubscribe to charge.refunded and store stripe_charge_id on every order
Partial credit canceled Pro planHandler treated any refund as a full refundCheck charge.amount_refunded >= charge.amount before revoking access
Checkout errored with Stripe TaxMissing origin address or tax code in StripeConfigure headquarters address and default tax code in Stripe → Tax
Non-admin called refund routeHidden UI button without server role checkEnforce session.user.role === 'admin' on the server refund endpoint
"Unrecognized charge" disputeUnfamiliar LLC or personal card descriptorUpdate Stripe statement descriptor to your public app name

Next steps

Still have a question?Ask our team and other builders on Discord.

From the blog