Symbols: 43.3% of Apple's iOS API (459 of 1059, exact) · Rows: 12: 10 ✅ 1 🟡 1 ❌ · iOS: 6.0+
Area: Commerce & privacy · Apple: PassKit (Apple Pay) · Issues: area:commerce
Apple Pay. Wallet passes (PKPass, PKAddPassesViewController) are on WalletPasses.
-
Approach: isim's own Swift overlay,
isim/swift/overlays/PassKit:- the request and payment model (
PassKit.swift); - the controllers and delegates (
PaymentAuthorization.swift); - a simulated Apple Pay sheet (
PaymentSheet.swift); - the buttons (
PaymentButton.swift).
- the request and payment model (
-
The sheet is drawn like iOS's. It has:
- the card;
- the shipping address, the shipping method and the contact;
- a coupon code field, and the summary;
- "Pay with Passcode" (the Simulator's confirmation: there is no side button), then Processing and Done.
Each row opens its choices. As on iOS:
- the delegate hears the default card and the shipping address when the sheet appears;
- before authorization the address is redacted (city, state, postal code, country);
- its updates refresh the summary;
- its errors show on their rows, and contact errors disable Pay until another address is chosen.
-
The device's Wallet has four test cards: Visa credit 4242, Mastercard debit 4444, American Express 0005, Discover 1117. It also has two test addresses.
ISIM_APPLE_PAY=0leaves Wallet empty, socanMakePayments()is false (SYSTEM-PROMPTS.md). -
The token is isim's test token, not Apple's.
PKPaymentToken.paymentDatais JSON with"version": "isim-test", a note saying what it is, the amount, network and merchant, and the SHA-256 ofapplicationData. It has no cryptogram or card number, so a payment processor rejects it. Nothing is charged. -
The buttons have Apple Pay's shapes, colors and labels. The words "Apple Pay" stand where iOS draws Apple's logo: Apple's artwork is not shipped.
-
Objective-C / C interface:
#import <PassKit/PassKit.h>,-framework PassKit(#566). The classes are the overlay's under Apple's names and selectors. The networks and contact fields are Apple'sNSStringconstants, and the capabilities and enums are their C types. The delegate protocols are Swift protocols with both forms of each method (completion handler andasync), with defaults, so a Swift app implements either. Objective-C sees Apple's@objcprotocols: an Objective-C delegate is held weakly through a Swift box, which forwards each method it implements, and the rest keep the Swift defaults. -
Versus Apple's Simulator: the same flow with test cards; the Simulator's token is also not chargeable.
- isim does not check the
com.apple.developer.in-app-paymentsentitlement or the merchant identifier. - There are no merchant sessions (Apple Pay on the web) or disbursements.
- isim does not check the
| API / feature | Status | iOS | Notes |
|---|---|---|---|
PKPaymentRequest (merchant, country, currency, supportedNetworks, merchantCapabilities, paymentSummaryItems, required billing / shipping contact fields, shippingMethods, shippingType, shippingContactEditingMode, applicationData, couponCode, supportsCouponCode, availableNetworks(), the error helpers) |
✅ | ≤17 | adapted: an incomplete request (no merchant, currency, networks or items) is refused, as on iOS; tested (HelloApplePay, test_apple_pay) |
Recurring, deferred and automatic reload payments (PKRecurringPaymentRequest, PKDeferredPaymentRequest, PKAutomaticReloadPaymentRequest, their summary items), multiTokenContexts (PKPaymentTokenContext) |
🟡 | ≤17 | adapted: kept on the request; the sheet shows their summary items |
PKPaymentAuthorizationViewController (init?(paymentRequest:), canMakePayments(), canMakePayments(usingNetworks:), canMakePayments(usingNetworks:capabilities:)) and PKPaymentAuthorizationViewControllerDelegate (both forms of each method) |
✅ | ≤17 | adapted: isim's sheet; tested |
PKPaymentAuthorizationController (present, dismiss, completion and async) and PKPaymentAuthorizationControllerDelegate (with presentationWindow(for:)) |
✅ | ≤17 | adapted: the sheet over the app's top view controller (or the delegate's window); tested |
PKPaymentButton (init(paymentButtonType:paymentButtonStyle:), disableCardArt: forms, cornerRadius), PKPaymentButtonType, PKPaymentButtonStyle |
✅ | ≤17 | adapted: "Apple Pay" in words for the logo; tested |
PKPaymentNetwork, PKMerchantCapability, PKContactField, PKShippingType, PKShippingContactEditingMode, PKPaymentMethodType |
✅ | ≤17 | tested |
PKPayment, PKPaymentToken, PKPaymentMethod, PKContact |
✅ | ≤17 | adapted: isim's test token (above); the contacts carry the requested fields; tested |
PKPaymentSummaryItem, PKShippingMethod, PKDateComponentsRange |
✅ | ≤17 | tested |
PKPaymentAuthorizationResult, PKPaymentAuthorizationStatus, the request updates (PKPaymentRequestUpdate, …ShippingContactUpdate, …ShippingMethodUpdate, …PaymentMethodUpdate, …CouponCodeUpdate), PKPaymentError, PKPaymentErrorKey |
✅ | ≤17 | adapted: a failure without errors shows "Payment Not Completed" and Try Again; errors show on their rows; tested |
SwiftUI PayWithApplePayButton (action and request forms, with fallbacks), PayWithApplePayButtonLabel, PayWithApplePayButtonStyle, PayWithApplePayButtonPaymentAuthorizationPhase, payWithApplePayButtonStyle(_:), onApplePayShippingContactChange / …ShippingMethodChange / …PaymentMethodChange / …CouponCodeChange |
✅ | ≤17 | adapted: the fallback shows when the device cannot pay; tested |
Objective-C: the classes above (+summaryItemWithLabel:amount:, +buttonWithType:style:, -initWithStatus:errors:, …), PKPaymentAuthorizationControllerDelegate / PKPaymentAuthorizationViewControllerDelegate (the handler forms), the PKPaymentNetwork… and PKContactField… constants, PKPaymentErrorDomain and its keys, the enums |
✅ | ≤17 | adapted: an Objective-C delegate goes through a Swift box (above). Tested (PassKitObjCTest, test_passkit_objc: the request and its constants, errors, results and updates, the buttons, a payment through the controller whose delegate changes the shipping total, and one through the view controller) |
Merchant sessions (PKPaymentRequestMerchantSessionUpdate, onMerchantSessionRequested), disbursements (PKDisbursementRequest), orderDetails, applePayLaterAvailability, merchantCategoryCode |
❌ | ≤17 | not yet |
600 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.
List
init(PKEncryptionScheme, cardholderName: String, passStyle: PKAddPaymentPassStyle, primaryAccountSuffix: String?, cardDetails: [PKLabeledValue]?, description: String?, filters: [AddPassToWalletButtonFilter], onRequest: (AddPassToWalletButtonResponse) async -> PKAddPaymentPassRequest, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void)init(PKEncryptionScheme, cardholderName: String, passStyle: PKAddPaymentPassStyle, primaryAccountSuffix: String?, cardDetails: [PKLabeledValue]?, description: String?, filters: [AddPassToWalletButtonFilter], onRequest: (AddPassToWalletButtonResponse) async -> PKAddPaymentPassRequest, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void, fallback: () -> Fallback)init(PKAddPaymentPassRequestConfiguration, onRequest: (AddPassToWalletButtonResponse) async -> PKAddPaymentPassRequest, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void)init(PKAddPaymentPassRequestConfiguration, onRequest: (AddPassToWalletButtonResponse) async -> PKAddPaymentPassRequest, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void, fallback: () -> Fallback)init(PKEncryptionScheme, primaryAccountSuffix: String, passStyle: PKAddPaymentPassStyle, cardDetails: [PKLabeledValue]?, description: String?, filters: [AddPassToWalletButtonFilter], onRequest: (AddPassToWalletButtonResponse) async -> PKAddPaymentPassRequest, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void)init(PKEncryptionScheme, primaryAccountSuffix: String, passStyle: PKAddPaymentPassStyle, cardDetails: [PKLabeledValue]?, description: String?, filters: [AddPassToWalletButtonFilter], onRequest: (AddPassToWalletButtonResponse) async -> PKAddPaymentPassRequest, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void, fallback: () -> Fallback)init(carKeyPassword: String, supportedRadioTechnologies: PKRadioTechnology, issuerIdentifier: String, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void)init(carKeyPassword: String, supportedRadioTechnologies: PKRadioTechnology, issuerIdentifier: String, onCompletion: (Result<PKSecureElementPass, any Error>) -> Void, fallback: () -> Fallback)AddPassToWalletButtonFilterstatic func paymentNetwork(PKPaymentNetwork) -> AddPassToWalletButtonFilterstatic func primaryAccountIdentifier(String) -> AddPassToWalletButtonFilterstatic func productIdentifier(String) -> AddPassToWalletButtonFilterAddPassToWalletButtonResponsevar certificates: [Data]var nonce: Datavar nonceSignature: DataApplePayMerchandisingActioninit(rawValue: String)static var learnMore: ApplePayMerchandisingActionlet rawValue: StringApplePayMerchandisingPartnerConfigurationstatic let all: ApplePayMerchandisingPartnerConfigurationstatic func limited(partnerIdentifiers: [String]) -> ApplePayMerchandisingPartnerConfigurationstatic let none: ApplePayMerchandisingPartnerConfigurationApplePayMerchandisingStyleinit(rawValue: String)let rawValue: Stringstatic var standard: ApplePayMerchandisingStyleApplePayMerchandisingViewinit(amount: Decimal, currency: Locale.Currency, region: Locale.Region, action: ApplePayMerchandisingAction, style: ApplePayMerchandisingStyle, partners: ApplePayMerchandisingPartnerConfiguration, fallback: () -> Fallback)AsyncShareablePassConfigurationinit(metadata: [PKShareablePassMetadata], action: PKAddShareablePassConfigurationPrimaryAction, content: (AsyncShareablePassConfiguration<Content>.Result) -> Content)AsyncShareablePassConfiguration.Resultcase failure(any Error)case loadingcase success(PKAddShareablePassConfiguration)JPKIPassContentsJPKIPassContents.AuthenticationRequestinit(type: JPKIPassContents.SigningIdentity.AuthenticationType)init(type: JPKIPassContents.UserIdentity.AuthenticationType)JPKIPassContents.Certificatelet data: DataJPKIPassContents.Errorcase appNotForegroundcase biometricAuthenticationFailed(laError: LAError)case biometricUnavailablecase incorrectUserAuthenticationcase invalidInputcase resourceNotAvailablecase unknownErrorcase userAuthenticationFailed(remainingRetryAttempts: Int)JPKIPassContents.Identityvar authenticationTriesRemaining: Intfunc certificate(using: JPKIPassContents.AuthenticationRequest<Self.IdentityType>) async throws -> JPKIPassContents.Certificate<Self.IdentityType>IdentityTypefunc signature(for: [Data], using: JPKIPassContents.AuthenticationRequest<Self.IdentityType>) async throws -> [JPKIPassContents.Signature<Self.IdentityType>]func signature(for: Data, using: JPKIPassContents.AuthenticationRequest<Self.IdentityType>) async throws -> JPKIPassContents.Signature<Self.IdentityType>init(PKPass) async throwsJPKIPassContents.Signaturelet certificate: JPKIPassContents.Certificate<IdentityType>let signatureData: Datalet signingIdentity: JPKIPassContents.SigningIdentity?JPKIPassContents.SigningIdentityJPKIPassContents.SigningIdentity.AuthenticationTypecase password(String)func changePassword(from: String, to: String) async throwslet userIdentity: JPKIPassContents.UserIdentity?JPKIPassContents.UserIdentityvar authenticationTriesRemaining: IntJPKIPassContents.UserIdentity.AuthenticationTypecase pin(String)case systemBiometricfunc changePIN(from: String, to: String) async throwsPayLaterViewinit(amount: Decimal, currency: Locale.Currency)PayLaterViewActionstatic let calculator: PayLaterViewActionstatic let learnMore: PayLaterViewActionPayLaterViewDisplayStylestatic let badge: PayLaterViewDisplayStylestatic let checkout: PayLaterViewDisplayStylestatic let price: PayLaterViewDisplayStylestatic let standard: PayLaterViewDisplayStyleinit(PayWithApplePayButtonLabel, request: PKPaymentRequest, onPaymentAuthorizationChange: (PayWithApplePayButtonPaymentAuthorizationPhase) -> Void, onMerchantSessionRequested: () async -> PKPaymentRequestMerchantSessionUpdate)init(PayWithApplePayButtonLabel, request: PKPaymentRequest, onPaymentAuthorizationChange: (PayWithApplePayButtonPaymentAuthorizationPhase) -> Void, onMerchantSessionRequested: () async -> PKPaymentRequestMerchantSessionUpdate, fallback: () -> Fallback)PKAddCarKeyPassConfigurationinit()var manufacturerIdentifier: String?var password: Stringvar productPlanIdentifier: String?var provisioningTemplateIdentifier: String?var supportedRadioTechnologies: PKRadioTechnologyPKAddIdentityDocumentConfigurationclass func forMetadata(PKIdentityDocumentMetadata, completion: (PKAddIdentityDocumentConfiguration?, (any Error)?) -> Void)var metadata: PKIdentityDocumentMetadataPKAddIdentityDocumentMetadatainit(provisioningCredentialIdentifier: String, sharingInstanceIdentifier: String, cardTemplateIdentifier: String, issuingCountryCode: String, documentType: PKAddIdentityDocumentType, preview: PKAddPassMetadataPreview)var preview: PKAddPassMetadataPreviewPKAddIdentityDocumentTypecase idCardinit?(rawValue: Int)case mDLcase photoIDinit(issuerData: Data, signature: Data) throwsPKAddPassMetadataPreviewinit(passThumbnail: CGImage, localizedDescription: String)var localizedDescription: String?var passThumbnailImage: CGImage?PKAddPaymentPassErrorinit?(rawValue: Int)case systemCancelledcase unsupportedcase userCancelledPKAddPaymentPassRequestvar activationData: Data?var encryptedPassData: Data?var ephemeralPublicKey: Data?init()var wrappedKey: Data?PKAddPaymentPassRequestConfigurationvar cardDetails: [PKLabeledValue]var cardholderName: String?var encryptionScheme: PKEncryptionSchemeinit?(encryptionScheme: PKEncryptionScheme)var localizedDescription: String?var paymentNetwork: PKPaymentNetwork?var primaryAccountIdentifier: String?var primaryAccountSuffix: String?var productIdentifiers: Set<String>var requiresFelicaSecureElement: Boolvar style: PKAddPaymentPassStylePKAddPaymentPassStylecase accessinit?(rawValue: Int)case paymentPKAddPaymentPassViewControllerclass func canAddPaymentPass() -> Boolvar delegate: (any PKAddPaymentPassViewControllerDelegate)?init?(requestConfiguration: PKAddPaymentPassRequestConfiguration, delegate: (any PKAddPaymentPassViewControllerDelegate)?)PKAddPaymentPassViewControllerDelegatefunc addPaymentPassViewController(PKAddPaymentPassViewController, didFinishAdding: PKPaymentPass?, error: (any Error)?)func addPaymentPassViewController(PKAddPaymentPassViewController, generateRequestWithCertificateChain: [Data], nonce: Data, nonceSignature: Data, completionHandler: (PKAddPaymentPassRequest) -> Void)PKAddSecureElementPassConfigurationvar issuerIdentifier: String?var localizedDescription: String?PKAddSecureElementPassErrorPKAddSecureElementPassError.Codecase deviceNotReadyErrorcase deviceNotSupportedErrorcase genericErrorinit?(rawValue: Int)case invalidConfigurationErrorcase osVersionNotSupportedErrorcase unavailableErrorstatic var unknownError: PKAddSecureElementPassError.Codecase userCanceledErrorstatic var deviceNotReadyError: PKAddSecureElementPassError.Codestatic var deviceNotSupportedError: PKAddSecureElementPassError.Codestatic var errorDomain: Stringstatic var genericError: PKAddSecureElementPassError.Codestatic var invalidConfigurationError: PKAddSecureElementPassError.Codestatic var osVersionNotSupportedError: PKAddSecureElementPassError.Codestatic var unavailableError: PKAddSecureElementPassError.Codestatic var unknownError: PKAddSecureElementPassError.Codestatic var userCanceledError: PKAddSecureElementPassError.Codelet PKAddSecureElementPassErrorDomain: StringPKAddSecureElementPassViewControllerclass func canAddSecureElementPass(configuration: PKAddSecureElementPassConfiguration) -> Boolvar delegate: (any PKAddSecureElementPassViewControllerDelegate)?init?(configuration: PKAddSecureElementPassConfiguration, delegate: (any PKAddSecureElementPassViewControllerDelegate)?)PKAddSecureElementPassViewControllerDelegatefunc addSecureElementPassViewController(PKAddSecureElementPassViewController, didFinishAddingSecureElementPasses: [PKSecureElementPass]?, error: (any Error)?)PKAddShareablePassConfigurationvar credentialsMetadata: [PKShareablePassMetadata]class func forPassMetadata([PKShareablePassMetadata], action: PKAddShareablePassConfigurationPrimaryAction, completion: (PKAddShareablePassConfiguration?, (any Error)?) -> Void)var primaryAction: PKAddShareablePassConfigurationPrimaryActionPKAddShareablePassConfigurationPrimaryActioncase addinit?(rawValue: UInt)case sharePKApplePayLaterAvailabilitycase availableinit?(rawValue: Int)case unavailableItemIneligiblecase unavailableRecurringTransactionPKAutomaticPassPresentationSuppressionResultcase alreadyPresentingcase cancelledcase deniedinit?(rawValue: UInt)case notSupportedcase successPKBarcodeEventConfigurationDataTypeinit?(rawValue: Int)case signingCertificatecase signingKeyMaterialcase unknownPKBarcodeEventConfigurationRequestvar configurationData: Datavar configurationDataType: PKBarcodeEventConfigurationDataTypevar deviceAccountIdentifier: StringPKBarcodeEventMetadataRequestvar deviceAccountIdentifier: Stringvar lastUsedBarcodeIdentifier: StringPKBarcodeEventMetadataResponseinit(paymentInformation: Data)var paymentInformation: DataPKBarcodeEventSignatureRequestvar amount: NSNumbervar barcodeIdentifier: Stringvar currencyCode: Stringvar deviceAccountIdentifier: Stringvar merchantName: Stringvar partialSignature: Datavar rawMerchantName: Stringvar transactionDate: Datevar transactionIdentifier: Stringvar transactionStatus: StringPKBarcodeEventSignatureResponseinit(signedData: Data)var signedData: DataPKDisbursementErrorPKDisbursementError.Codeinit?(rawValue: Int)case recipientContactInvalidErrorcase unknownErrorcase unsupportedCardErrorstatic var errorDomain: Stringstatic var recipientContactInvalidError: PKDisbursementError.Codestatic var unknownError: PKDisbursementError.Codestatic var unsupportedCardError: PKDisbursementError.Codelet PKDisbursementErrorDomain: StringPKDisbursementErrorKeystatic let contactFieldUserInfoKey: PKDisbursementErrorKeyinit(rawValue: String)PKDisbursementRequestvar applicationData: Data?var currency: Locale.Currencyclass func disbursementCardUnsupportedError() -> any Errorclass func disbursementContactInvalidError(withContactField: PKContactField, localizedDescription: String?) -> any Errorconvenience init(merchantIdentifier: String, currency: Locale.Currency, region: Locale.Region, supportedNetworks: [PKPaymentNetwork], merchantCapabilities: PKMerchantCapability, summaryItems: [PKPaymentSummaryItem])var isDelegatedRequest: Boolvar merchantCapabilities: PKMerchantCapabilityvar merchantIdentifier: Stringvar recipientContact: PKContact?var region: Locale.Regionvar requiredRecipientContactFields: [PKContactField]var summaryItems: [PKPaymentSummaryItem]var supportedNetworks: [PKPaymentNetwork]var supportedRegions: [Locale.Region]?var unsupportedPrimaryAccountIdentifiers: [String]PKDisbursementSummaryItemPKEncryptionSchemestatic let ECC_V2: PKEncryptionSchemeinit(rawValue: String)static let RSA_V2: PKEncryptionSchemePKIdentityAnyOfDescriptorvar descriptors: [any PKIdentityDocumentDescriptor]init(descriptors: [any PKIdentityDocumentDescriptor])PKIdentityAuthorizationControllerfunc cancelRequest()func checkCanRequestDocument(any PKIdentityDocumentDescriptor, completion: (Bool) -> Void)func requestDocument(PKIdentityRequest, completion: (PKIdentityDocument?, (any Error)?) -> Void)PKIdentityButtonvar cornerRadius: CGFloatinit(label: PKIdentityButton.Label, style: PKIdentityButton.Style)PKIdentityButton.Labelcasecontinue``init?(rawValue: Int)case verifycase verifyAgecase verifyIdentityPKIdentityButton.Stylecase blackcase blackOutlineinit?(rawValue: Int)PKIdentityDocumentvar encryptedData: DataPKIdentityDocumentDescriptorfunc addElements([PKIdentityElement], intentToStore: PKIdentityIntentToStore)var elements: [PKIdentityElement]func intentToStore(element: PKIdentityElement) -> PKIdentityIntentToStore?var issuerIdentifiers: [Data]PKIdentityDocumentMetadatavar cardConfigurationIdentifier: Stringvar cardTemplateIdentifier: Stringvar credentialIdentifier: Stringvar documentType: PKAddIdentityDocumentTypevar issuingCountryCode: Stringvar serverEnvironmentIdentifier: Stringvar sharingInstanceIdentifier: StringPKIdentityDriversLicenseDescriptorPKIdentityElementclass var address: PKIdentityElementclass var age: PKIdentityElementclass func age(atLeast: Int) -> Selfclass var dateOfBirth: PKIdentityElementclass var dhsTemporaryLawfulStatus: PKIdentityElementclass var documentDHSComplianceStatus: PKIdentityElementclass var documentExpirationDate: PKIdentityElement- … and 300 more (
isim/data/api-coverage.json.gz)