capture Charge Intent
suspend fun captureChargeIntent(intentId: String, request: ChargeIntentsRequests.CaptureChargeIntentRequest): Pair<ChargeIntent?, NetworkingError?>
Captures a previously authorized charge intent for the specified amount.
Return
A Pair containing the updated ChargeIntent on success, or a NetworkingError on failure.
Parameters
intent Id
The ID of the charge intent to capture.
request
The capture parameters, including the amount in cents to capture.
fun captureChargeIntent(intentId: String, request: ChargeIntentsRequests.CaptureChargeIntentRequest, completionHandler: (ChargeIntent?, NetworkingError?) -> Unit)
Captures a previously authorized charge intent for the specified amount.
Parameters
intent Id
The ID of the charge intent to capture.
request
The capture parameters, including the amount in cents to capture.
completion Handler
Called with the updated ChargeIntent on success, or a NetworkingError on failure.