One Logo Pool Ball
StoreKit · IOS API REFERENCE

PaymentMethodBinding

struct · iOS 16.4+ · SDK 27.1

struct PaymentMethodBinding

Binds a third-party payment method to a user's App Store account.

Members (3)

init · iOS 16.4+

init

TypeScript
static init(id: string): Promise<PaymentMethodBinding>
Swift declaration
init(id: String) async throws

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.

Skipped declarations

No declarations were skipped in this snapshot.

All StoreKit types →