# Error code: 18

This error occurs when you are using the Apple Pay function (Pay Using Apple Wallet) in your application, and you have not enabled the Apple Pay payment processing option in your App Store account.

To resolve the problem, follow the steps indicated below:

Step 1: Go to Certificates, Identifiers, and Profiles and navigate to the Identifiers section.

<figure><img src="/files/4TWfqKdSq8GW1d7zIcbB" alt=""><figcaption></figcaption></figure>

Step 2: Find the Compilation ID of the App in which you are encountering the error from the list, then click on it to access the settings.

<figure><img src="/files/qXs1b9f4Fn90VKKef7ga" alt=""><figcaption></figcaption></figure>

Step 3: Once inside, scroll down to the Capabilities section and find the one named "Apple Pay Payment Processing." Click the checkbox to enable it, then the "Configure" button will become available. Click on that button.

<figure><img src="/files/7iYC9hethZOkS6C0VWf2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nvagT913rmRBcSeAKhdG" alt=""><figcaption></figcaption></figure>

Step 4: Select the Merchant ID you have previously created or proceed to create a new one. Once you have selected it, click on the continue button.

<figure><img src="/files/V3ngln2sLFSjoSZgFnXC" alt=""><figcaption></figcaption></figure>

At this point, you will have assigned the Merchant ID to the Apple Pay payment process.

<figure><img src="/files/Dfp1Ay0i9nEdedf0VOyf" alt=""><figcaption></figcaption></figure>

Compile again, if the compilation processes successfully, the problem has been resolved. If it returns an error or presents another issue during the key deletion process, proceed to the next step.

Step support: Contact support via the editor's chat or at the following phone number, sending a message with the following information:

<https://wa.me/+14844608334>

1.-Contact E-Mail

2.-URL to the application with error

3.-Error code sent to email (Include email capture)

4.-Indicate the previous actions that have been carried out before sending the message (Mention if the steps of a particular Post were followed)


---

# Agent Instructions: 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:

```
GET https://docs.apphive.io/global-functions-1/compilation-errors/error-code-18.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
