CyberSource/cybersource-rest-samples-java

[question] ProcessPayment unused ApiClient

YanDoroshenko opened this issue · 1 comments

Hey guys. I have a question. Why do you have an unused ApiClient object created in the coreServices/ProcessPayment example? Well, I know why, because it doesn't work without it, but why doesn't it work without it? Thanks.

I've noticed that their ApiClient base constructor initializes a bunch of stuff they use for processing objects and making requests. Without it, their code will fail.

https://github.com/CyberSource/cybersource-rest-client-java/blob/master/src/main/java/Invokers/ApiClient.java.