Instance Method

paymentAuthorizationViewControllerDidFinish(_:)

Tells the delegate that payment authorization finished.

Required.

Declaration

func paymentAuthorizationViewControllerDidFinish(_ controller: PKPaymentAuthorizationViewController)

Parameters

controller

The payment authorization view controller.

Discussion

This delegate method is called every time a payment finishes. A payment may finish because authorization was completed in paymentAuthorizationViewController(_:didAuthorizePayment:handler:), because authorization timed out, or because the user canceled the payment.