Search in sources :

Example 1 with CaptureResponse

use of com.ingenico.connect.gateway.sdk.java.domain.capture.CaptureResponse in project connect-sdk-java by Ingenico-ePayments.

the class CapturePaymentExample method example.

@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
    Client client = getClient();
    try {
        CapturePaymentRequest body = new CapturePaymentRequest();
        body.setAmount(2980L);
        CaptureResponse response = client.merchant("merchantId").payments().capture("paymentId", body);
    } finally {
        client.close();
    }
}
Also used : CaptureResponse(com.ingenico.connect.gateway.sdk.java.domain.capture.CaptureResponse) CapturePaymentRequest(com.ingenico.connect.gateway.sdk.java.domain.payment.CapturePaymentRequest) Client(com.ingenico.connect.gateway.sdk.java.Client)

Aggregations

Client (com.ingenico.connect.gateway.sdk.java.Client)1 CaptureResponse (com.ingenico.connect.gateway.sdk.java.domain.capture.CaptureResponse)1 CapturePaymentRequest (com.ingenico.connect.gateway.sdk.java.domain.payment.CapturePaymentRequest)1