SetupIntentService::confirm( string $id, null|array $params = null, null|array|StripeUtilRequestOptions $opts = null )
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.
Description Description
If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeeded
status.
Otherwise, it will transition to the
requires_action
status and
suggest additional actions via
next_action
. If setup fails, the
SetupIntent will transition to the
requires_payment_method
status.
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