# 1 - Merchant Setup

## Overview

We've simplified the Apple Pay integration process for you! Novatti handles all the complex setup tasks including Apple registration, certificate management, and domain verification. This guide outlines the straightforward steps you need to complete on your end.

## Your Action Items

### 1\. Ensure HTTPS Security

Make sure your website uses HTTPS encryption. This is required for all Apple Pay transactions to maintain security standards.

### 2\. Share Your Domain Information

Please provide Novatti with your complete domain name so we can begin the setup process on our end.

### 3\. Host the Domain Verification File

We'll provide you with a specific file called `apple-developer-merchantid-domain-association.txt` You'll need to:

-   Place this file in the `/.well-known/` directory on your web server
-   Ensure it's accessible at: `https://<your-domain>/.well-known/apple-developer-merchantid-domain-association.txt`

### 4\. Confirm File Deployment

Once the verification file is live on your server, please notify Novatti immediately. We'll then complete the domain verification process with Apple.

### 5\. Integrate the Apple Pay Button

Add the Apple Pay button to your checkout process using the code implementation. Example available in section 3

### 6\. Set Up Your Backend Server

Deploy your backend server and configure it with:

-   Merchant validation endpoint
-   OAUTH\_TOKEN\_ENDPOINT configuration settings

### 7\. Configure Environment Variables

Set up the necessary environment variables for OAuth and API integration as specified in our technical documentation.

### 8\. Implement Token Handling

Configure your system to send the Apple Pay authorization token to our API once payment authorisation is complete.

### 9\. Testing Phase

-   Use Apple's sandbox test cards for initial testing
-   Ensure you have access to a compatible test device (iPhone, iPad, or Mac with Apple Pay enabled)

## Support

Remember, Novatti handles all Apple-related registrations and certificates, so you can focus on the integration steps above. If you have any questions or need assistance with any of these steps, our technical support team is here to help guide you through the process.
