SavedApplePay

public class SavedApplePay: SavedPaymentMethod

This class contains saved Apple Pay payment method details.

Like any other SavedPaymentMethod subclass, it can be used to initiate follow-up payments with the same method. Note: Using this class will still present the Apple Pay sheet to the user when they are in session.

A SavedApplePay object can be created by successfully completing an Apple Pay payment or with a dedicated registration.

  • The Apple Pay device token associated with the previous transaction.

    Important: This data is strictly for use in merchant-initiated follow-up transactions (MIT) where the customer is not present during payment. Do not display any information such as maskedCardNumber or cardExpiryDate to users. These details are derived from the device token and do not represent the actual card information. For details about the real card, refer to last4.

    Declaration

    Swift

    public var token: SavedCard
  • The last 4 digits of the real card number used in the transaction. Note: This information may not be available for all card types.

    Declaration

    Swift

    public var last4: String?
  • A human readable title.

    Declaration

    Swift

    override public var displayTitle: String
  • For VoiceOver this title is used instead of displayTitle.

    Declaration

    Swift

    override public var accessibilityTitle: String