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();
}
}
Aggregations