Instance Method

paymentAuthorizationViewControllerDidFinish(_:)

Tells the delegate that payment authorization has completed.

Required.

Declaration

func paymentAuthorizationViewControllerDidFinish(_ controller: PKPaymentAuthorizationViewController)

Parameters

controller

The payment authorization view controller.

Discussion

Use this method to dismiss the payment authorization view controller and update any other app state.

When the user authorizes a payment request, this method is called after the status from the PKPaymentAuthorizationViewControllerDelegate method’s completion block has been shown to the user. When the user cancels without authorizing the payment request, only paymentAuthorizationViewControllerDidFinish: is called.