<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/PaymentMethodBinding",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit20PaymentMethodBindingV"
  },
  "title" : "PaymentMethodBinding"
}
-->

# PaymentMethodBinding

A binding that makes payment methods available in apps for an Apple Account.

```
struct PaymentMethodBinding
```

## Overview

This functionality is available only to eligible apps with server entitlements. The initializer [`init(id:)`](/documentation/StoreKit/PaymentMethodBinding/init(id:)) throws an error if your app doesn’t have the appropriate entitlement to use this API, or if the user isn’t eligible.

> Important:
> The ``doc://com.apple.storekit/documentation/StoreKit/PaymentMethodBinding/init(id:)`` and ``doc://com.apple.storekit/documentation/StoreKit/PaymentMethodBinding/bind()`` methods may display a system prompt that asks users to authenticate with their Apple Account. Call these methods only after an explicit user action, like tapping or clicking a button.

Initialize this structure using the in-app binding identifier that your server receives from the Apple server when your server initiates payment method binding. Call the [`bind()`](/documentation/StoreKit/PaymentMethodBinding/bind()) method to prompt users to confirm adding the payment method and making it their primary payment method.

## Topics

### Determining eligiblity

[`init(id:)`](/documentation/StoreKit/PaymentMethodBinding/init(id:))

Creates the payment method binding for eligible apps and users.

### Creating and identifying bindings

[`id`](/documentation/StoreKit/PaymentMethodBinding/id)

The in-app binding identifier.

### Binding payment methods

[`bind()`](/documentation/StoreKit/PaymentMethodBinding/bind())

Asks the user to confirm whether to add the payment method to their Apple payment methods.

### Reading errors

[`PaymentMethodBinding.PaymentMethodBindingError`](/documentation/StoreKit/PaymentMethodBinding/PaymentMethodBindingError)

Error information for payment method binding.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)