# Getting paid (/en/features/invoices/getting-paid)

What the customer sees on the pay page, how part payments and installments work, how to record a payment made outside XPay, and what happens to an overpayment.

An invoice can take several payments. Each one is either paid online by the customer or recorded by you. The invoice is paid when nothing remains.

## What the customer sees [#what-the-customer-sees]

The customer opens the invoice from the email, the SMS, or the link or QR code you shared. They do not need an account.

The pay page shows your business name and logo, the invoice number, the **Amount due** and the due date. **View invoice details** opens the items, discounts, tax and totals. **Download invoice** saves the PDF.

Under **Pay this invoice** the customer picks one of the payment methods the invoice accepts, such as card, Apple Pay, Fawry or valU, and pays. Card details are entered in XPay's secure form, and 3D Secure runs on the same page.

The page is in the invoice's language, Arabic or English.

## Paying in full [#paying-in-full]

By default the customer pays the whole amount due in one payment, with no fee added on top.

With a method such as Fawry, the customer gets a reference and pays it afterwards. Until then the page shows **A payment is waiting to be completed**, and the invoice is marked paid as soon as the payment arrives. Only one online payment can be in progress on an invoice at a time.

## Part payments [#part-payments]

If you turned on **Let the customer pay part of the amount**, the page asks &#x2A;*How much would you like to pay?** The customer chooses **Pay in full** or **Pay another amount**.

* The smallest part payment is the **Smallest payment** you set. If you set none, it is 1.00 in the invoice's currency, or the minimum of the payment method if that is higher.
* A part payment must leave enough to pay later. The customer either pays in full or leaves at least the smallest payment.
* After each payment the page shows what was paid and what remains, with **Pay the rest**.

The invoice shows as **Partially paid** until nothing remains.

## Installments [#installments]

On an invoice with a payment plan, the page shows the **Payment plan** with each installment, its due date and its status: **Upcoming**, **Paid** or **Overdue**.

The customer chooses **Pay this installment** or **Pay everything that remains**. Installments are paid in order, so the customer always pays the next unpaid one.

## Receipts [#receipts]

Each payment gets a receipt with its own number, such as `2830-5289`: the same [receipt](/features/transactions/receipts) as any payment, with the invoice's lines and what is left to pay.

* If the invoice has an email address, the customer is emailed the receipt after every payment, online or recorded. The PDF is attached when **Attach the PDF to invoice emails** is on. You can turn the email off in **Settings**, then **Customer emails**.
* On the pay page, **Payments received** lists every payment with a link to its **Receipt**.
* In the dashboard, open the invoice and use the menu on a payment under **Payments**: **View receipt** or **Send receipt**.

Receipts are not emailed in test mode.

## When the link expires [#when-the-link-expires]

The link works for as long as the invoice can be paid.

* After the invoice is **Paid**, the customer can still open the page for 90 days to see the invoice and get receipts. Nothing can be paid there.
* After the invoice is **Void**, the page says the invoice was cancelled and nothing is due. If the invoice was replaced by a new version, the old link opens the new invoice.
* After that the page says **This link has expired**. The customer clicks **Email me a new link**, and XPay emails a new link to the address on the invoice. That link works for 14 days. A new link can be emailed once a day.
* If the invoice has no email address, no link is sent. The customer asks you instead: open the invoice, then use **Download PDF**, or **View receipt** on a payment, and share it with them.

You can also replace the link yourself at any time with **Create new link** on the invoice.

## Record a payment made outside XPay [#record-a-payment-made-outside-xpay]

If the customer paid you in cash, by bank transfer or by cheque, record it so the invoice shows the right amount.

<Steps>
  <Step>
    ### Open the invoice [#open-the-invoice]

    Open the invoice and click **Record payment**. You can record a payment on an invoice that is **Open** or **Uncollectible**.
  </Step>

  <Step>
    ### Enter what you received [#enter-what-you-received]

    * **Amount received.** Any amount. Less than what remains leaves the rest to pay.
    * **Payment method.** **Cash**, **Bank transfer**, **Cheque** or **Other**.
    * **Date received.** Today or an earlier day.
    * **Reference.** A transfer or cheque number. It is printed on the receipt.
    * **Note.** Only your team sees this.
  </Step>

  <Step>
    ### Click Record payment [#click-record-payment]

    The payment appears under **Payments**, and the customer is emailed a receipt if the invoice has an email address and **Successful payments** is on in **Customer emails**.
  </Step>
</Steps>

A recorded payment does not move money through XPay, so it does not appear in your XPay balance or payouts.

If you recorded a payment by mistake, use **Remove payment** on it. The invoice shows that amount as unpaid again, and any credit the payment gave the customer is taken back. Only payments you recorded can be removed. An online payment is [refunded](/features/invoices/credit-notes-and-refunds) instead.

<Callout type="info">
  XPay never shows your bank details on an invoice, the pay page or the emails, and never invites a
  customer to pay outside XPay. If a customer does pay you elsewhere, record it here.
</Callout>

## Overpayments and customer credit [#overpayments-and-customer-credit]

If you record more than what remains, the extra becomes credit for the customer. The **Record payment** form tells you before you save.

An online payment is always for an exact amount, so overpayments come from recorded payments.

Customer credit is a running balance between you and one customer. XPay holds no money for it.

* Credit is used automatically on the customer's next invoice, when that invoice is issued. It shows there as **Credit applied**. Invoices already sent keep what they ask for.
* Credit also comes from a [credit note](/features/invoices/credit-notes-and-refunds) when you choose **Customer credit**.
* If the customer owes you an amount from before, it is added to their next invoice as **Earlier balance owed**.
* Credit is not used on an invoice with a payment plan. It waits for the next invoice.
* If an invoice that used credit is voided, the credit goes back to the customer.

Open the customer to see their **Credit balance** and its **History**. **Adjust credit** lets you **Give credit** or **Take credit back** by hand, with a reason your team can read later.

## Where to next [#where-to-next]

<Cards>
  <Card icon="<Bell />" title="Manage and follow up" href="/features/invoices/manage-and-follow-up">
    Reminders, overdue invoices and collections.
  </Card>

  <Card icon="<Undo2 />" title="Credit notes and refunds" href="/features/invoices/credit-notes-and-refunds">
    Give money back or lower what is owed.
  </Card>

  <Card icon="<Send />" title="Create and send" href="/features/invoices/create-and-send">
    Turn on part payments or build a payment plan.
  </Card>

  <Card icon="<Users />" title="Customer profile" href="/features/customers/customer-profile">
    A customer's invoices and credit in one place.
  </Card>
</Cards>