Payment Methods
OnsideKit provides a simple, built-in interface for users to manage their saved payment methods directly within your app. This includes adding new bank cards and removing existing ones.
Presenting the Payment Methods Manager
To display the UI for managing payment methods, call the following static method:
Onside.presentPaymentMethodsManager(onLoginDiscarded: (@MainActor () -> Void)?)
This method presents a UI where users can view, add, or delete their saved bank cards.
onLoginDiscarded (Optional Callback): This closure is executed if the user is required to log in but cancels or dismisses the login screen. It allows you to gracefully handle the case where the user decides not to proceed with authentication.
Last updated
Was this helpful?