Contents

addPaymentPassViewController(_:didFinishAdding:error:)

Declaration

func addPaymentPassViewController(_ controller: PKAddPaymentPassViewController, didFinishAdding pass: PKPaymentPass?, error: (any Error)?)

Parameters

  • controller:

    The controller adding the pass.

  • pass:

    The completed pass, or nil if there was an error.

  • error:

    If the request failed, this parameter contains an error object using the Pkpasskiterrordomain error domain. For a list of possible error codes, see the Pkaddpaymentpasserror enum.

Discussion

This method is called when the request successfully adds the card to Apple Pay or when the request fails.

See Also

Requesting to add payment cards to Apple Pay