> 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/implement-nfc-wallet/make-payments/implement-contactless-payment/1.-check-prerequisites.md).

# 1. Check prerequisites

### Requirements

Meet these requirements before you build and validate contactless payment:

* **Device and OS**: iOS 17.4 or later on an NFC-capable device.
* **Apple Account**: An Apple ID registered in the European Economic Area (EEA).
* **Entitlement**: Apple grants the HCE entitlement.
  * Update your Xcode project settings.
  * Update the entitlements `.plist`.
  * Update `Info.plist` to include the entitlement and required metadata.
  * For details, see **Configuring and enabling the entitlement in Xcode** in [Apple HCE entitlement](https://developer.apple.com/support/hce-transactions-in-apps/).
* **Location (testing)**:
  * For iOS 17.4 to iOS 18.1, you must be physically located in the EEA to validate contactless payment.
  * For later iOS versions, see **Testing Requirement** in [Apple HCE entitlement](https://developer.apple.com/support/hce-transactions-in-apps/).

{% hint style="warning" %}
When you submit the HCE entitlement request to Apple, include the complete list of supported AIDs.

Make sure you include the PPSE AID:

* **2PAY.SYS.DDF01** ("325041592E5359532E4444463031" in hexadecimal format)
  {% endhint %}

### Before you initiate contactless payment

#### Check contactless capability

Before you request permission, confirm the device supports contactless payment. Follow [Check contactless capability](/nfc-wallet-sdk-ios/implement-nfc-wallet/check-contactless-capability.md).

#### Request permission

Your digital wallet application must request the **Contactless & NFC** permission. The end user experience is:

<figure><img src="/files/uNpr7b5MS6s3v8VlbAkM" alt="iOS prompt for Contactless &#x26; NFC permission"><figcaption><p>iOS prompt for Contactless &#x26; NFC permission.</p></figcaption></figure>

After the prompt, the end user can manage the permission in **Settings** > **your issuer application** > **Contactless & NFC**.

Use the following code to request permission:

```swift
let contactlessPaymentSession = ContactlessPaymentSession()
do {
  try await contactlessPaymentSession.requestAuthorization()
} catch ContactlessPaymentSession.Error.permissionNotAccepted(let reason) {
  // Permission not granted.
} catch {
  // other errors due to device eligibility
}
```

{% hint style="info" %}
Request the **Contactless & NFC** permission when the end user provisions their first digital card.

If the end user rejects the permission, the issuer application cannot perform contactless payment.
{% 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/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.
