Short answer
Look up the dispute for the payment. To give the customer the money back, accept the dispute, which closes it in their favor. To fight it, submit evidence. Before any automatic refund, check the charge’s disputed flag, and handle the refund failure reason that appears when a dispute lands while a refund is still pending.
Rather not fix it yourself? Stripe Billing Fix and Setup handles it at a fixed price, agreed before work starts.
Why Stripe blocks the refund, and the fix
01
The payment has an open dispute
“You can’t issue a refund outside the dispute process while the dispute is open.” Stripe, How disputes work (receive a dispute)
A support tool or cancel flow called the refund API on a disputed charge. Find the dispute and accept it instead; accepting closes it, and the customer keeps the disputed amount. This applies to formal disputes; for an inquiry (status warning_needs_response), submit evidence instead.
const { data } = await stripe.disputes.list({ payment_intent: paymentIntentId, limit: 1 }); const dispute = data[0]; if (dispute && dispute.status === 'needs_response') { await stripe.disputes.close(dispute.id); // accept the dispute }02
The refund code never checks for disputes
“You can’t refund a disputed payment.” Stripe, Error codes (refund_disputed_payment)
Read charge.disputed before calling refunds.create, and route disputed charges to the dispute flow. Log the error code so the support team sees why the refund failed.
03
The dispute arrived while a refund was pending
“A customer disputed the charge while the refund is pending.” Stripe, Refunds (failure reasons)
The refund fails later with failure_reason charge_for_pending_refund_disputed. Listen for refund.failed, then accept or counter the dispute so the customer isn’t paid twice.
04
It is still an inquiry, not a chargeback
“Inquiries on partially refunded charges can still escalate to a chargeback.” Stripe, How disputes work (inquiries)
Also check: some networks open an inquiry first. Stripe says a full refund can resolve an inquiry without a dispute fee, but a partial refund may not stop it.
Checked against the vendor’s docs on : Stripe docs: Error codes; Stripe docs: How disputes work; Stripe docs: Respond to disputes; Stripe docs: Refund and cancel payments.
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- $950Stripe Billing Fix and SetupSubscriptions, webhooks, customer portal and failed payments set up or fixed, tested in Stripe test mode.See scope and start
- from $450App Fix TicketOne reproducible bug in an existing mobile or web app, diagnosed and fixed.See scope and start
- from $450AI-Built App RescueA Lovable, Bolt or Cursor app checked end to end in 3 days, then its worst problems fixed at a fixed price.No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.See scope and start
“Working with Simon makes everything run so smoothly and better than I could ask for it. Amazingly communicative, extremely knowledgeable of coding and the backend processes. I strongly recommend.”
Related: Stripe charge_already_refunded · Stripe dispute and chargeback · Stripe subscription past_due · Stripe payment_intent_authentication_failure