Cancel Payment Flow
Platform engineers implementing or troubleshooting the cancel endpoint, including which payment states are eligible for cancellation and the resulting Stripe void/reversal behavior. For the actual PATCH request/response, see How to Cancel a Payment. For the webhook payload and error scenarios, see Cancel Payment β Reference. For capturing instead of cancelling an authorized payment, see Pre-Auth & Capture.
Overviewβ
The cancel endpoint (PATCH /v2/payments/{paymentId}/cancel) allows merchants to void or cancel an in-progress or authorized payment. Cancellation triggers a Stripe void or reversal depending on the current payment state.
Cancellation Eligibilityβ
| Payment State | Cancel Allowed? | Stripe Action |
|---|---|---|
AUTHORIZED | β | Void the PaymentIntent |
ACCEPTED | β | Reverse the ACH transaction |
PENDING | β | Cancel before processing |
INITIATED | β | Cancel before processing |
PROCESSING | β | Wait for terminal state |
COMPLETED | β | Use refund (POST /v2/refunds) instead |
FAILED | β | Already terminal |
CANCELLED | β | Already terminal |
Cancellation Reasonsβ
| Value | When to Use |
|---|---|
DUPLICATE | Merchant identified this as a duplicate payment |
FRAUDULENT | Suspected fraudulent activity |
REQUESTED_BY_CUSTOMER | Customer asked to cancel |
ABANDONED | Customer did not complete (e.g., 3DS timeout) |