Refund

الاسترداد (Refund)

GLS-000144

Intermediatepayments1 min read
stripe refundmoney backpartial refundfull refundcancellation refund

Definition

Returning money to a customer for a payment they made — either in full or partially.

إعادة المال إلى عميل مقابل دفع قام به — كاملًا أو جزئيًا.

Why It Matters

Every marketplace needs a refund flow. A customer who can't get a refund for a failed service will dispute the charge — which is worse for the platform.

كل سوق يحتاج تدفق استرداد. العميل الذي لا يستطيع استرداد أموال مقابل خدمة فاشلة سيعترض على التحصيل — وهو أسوأ للمنصة.

Full Definition

A refund returns some or all of a charge back to the customer's payment method. Stripe processes refunds within 5-10 business days. Partial refunds return only a specified amount. Refunds can be triggered manually (admin action) or automatically (canceled subscription, policy). On Stripe Connect platforms, refunds affect both the customer charge and any payouts already made.
الاسترداد يُعيد بعض أو كل تحصيل إلى وسيلة دفع العميل. تعالج Stripe الاستردادات في غضون 5-10 أيام عمل. الاستردادات الجزئية تُعيد مبلغًا محددًا فقط. يمكن تشغيل الاستردادات يدويًا (إجراء مشرف) أو تلقائيًا (اشتراك ملغى وسياسة). في منصات Stripe Connect، تؤثر الاستردادات على كل من تحصيل العميل وأي مدفوعات تمت بالفعل.

Example Usage

An order is canceled 10 minutes after placement. The backend calls stripe.refunds.create({ payment_intent: pi_xxx }) to automatically refund the customer.

يُلغى طلب بعد 10 دقائق من تقديمه. الخادم يستدعي stripe.refunds.create({ payment_intent: pi_xxx }) لاسترداد أموال العميل تلقائيًا.

Knowledge Graph

Avoid these mistakes when using Refund:

1

Not testing refunds in Stripe test mode before going live

2

Not handling the charge.refunded webhook to update your database when Stripe processes the refund

Sign in to unlock guided AI explanations from AI Teacher.

Generate a Prompt

Copy this prompt and use it directly with any AI model — no setup needed.

Ready-to-Use Prompt
Help me build a project using Refund.

Explain:
1. What is Refund and why it matters
2. The core architecture and required tools
3. Step-by-step implementation plan
4. Common mistakes to avoid: Not testing refunds in Stripe test mode before going live, Not handling the charge.refunded webhook to update your database when Stripe processes the refund
5. Best practices and production tips

Official Resources