> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/make-payments/implement-contactless-payment/1.-check-prerequisites.md).

# 1. 前提条件を確認する

### 要件

非接触決済を構築して検証する前に、次の要件を満たしてください:

* **デバイスとOS**: NFC対応デバイス上の iOS 17.4 以降。
* **Apple Account**: 欧州経済領域（EEA）で登録された Apple ID。
* **エンタイトルメント**: Apple が HCE エンタイトルメントを付与します。
  * Xcode プロジェクトの設定を更新します。
  * エンタイトルメントを更新する `.plist`.
  * 更新 `Info.plist` にエンタイトルメントと必須のメタデータを含めます。
  * 詳細は次を参照してください： **Xcode でエンタイトルメントを構成して有効にする** で [Apple HCE エンタイトルメント](https://developer.apple.com/support/hce-transactions-in-apps/).
* **場所（テスト）**:
  * iOS 17.4 から iOS 18.1 では、非接触決済を検証するために物理的に EEA 内にいる必要があります。
  * 以降の iOS バージョンについては、 **テスト要件** で [Apple HCE エンタイトルメント](https://developer.apple.com/support/hce-transactions-in-apps/).

{% hint style="warning" %}
HCE エンタイトルメントのリクエストを Apple に送信するときは、サポートされる AID の完全な一覧を含めてください。

PPSE AID を必ず含めてください:

* **2PAY.SYS.DDF01** （16進形式では「325041592E5359532E4444463031」）
  {% endhint %}

### 非接触決済を開始する前に

#### 非接触対応を確認する

許可をリクエストする前に、デバイスが非接触決済をサポートしていることを確認してください。次に従ってください [非接触対応を確認する](/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/check-contactless-capability.md).

#### 許可をリクエストする

あなたのデジタルウォレットアプリケーションは **Contactless & NFC** の許可をリクエストする必要があります。エンドユーザーの体験は次のとおりです。

<figure><img src="https://3629066568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bUtiXdSFHu8lmOj8A0X%2Fuploads%2FhlGrc9s36fYZG6OviBJB%2F1.%20Check%20prerequisites.svg?alt=media&amp;token=10973b78-3aa3-4bf1-81f4-4e77da0c2531" alt="iOS prompt for Contactless &#x26; NFC permission"><figcaption><p>Contactless &#x26; NFC の許可に関する iOS のプロンプト。</p></figcaption></figure>

プロンプトの後、エンドユーザーは **設定** > **あなたのイシュアアプリケーション** > **Contactless & NFC**.

次のコードを使用して許可をリクエストします:

```swift
let contactlessPaymentSession = ContactlessPaymentSession()
do {
  try await contactlessPaymentSession.requestAuthorization()
} catch ContactlessPaymentSession.Error.permissionNotAccepted(let reason) {
  // 許可が付与されませんでした。
} catch {
  // デバイスの有効性に関するその他のエラー
}
```

{% hint style="info" %}
次の **Contactless & NFC** を、エンドユーザーが最初のデジタルカードをプロビジョニングするときにリクエストします。

エンドユーザーが許可を拒否した場合、イシュアアプリケーションは非接触決済を実行できません。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/make-payments/implement-contactless-payment/1.-check-prerequisites.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
