The native UI manager is responsible for payment methods that need to present their own UI (e.g. Apple Pay).

This method enables you to create a Native UI manager instance.

1
init(paymentMethodType: String) throws
swift
copy

Parameters

Parameters
paymentMethodType
StringRequired

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

Throws

An error that will be thrown in case the SDK was not initialized properly. Before calling this method, the SDK must be initialized.

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.