setAuthenticationServiceClass

@JvmStatic
@JvmName(name = "setAuthenticationServiceClass")
fun <T : MerchantAuthenticationService> setAuthenticationServiceClass(authServiceClass: Class<T>)

Manually sets the instance of the MerchantAuthenticationService to be used in payment requests.

Use this method only when a manual setup is required, for instance, if the service is located in a dynamic feature module. In most cases, the service will be automatically discovered from the application's manifest. This should be called from your Application's onCreate.

Parameters

authServiceClass

The class of your MerchantAuthenticationService implementation.

Throws

IllegalArgumentException

if the provided class does not inherit from MerchantAuthenticationService or is not declared in the manifest.