SetupIntentService::cancel( string $id, null|array $params = null, null|array|StripeUtilRequestOptions $opts = null )
A SetupIntent object can be canceled when it is in one of these statuses: requires_payment_method
, requires_confirmation
, or requires_action
.
Description Description
Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
Parameters Parameters
- $id
-
(Required)
- $params
-
(Optional)
Default value: null
- $opts
-
(Optional)
Default value: null
Return Return
(StripeSetupIntent)
Source Source
File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php