Initialization data is provided by certain payment methods, which can include a bank list or a list of retail outlets.

This data plays a crucial role in configuring the initial state of the application and offering users a selection of options.

If the data is available, an instance of PrimerInitializationData will be returned; otherwise, nil will be returned.

Please refer to the following section to find the supported types of PrimerInitializationData that may be returned.

In case data cannot be obtained, Primer SDK will return PrimerError.

1
func configure(completion: @escaping (PrimerInitializationData?, Error?) -> Void)
swift
copy

Parameters

completion(PrimerInitializationData?, Error?) -> Void

PrimerInitializationData

Direct subclasses

RetailOutletsList

result

properties

idStringRequired

nameStringRequired

iconUrlURLOptional

disabledBoolRequired

ErrorPrimerError

Properties

errorIdStringRequired

A unique error identifier.

descriptionStringRequired

The error description.

diagnosticsIdStringRequired

A unique diagnostics id for the given error.

recoverySuggestionString

A recovery suggestion for the given error. In case it's present, use it to try to recover from error.