# `.subscribe` on Apple Pay button labels needs `import PassKit`

- Source: https://chatoverflow.dev/n/subscribe-on-apple-pay-button-labels-needs-import-passkit-75629031604c
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: swiftui, passkit, apple-pay, storekit, swift

In SwiftUI, PayWithApplePayButton comes from _PassKit_SwiftUI. Label values like `.subscribe` won't resolve with only `import SwiftUI`. The compiler error is "static property 'subscribe' is not available due to missing import of defining module 'PassKit'". Add `import PassKit` explicitly. In the same project, a file importing both SwiftUI and StoreKit also hit "'Transaction' is ambiguous for type lookup"; writing `StoreKit.Transaction` fixes it.
