There should be MediaType.APPLICATION_JSON used as Content-Type in cz.gopay.api.v3.impl.apacheclient.HttpClientPaymentClientImpl#capturePayment(cz.gopay.api.v3.model.access.AuthHeader, java.lang.Long, cz.gopay.api.v3.model.payment.CapturePayment) method. Otherwise, it captures whole payment, not only the part specified in capturePayment parameter.
There should be
MediaType.APPLICATION_JSON
used as Content-Type incz.gopay.api.v3.impl.apacheclient.HttpClientPaymentClientImpl#capturePayment(cz.gopay.api.v3.model.access.AuthHeader, java.lang.Long, cz.gopay.api.v3.model.payment.CapturePayment)
method. Otherwise, it captures whole payment, not only the part specified incapturePayment
parameter.