public class CaptureApi extends Object
| Constructor | Description |
|---|---|
CaptureApi() |
|
CaptureApi(ApiClient apiClient) |
| Modifier and Type | Method | Description |
|---|---|---|
PtsV2PaymentsCapturesPost201Response |
capturePayment(CapturePaymentRequest capturePaymentRequest,
String id) |
Capture a Payment
Include the payment ID in the POST request to capture the payment amount.
|
okhttp3.Call |
capturePaymentAsync(CapturePaymentRequest capturePaymentRequest,
String id,
ApiCallback<PtsV2PaymentsCapturesPost201Response> callback) |
Capture a Payment (asynchronously)
Include the payment ID in the POST request to capture the payment amount.
|
okhttp3.Call |
capturePaymentCall(CapturePaymentRequest capturePaymentRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for capturePayment
|
ApiResponse<PtsV2PaymentsCapturesPost201Response> |
capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest,
String id) |
Capture a Payment
Include the payment ID in the POST request to capture the payment amount.
|
ApiClient |
getApiClient() |
|
void |
setApiClient(ApiClient apiClient) |
public CaptureApi()
public CaptureApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest, String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<PtsV2PaymentsCapturesPost201Response> capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest, String id, ApiCallback<PtsV2PaymentsCapturesPost201Response> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientCopyright © 2026. All rights reserved.