The raw data manager is responsible for payment methods that need to receive data from the user (e.g. card form).

This method enables you to create a Raw Data manager instance.

123
@Throws(SdkUninitializedException::class, UnsupportedPaymentMethodException::class)@JvmStaticfun newInstance(paymentMethodType: String): PrimerHeadlessUniversalCheckoutRawDataManagerInterface
kotlin
copy

Parameters

paymentMethodType
StringRequired

A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodsLoaded callback.

Throws

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.

An exception that will be thrown in case the initialization of the manager has been done using unsupported paymentMethodType - PrimerHeadlessMainComponent combination. Supported payment methods for current client session are returned in onAvailablePaymentMethodsLoaded callback. See Supported types for the supported combinations.