CapturePaymentIntent
Captures the funds of an existing uncaptured payment intent when its status is requires_capture.
Stored Procedure-Specific Information
To run this procedure, enter:EXEC CapturePaymentIntent PaymentIntentId = 'pi_3Oe4fu2eZvKYlo2C1AtF19xU', AmountToCapture = 150, StatementDescriptor = 'test', Metadata = '{\"name\":\"test1\", \"age\":20}'
Input
| Name | Type | Description |
| PaymentIntentId | String | The Id of the payment intent to capture. |
| AmountToCapture | String | The amount to capture from the payment intent, which must be less than or equal to the original amount. |
| Metadata | String | The set of key-value pairs that you can attach to the object. |
| ApplicationFeeAmount | String | The amount of the application fee, if any, requested to be applied to the payment and transferred to the application owner's Stripe account. |
| FinalCapture | String | Defaults to true. When capturing a payment intent, setting final_capture to false notifies Stripe not to release the remaining uncaptured funds, ensuring that they are captured in future requests. You can only use this setting when multicapture is available for payment intents. |
| StatementDescriptor | String | For card charges, use statement_descriptor_suffix. |
| StatementDescriptorSuffix | String | Provides information about a card payment that customers see on their statements. |
| TransferData | String | The parameters that you can use to automatically create a transfer after the payment is captured. |
Result Set Columns
| Name | Type | Description |
| Success | String | Returns the execution status of the stored procedure. |