dismiss(completion:)
Dismisses the payment sheet.
Declaration
func dismiss(completion: (@Sendable () -> Void)? = nil)func dismiss() asyncParameters
- completion:
A block that is called after the sheet is dismissed.
Discussion
Call this method when you receive the paymentAuthorizationControllerDidFinish(_:) delegate callback, or otherwise want to dismiss the payment sheet.