The card components manager is responsible for payment methods that leverage our built-in card form components (e.g. card form).
This method enables you to create a Card Components manager instance.
123
@Throws(SdkUninitializedException::class, UnsupportedPaymentMethodException::class)@JvmStaticfun newInstance(paymentMethodType: String): PrimerHeadlessUniversalCheckoutCardComponentsManagerInterface
Parameters
paymentMethodTypeStringRequired
A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodLoaded callback.
Throws
SdkUninitializedException
An exception that will be thrown in case the SDK was not initialized properly. Before calling any of the manager's method, the SDK must be initialized using start method.
UnsupportedPaymentMethodException
An exception that will be thrown in case the initialization of the manager has been done using unsupported paymentMethodType
.
Supported payment methods for current client session are returned
in onAvailablePaymentMethodLoaded callback.