UserInterface
final class UserInterface : Sendable
UI.
-
createAddCardToWalletViewController(token:accountUuid: cardUuid: cardholderName: lastFourDigits: paymentNetwork: onCompletion: ) Creates and returns a
UIViewControllerthat handles adding card to wallet. Must be used as a modal.Declaration
Swift
@MainActor public func createAddCardToWalletViewController( token: String, accountUuid: String, cardUuid: String, cardholderName: String, lastFourDigits: String, paymentNetwork: PKPaymentNetwork, onCompletion: @escaping @Sendable (Result<Void, ALEventError>) -> Void ) -> UIViewController?Parameters
tokenThe token to authenticate the SDK.
extraDataExtra data to be sent along card data.
validationA custom fields validation to apply to the view. If
nilis passed the default validations are applied.styleThe style customizations object. If
nilis passed the default style is applied.onCompletionCompletion handler.
Return Value
A
UIViewControllerinstance. -
createAddCardToWalletView(token:accountUuid: cardUuid: cardholderName: lastFourDigits: paymentNetwork: onCompletion: fallback: ) Create and returns a
View. that handles adding card to wallet. Must be used as a modal.Declaration
Swift
@MainActor public func createAddCardToWalletView<Fallback: View>( token: String, accountUuid: String, cardUuid: String, cardholderName: String, lastFourDigits: String, paymentNetwork: PKPaymentNetwork, onCompletion: @escaping @Sendable (Result<Void, ALEventError>) -> Void, @ViewBuilder fallback: @escaping () -> Fallback ) -> some ViewParameters
tokenThe token to authenticate the SDK.
extraDataExtra data to be sent along card data.
validationA custom fields validation to apply to the view. If
nilis passed the default validations are applied.styleThe style customizations object. If
nilis passed the default style is applied.onCompletionCompletion handler.
fallbackFallback view.
Return Value
A
Viewinstance.
View on GitHub