# Purchase

> One transaction from AirPayment: its amount and status, what Apple or your server said about it, the transaction IDs to copy, and deleting the record.

Source: https://air.build/docs/screens/paywall/purchase/

The Purchase page is one transaction from the [AirPayment](https://air.build/docs/screens/paywall/airpayment/) tab. It shows what was paid and whether it was refunded or a test, the details Apple or your server sent, the transaction IDs to copy, and **Delete Record**. Its title is the product ID, with a count when more than one was bought, for example "pro.coins × 3".

## Open it

**iPhone**

- On the **AirPayment** tab, tap a transaction under **Transactions**. On iPhone it opens as the next page; **Back** returns to the tab. On iPad beside the chat, it opens as a sheet; **Done** at the top right closes it.
- Or tap **Open Purchase** on a purchase notification.

**Mac**

- On the **AirPayment** tab, click a transaction under **Transactions**. It opens as a sheet; **Done** at the bottom right closes it. Return presses **Done**.
- Or click **Open Purchase** on a purchase notification.

## What's on it

From top to bottom:

| Item | What it shows | When it shows |
| --- | --- | --- |
| Amount | What was paid, in the purchase's currency. Struck through when refunded; a dash when the App Store sent no price. | Always |
| **Completed** or **Refunded** | Whether the purchase stands or was refunded. | Always |
| **Sandbox** | A test purchase, from TestFlight or Apple's sandbox. It doesn't count toward revenue. | Test purchases |

**Details**

| Row | What it shows | When it shows |
| --- | --- | --- |
| **Product** | The product ID, in full. | Always |
| **Source** | **App Store**, or **Your server** for a purchase your own server reported with a [purchase key](https://air.build/docs/screens/paywall/purchase-keys/). | Always |
| **Paid With** | How it was paid, in your server's own words, for example "WeChat Pay". | Purchases your server reported, when it said how |
| **Type** | The kind of purchase, as reported. | When reported |
| **Quantity** | How many were bought. | When reported |
| **Storefront** | The App Store country or region. | When reported |
| **Purchased** | Date and time of the purchase (or, without one, when AirPayment received it). | Always |
| **Refunded** | Date and time of the refund. | Refunded purchases |
| **App Version** | The app's version, with its build in brackets. | When reported |
| **Device** | The device model and its system version. | When reported |

**Transaction**

| Row | What it shows or does | When it shows |
| --- | --- | --- |
| **Transaction ID** | The transaction's ID. Select it, or tap the copy button beside it. | Always |
| **Original Transaction ID** | The ID of the first purchase this one renews or restores. Copy it the same way. | When it differs from the Transaction ID |
| **Delete Record** | Removes the record from AirPayment. Under it: "This removes the record only. It does not refund the purchase." | Always |

The copy button shows a check mark for a moment once copied. A long product ID or transaction ID is shortened in the middle to fit; the copy button copies it whole.

## Delete the record

1. Tap **Delete Record**. The page closes.
2. The app asks **Delete Purchase Record?**: "This removes the record only. It does not refund the purchase." Tap **Delete Record**.

The purchase leaves the list on [AirPayment](https://air.build/docs/screens/paywall/airpayment/). The customer isn't refunded: refunds are Apple's.

## Messages

| Message | What it means | What to do |
| --- | --- | --- |
| **Delete Purchase Record?**: "This removes the record only. It does not refund the purchase." | You chose **Delete Record**. | **Delete Record** to remove it, or close the question to keep it. |
| **That Didn’t Work**, with the reason | Shown on the AirPayment tab when deleting failed. The record is still there. | Tap **OK** and try again. |

**Why are there two transaction IDs?**

A renewal or a restore gets its own **Transaction ID**; the **Original Transaction ID** is the first purchase it follows from. A first purchase has only one.

**Can I refund a purchase here?**

No. **Delete Record** only removes AirPayment's record. Refunds are handled by Apple.
