Instance Method

paymentAuthorizationControllerDidFinish(_:)

Tells the delegate that payment authorization has completed.

Required.

Declaration

func paymentAuthorizationControllerDidFinish(_ controller: PKPaymentAuthorizationController)

Parameters

controller

The payment authorization controller.

Discussion

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

When the user authorizes a payment request, this method is called after the user is shown the status from the paymentAuthorizationController(_:didAuthorizePayment:completion:) method’s completion block. When the user cancels without authorizing the payment request, only paymentAuthorizationControllerDidFinish: is called.

See Also

Handling User's Payment Authorization