Check binding eligibility and initialize the `PaymentMethodBinding`.
- Parameter id: The `inAppPinningId` returned from your server.
- Throws: An error if StoreKit is unable to check if the user is eligible or if the user is not eligible to bind a third party payment method.
get · iOS 16.4+
id
TypeScript
get id(): string
Swift declaration
let id: String
The `inAppPinningId` returned from your server
method · iOS 16.4+
bind
TypeScript
bind(): Promise<void>
Swift declaration
func bind() async throws
Bind the payment method to the user's App Store account.
- Throws: An error if the bind process fails.