When a successful result has been received by the SDK it uses Gson to convert the JSON code into a class. To get the class type the following code is executed in HppManagerFragment in the callbackHandler():
method.getParameterTypes()[0]
When mListener is written in Java, this code will complete successfully. When mListnener is written in Kotlin, instead of the ConsumerResponse type, 'Object' is returned, causing Gson to throw a ClassCastException.
Please make your SDK compatible with Kotlin.
When a successful result has been received by the SDK it uses Gson to convert the JSON code into a class. To get the class type the following code is executed in HppManagerFragment in the callbackHandler():
method.getParameterTypes()[0]When mListener is written in Java, this code will complete successfully. When mListnener is written in Kotlin, instead of the ConsumerResponse type, 'Object' is returned, causing Gson to throw a ClassCastException.
Please make your SDK compatible with Kotlin.