Contents

dismiss(completion:)

Dismisses the payment sheet.

Declaration

func dismiss(completion: (@Sendable () -> Void)? = nil)
func dismiss() async

Parameters

  • 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.

See Also

Handling user interactions