> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# init

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 Native UI manager instance.

```swift SWIFT theme={"dark"}
init(paymentMethodType: String, delegate: PrimerHeadlessUniversalCheckoutRawDataManagerDelegate? = nil) throws
```

## Parameters

<Expandable defaultOpen title="Parameters">
  <ResponseField name="paymentMethodType" type="String" required>
    A unique string identifier for the payment method. Supported payment methods for current client session are returned in `primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods`.
  </ResponseField>
</Expandable>

## Throws

<Expandable defaultOpen title="Throws">
  <ResponseField name="uninitializedSDKSession">
    An error that will be thrown in case the SDK was not initialized properly. Before calling this method,
    the SDK must be initialized.
  </ResponseField>

  <ResponseField name="unsupportedPaymentMethod">
    An error 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 the `onAvailablePaymentMethodsLoaded` delegate.
  </ResponseField>
</Expandable>
