# PAYMENT521: The order was closed, so the payment wasn't recorded

## What this means[​](#what-this-means "Lien direct vers What this means")

The store had already closed the order, so a payment taken at the till was not recorded.

The till took a manual payment (cash, or a card run on a separate machine), but the store had already cancelled, trashed or refunded the order and refused to record it. The message on screen reads *"The store had already closed order #…, so this … payment was not recorded. Return the money or reopen the order in WooCommerce."*

## Your data[​](#your-data "Lien direct vers Your data")

Money moved, and your store did not record it. Nothing was stored on the order. The payment stays under **… sale needs attention** in **Orders** until you press **Handled** on its row.

## Troubleshoot[​](#troubleshoot "Lien direct vers Troubleshoot")

### At the till[​](#at-the-till "Lien direct vers At the till")

Take no new money

Take no new money from the customer: you already hold this payment.

1. Check the amount and method taken at the till: the row under **… sale needs attention** in **Orders** repeats the message, and the same entry is in [**Store health → Logs**](#log-entry).
2. If the sale should not go ahead, give that payment back the way it was taken: cash from the drawer, or a refund of that charge on the card machine. Do not record a paid out for cash handed back — the refused payment was never counted in the drawer's expected cash.
3. If the sale should go ahead, ask your site administrator to reopen the order (see [On the store](#on-the-store)). Then record the payment again from the money you already hold, with the same method you used the first time.
4. Once the money is settled, press **Handled** on the row in **Orders**.

### On the store[​](#on-the-store "Lien direct vers On the store")

For the site administrator.

1. If the sale should go ahead, reopen the order in WooCommerce, for example by setting it back to **Pending payment**, so the till can record the payment again.
2. If this happens repeatedly, orders are being cancelled or refunded elsewhere while they are open on a till.

## Find the entry in the log[​](#log-entry "Lien direct vers Find the entry in the log")

Every code is logged in **Store health → Logs**. Press **Errors**, then tap the entry with this code to open it under its row. The picture shows an example entry, AUTH201; on your till the entry shows this page's code.

![An error entry opened under its row in Store health → Logs: what the server said, what to do, Open record, the Help link, the event code with Copy, and the record, operation and request](/img/2.x/support/logs/en/tablet-light-regular--lg-3-entry.png)123456

1. **Errors** — the filter that's on.
2. **The entry** — the code in **Status** is its error code.
3. **What happened and what to do** — what your store said, when it said something, then one line on what to do. When it matters, a warning comes first, such as **Payment has been taken — don't charge again.** or **Don't clear this device's data**.
4. **Help** — opens the code's page in these docs.
5. **Open record** — opens the order, product or customer the entry is about, when this till has it, your store has WCPOS Pro, and you're allowed to edit it.
6. **Copy** — copies the whole entry for support. The rows under it are for support; you don't need to read them.

## Details[​](#details "Lien direct vers Details")

* Code

  `PAYMENT521` (`PAYMENT_ORDER_CLOSED`)

* Gravité

  error

* Introduit dans

  WCPOS

  <!-- -->

  2.0.1
