Processing Refunds
Process full or partial refunds for payments. Include reasons and metadata for tracking. Stripe automatically handles failed payment recovery.
// Full refund for a payment
"Refund payment pi_1234567890 completely"
// Partial refund with reason
"Issue a $25 partial refund for payment pi_1234567890 with reason: customer_request"
// Refund with metadata
"Refund payment pi_1234567890 and add metadata: support_ticket=TICKET-123"