xendit-java icon indicating copy to clipboard operation
xendit-java copied to clipboard

Customer.getCustomerByReferenceId bug

Open cnhuz opened this issue 3 years ago • 0 comments

sample code:

public static void main(String[] args) {
        try {
            Xendit.apiKey = "...";
            Customer[] customers = Customer.getCustomerByReferenceId("...");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

The error occurs at xendit-java-lib-1.21.0.jar com.xendit.network.BaseRequest line 124

resource = (new Gson()).fromJson(responseBody, clazz);

cnhuz avatar Jan 11 '23 09:01 cnhuz