public class CaptureApi extends Object
| Constructor and Description |
|---|
CaptureApi() |
CaptureApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
PtsV2PaymentsCapturesPost201Response |
capturePayment(CapturePaymentRequest capturePaymentRequest,
com.cybersource.authsdk.core.MerchantConfig merchantConfig,
String id)
Capture a Payment
Include the payment ID in the POST request to capture the payment amount.
|
com.squareup.okhttp.Call |
capturePaymentAsync(CapturePaymentRequest capturePaymentRequest,
com.cybersource.authsdk.core.MerchantConfig merchantConfig,
String id,
ApiCallback<PtsV2PaymentsCapturesPost201Response> callback)
Capture a Payment (asynchronously)
Include the payment ID in the POST request to capture the payment amount.
|
com.squareup.okhttp.Call |
capturePaymentCall(CapturePaymentRequest capturePaymentRequest,
com.cybersource.authsdk.core.MerchantConfig merchantConfig,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for capturePayment
|
ApiResponse<PtsV2PaymentsCapturesPost201Response> |
capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest,
com.cybersource.authsdk.core.MerchantConfig merchantConfig,
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 com.squareup.okhttp.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest, com.cybersource.authsdk.core.MerchantConfig merchantConfig, String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
capturePaymentRequest - (required)merchantConfig - (merchant details)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 objectpublic PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest, com.cybersource.authsdk.core.MerchantConfig merchantConfig, String id) throws ApiException
capturePaymentRequest - (required)merchantConfig - (merchant details)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 bodypublic ApiResponse<PtsV2PaymentsCapturesPost201Response> capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest, com.cybersource.authsdk.core.MerchantConfig merchantConfig, String id) throws ApiException
capturePaymentRequest - (required)merchantConfig - (merchant details)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 bodypublic com.squareup.okhttp.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest, com.cybersource.authsdk.core.MerchantConfig merchantConfig, String id, ApiCallback<PtsV2PaymentsCapturesPost201Response> callback) throws ApiException
capturePaymentRequest - (required)merchantConfig - (merchant details)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 objectCopyright © 2018. All rights reserved.