# New Purchase Key

> Name a new purchase key for the server that reports your app's payments outside the App Store, and create it.

Source: https://air.build/docs/screens/paywall/new-purchase-key/

New Purchase Key is where you name a key before AirPayment makes it. A key lets one server of yours report purchases to AirPayment, for payments outside the App Store. After **Create**, the same sheet turns into [Save Your New Key](https://air.build/docs/screens/paywall/save-your-new-key/), which shows the key's secret once.

## Open it

On [Purchase Keys](https://air.build/docs/screens/paywall/purchase-keys/), tap **New Key** (**+**): at the bottom on iPhone and iPad, at the bottom left on the Mac. It opens as a sheet on every device.

**iPhone**

On iPhone and iPad, **Cancel** is at the top left and **Create** at the top right.

**Mac**

**Cancel** and **Create** are at the bottom right. Return presses **Create**.

## What's on it

| Item | What it does | Default |
| --- | --- | --- |
| **Key Name** | The key's name in the list. Under it: "Where this key is used, for example “payments server”." | Empty |
| **Cancel** | Closes the sheet without making a key. Dimmed while the key is being made. |  |
| **Create** | Makes the key. Dimmed while the name is empty or longer than 100 characters, and while the key is being made. Return in the **Key Name** field also presses **Create**, on every device. |  |

## Create a key

1. Type a **Key Name** that says where the key is used, for example "payments server".
2. Tap **Create**. It spins while the key is made.
3. The sheet shows [Save Your New Key](https://air.build/docs/screens/paywall/save-your-new-key/). Copy the secret before you close it.

Spaces at the start and end of the name are dropped; a name of only spaces counts as empty.

## Messages

| Message | What it means | What to do |
| --- | --- | --- |
| A reason under the name field | The key wasn't made. Your name is still in the field. | Tap **Create** again, or **Cancel**. |
