Cancel a PaymentIntent
Changed onYou can cancel a PaymentIntent object when it’s in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, in rare cases, processing.
After it’s canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
You can directly cancel the PaymentIntent for a Checkout Session only when the PaymentIntent has a status of requires_capture. Otherwise, you must expire the Checkout Session.
Request
- Base URL: https://api.stripe.com
- URL: https://api.stripe.com/v1/payment_intents/{intent}/cancel
- Auth: one of:
- HTTP basic
- HTTP bearer
Path parameters
Response
Successful response.
Changes
- breaking
removed the required property
////////////from the response with the status - breaking
removed the required property
//////////from the response with the status - breaking
removed the required property
//////////from the response with the status - breaking
removed the required property
//////////from the response with the status - breaking
removed the required property
////////from the response with the status - breaking
removed the required property
////////from the response with the status
This list may be incomplete.
- breaking
Some revisions have not been checked yet.