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
Request body application/x-www-form-urlencoded
Response
Successful response.
Changes
- info
added the optional property
//////to the response with the status - info
added the optional property
////to the response with the status
- info
- info
added the optional property
////////to the response with the status - info
added the optional property
//////////to the response with the status
- info
Some revisions have not been checked yet.