Apple Pay

Request and process Apple Pay payments in your app.

Topics

First Steps

Setting Up Apple Pay Requirements

Complete the requirements needed to use Apple Pay in your apps.

Apple Pay Availability

Determine if the device supports Apple Pay and whether the user has added payment cards.

class PKPaymentAuthorizationController

Presents a sheet that prompts the user to authorize a payment request.

class PKPaymentAuthorizationViewController

Prompts the user to authorize a payment request.

Apple Pay Buttons

class PKPaymentButton

Provides a button that is used either to trigger payments through Apple Pay or to prompt the user to set up a card.

Payment Requests

class PKPaymentRequest

Encapsulates a request for payment, including information about payment processing capabilities, the payment amount, and shipping information.

Payment Sheet Interactions and Authorization

class PKPaymentAuthorizationResult

Reports the status code and errors that you return when a payment is authorized.

class PKPaymentAuthorizationController

Presents a sheet that prompts the user to authorize a payment request.

class PKPaymentAuthorizationViewController

Prompts the user to authorize a payment request.

class PKPayment

Represents the result of authorizing a payment request and contains payment information, encrypted in the payment token.

Payment Sheet Updates

Process the user's changes and update the payment sheet.

class PKPaymentRequestPaymentMethodUpdate

Updates the payment request after the payment method changed.

class PKPaymentRequestShippingContactUpdate

Updates the payment request after the shipping contact information changed.

class PKPaymentRequestShippingMethodUpdate

Updates the payment request after the shipping method changed.

class PKPaymentRequestUpdate

Base class for updating the payment request after the user makes changes on the payment sheet.

Errors

Provide granular error information for contact and address data.

struct PKPaymentError

An error type that you create to indicate problems with address or contact information on an Apple Pay sheet.

struct PKPaymentErrorKey

Additional details about an error on the Apple Pay sheet.

Deprecated

struct PKAddressField

Billing or shipping address fields.

Deprecated