Closed sjdmulde closed 8 years ago
Hi Stijn,
Thanks for the report. I think Mollie changed their API a bit. I will look into it tonight or if you want you can create a PR.
Hey,
I found the cause of the issue. It appears when you test the webhook with mollie, they send an empty id.
So when you call the method
public ResponseOrError<PaymentStatus> getPaymentStatus(String apiKey, String id) throws IOException {
HttpGet httpGet = new HttpGet(endpoint + "/payments/" + id);
return executeRequest(apiKey, httpGet, PaymentStatus.class);
}
with an empty id, it actually calls a different api and thus the error. I think it would be wise to check if the id is not empty.
All in all good news, the api works with the existing Java code.
Regards, Stijn
Thanks. I'll create a new ticket to verify the presence of the payment identifier and to add client calls to list payments.
Hello,
When executing the following code:
ResponseOrError paymentStatus = mollie.getPaymentStatus(mollieApiKey, gateWayReference);
i get the exception:
This is probably due to the fact that the mollie api (https://www.mollie.com/be/docs/reference/payments/list) has a links result:
This is mapped in Java to the links class: private nl.stil4m.mollie.domain.Links links which does not correspond to the api result:
Regards, Stijn