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 model | Full refund (`amount_refunded == amount`) | Partial refund (`amount_refunded < amount`) |
|---|---|---|
| SaaS or membership | Mark invoice refunded, cancel active Stripe subscription, downgrade tier to Free | Mark invoice partially_refunded; keep subscription active (goodwill credit) |
| Studio or service booking | Mark booking canceled and refunded; release calendar slot if date is still in the future | Mark partially_refunded (e.g., partial service adjustment); preserve booking history |
| Online storefront | Mark order refunded; do not auto-restock damaged goods until admin confirms return condition | Mark 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:
{
"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:
| Protection | Why it prevents disputes | Where to configure it |
|---|---|---|
| Clear card statement descriptor | Cardholders recognize your public app or studio name instead of an unfamiliar LLC | Stripe Dashboard → Settings → Public details |
| Instant branded receipts | Buyers get immediate proof of purchase with items, amount, and real Reply-To support email | Transactional email flows |
| 3-day trial conversion alert | Eliminates "I forgot the free trial ended" bank reversals | Stripe customer.subscription.trial_will_end webhook |
| Self-serve Customer Portal | Frustrated subscribers cancel in two clicks instead of calling their bank | Subscriptions & proration |
| Plain refund & deposit terms | Visible cancellation cutoff right next to the Pay button establishes clear consent | Checkout 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, andtotal_centsas 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.
Set a recognizable statement descriptor
Use your public brand name and support URL inside Stripe business settings.
Build an admin-only refund route
Verify
session.user.role === 'admin', call the Stripe Refunds API with an idempotency key, and recordrefund_reason.Wire refund and dispute webhooks
Handle
charge.refundedandcharge.dispute.createdso Cloud stays accurate even for refunds issued in Stripe Dashboard.Enable Stripe Tax if needed
Configure tax registrations in Stripe, turn on
automatic_tax, and persistsubtotal_centsandtax_cents.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.
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
| Symptom | Most likely root cause | Reliable fix |
|---|---|---|
| Order stays `paid` after refund | Webhook missed charge.refunded or charge_id lookup | Subscribe to charge.refunded and store stripe_charge_id on every order |
| Partial credit canceled Pro plan | Handler treated any refund as a full refund | Check charge.amount_refunded >= charge.amount before revoking access |
| Checkout errored with Stripe Tax | Missing origin address or tax code in Stripe | Configure headquarters address and default tax code in Stripe → Tax |
| Non-admin called refund route | Hidden UI button without server role check | Enforce session.user.role === 'admin' on the server refund endpoint |
| "Unrecognized charge" dispute | Unfamiliar LLC or personal card descriptor | Update Stripe statement descriptor to your public app name |