ChargeService::capture( string $id, null|array $params = null, null|array|StripeUtilRequestOptions $opts = null )
Capture the payment of an existing, uncaptured, charge. This is the second half of the two-step payment flow, where first you created a charge with the capture option set to false.
Description Description
Uncaptured payments expire exactly seven days after they are created. If they are not captured by that point in time, they will be marked as refunded and will no longer be capturable.
Parameters Parameters
- $id
-
(Required)
- $params
-
(Optional)
Default value: null
- $opts
-
(Optional)
Default value: null
Return Return
(StripeCharge)
Source Source
File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/Service/ChargeService.php