Managing Payment Methods
Let users manage their saved payment methods (bank cards) with OnsideKit's built-in payment methods manager screen.
Present the manager
@MainActor static func presentPaymentMethodsManager(
completion: (@MainActor (Result<Void, OnsidePaymentMethodsManagerError>) -> Void)? = nil
)Onside.presentPaymentMethodsManager { result in
switch result {
case .success:
// The manager was presented and dismissed normally.
break
case .failure(.loginDiscarded):
// The user dismissed the login screen shown before the manager.
break
case .failure(.notSupportedInLocalTesting):
// Not available in local-testing mode.
break
}
}Behavior
Errors
Case
Cause
Customizing presentation
Last updated
Was this helpful?