gopaycommunity / gopay-java-api

GoPay's JAVA SDK for Payments REST API
MIT License
10 stars 5 forks source link

Wrong Content-Type on partial capturePayment method #20

Closed martinkrasa closed 7 months ago

martinkrasa commented 1 year ago

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.