---
title: "Payments"
description: "Track how much of each order is paid, record cash and bank transfers, cancel mistaken entries and handle refunds."
canonical_url: "https://content.stocka.cloud/en/finances/payments"
---
# Payments

> Track how much of each order is paid, record cash and bank transfers, cancel mistaken entries and handle refunds.

Every order in STOCKA keeps its own money record: which payments came in, how much is still due and whether anything is owed back to the customer. This page explains how that record works and how to add or correct payments.

<note>

Payments, invoices and receipts are **additional modules** available on the **Pro** plan and higher. The owner turns them on in **Company → Modules** (see [Set up payment methods](#set-up-payment-methods) below).

A module that is off is really off: its pages and actions answer *This module is turned off for your company — turn it on in Company → Modules*, and nothing is issued for it automatically. Recording manual payments works as long as at least one of the three modules is on, so a company that only uses **Receipts** can still record cash.

</note>

## Payment state vs. order status

An order has two separate things you can look at:

- **Order status** (New, Accepted, Ready to Ship, Shipped…) describes *fulfilment* only. Money never changes it. See [Order lifecycle](https://content.stocka.cloud/en/orders/order-lifecycle).
- **Payment state** describes *money*. STOCKA calculates it automatically by comparing the order total with the payments that have actually been received. You never set it by hand.

This means an order can be shipped and still owe money, or be fully paid while it is still being packed.

<table>
<thead>
  <tr>
    <th>
      Payment state
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <badge color="neutral">
        Unpaid
      </badge>
    </td>
    
    <td>
      No money received yet.
    </td>
  </tr>
  
  <tr>
    <td>
      <badge color="warning">
        Partially paid
      </badge>
    </td>
    
    <td>
      Some money received (for example a prepayment); part of the total is still due.
    </td>
  </tr>
  
  <tr>
    <td>
      <badge color="success">
        Paid
      </badge>
    </td>
    
    <td>
      Received exactly the order total. An order with a total of zero also counts as paid.
    </td>
  </tr>
  
  <tr>
    <td>
      <badge color="info">
        Overpaid
      </badge>
    </td>
    
    <td>
      Received more than the order total — the difference should go back to the customer.
    </td>
  </tr>
</tbody>
</table>

Only payments with the status **Paid** count towards the payment state. Pending, failed, expired, canceled and refunded payments are ignored.

### Where you see it

- **Order page** — under the order total there is a progress bar with **Paid**, **Due** and (if relevant) **Refund to customer** amounts. The summary chips at the top of the order also show the payment state, with a percentage for partial payments.
- **Orders list** — the **Finances** column shows small pills: *Invoice → payment state → Receipt*, plus **Refunded** or **Refund owed** where it applies.
- **Finances** section — the same pills on every invoice row. See [Finance hub](https://content.stocka.cloud/en/finances/finance-hub).

<tip>

The Warehouse role never sees money: prices, totals, payments and documents are hidden from them.

</tip>

## Payment statuses

Each individual payment also has its own status:

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Pending
      </strong>
    </td>
    
    <td>
      An online checkout was started but the provider hasn't confirmed it yet.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Paid
      </strong>
    </td>
    
    <td>
      Money received. Counts towards the order's payment state.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Failed
      </strong>
    </td>
    
    <td>
      The provider reported that the payment did not go through.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Expired
      </strong>
    </td>
    
    <td>
      The checkout was never completed, or it was closed because the order became fully paid.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Canceled
      </strong>
    </td>
    
    <td>
      A manual payment that was canceled because it was recorded by mistake. Kept for the record.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Refunded
      </strong>
    </td>
    
    <td>
      The provider reported that the money was returned to the customer.
    </td>
  </tr>
</tbody>
</table>

On the order page, failed and expired online attempts are hidden so the list only shows real money movements. Canceled payments stay visible, crossed out.

## Two ways money comes in

### Online payments

When a customer pays through a [payment link](https://content.stocka.cloud/en/finances/pay-links), they choose one of your online providers (Stripe, Monobank, LiqPay or Fondy) and pay on the provider's own page. The payment appears as **Pending** and turns **Paid** as soon as the provider confirms it to STOCKA. You don't need to do anything.

An online checkout always charges the **balance still due**, never more. Once nothing is due, any open checkouts for that order are expired so the customer can't pay twice.

<warning>

For **Stripe** payments to be confirmed automatically, copy the **Webhook URL** from Stripe's settings in **Company → Modules → Payments** into the Stripe dashboard. Monobank, LiqPay and Fondy need no setup: STOCKA gives them its address with every payment. If a confirmation is lost, STOCKA asks the provider for the status itself, within about 10 minutes or when the customer opens the pay link again.

</warning>

### Manual payments

Money that arrives outside an online provider — cash at the counter, a bank transfer to your account, or a card terminal — is recorded by hand. There is no automatic bank-statement import, so bank transfers also need to be recorded manually.

## Record a manual payment

**Who can do it:** Owner, Accountant and Manager.

<steps level="3">

### Open the order

Go to **Orders** and open the order. The payment strip is right under the order total.

### Click Record payment

The **Record payment** button appears while something is still due.

### Fill in the details

The amount is pre-filled with the balance due — change it if the customer paid only part.

### Save

Click **Record payment**. The payment appears in **Documents and payments** and the payment state updates immediately.

</steps>

<field-group>
<field :required="true" name="Amount" type="money">

How much you received, in the order's currency. Must be above zero. You may enter **less** than the balance (a partial payment) or **more** (the order then shows as overpaid with a refund due).

</field>

<field :required="true" name="Method" type="select">

**Cash**, **Bank transfer** or **Card terminal**. Defaults to Cash.

</field>

<field :required="true" name="Received on" type="date">

The day the money arrived. Defaults to today. It can't be in the future — you'll see "The payment date can't be in the future".

</field>
</field-group>

### Record a payment while creating an order

On the last step of [creating an order](https://content.stocka.cloud/en/orders/create-order), the **Payment** section offers three options:

- **Not paid yet** — record payments or send a link later, from the order page.
- **Send a payment link** — the payment link is ready to copy or email as soon as the order is created. If the **Invoices** module is on, the invoice is issued with the order. Disabled until at least one payment method is set up.
- **Already paid** — record the payment now. Shows the same Amount / Method / Received on fields. If you leave **Amount** empty, the whole order total is recorded. Only shown to roles that can record payments.

The create button changes to **Create order & record payment** or **Create order & payment link** accordingly. If the order is created but the payment fails to save, you'll be told to record it from the order page.

## What happens automatically after a payment

When a payment becomes **Paid** (online or manual):

- The order's payment state and balance update.
- If the **Receipts** module is on and **Auto-issue on payment** is enabled, a [receipt](https://content.stocka.cloud/en/finances/receipts) is issued for that payment and emailed to the customer.
- If the **Invoices** module is on and **Auto-issue on payment** is enabled, an [invoice](https://content.stocka.cloud/en/finances/invoices) is issued if the order doesn't have one yet; existing invoices move to **Partially paid** or **Paid**.
- Once nothing is due, any open online checkouts for the order are closed.

These follow-up actions are recorded in the order's activity log as done by **System**.

## Cancel a mistaken manual payment

If you recorded a payment by mistake (wrong order, wrong amount), cancel it and record it again correctly.

**Who can do it:** Owner, Accountant and Manager.

<steps level="3">

### Find the payment

On the order page, open **Documents and payments** and find the payment row.

### Open its menu

Click the **⋯** button next to the amount and choose **Cancel payment**.

### Confirm

The dialog warns that its receipt will be voided and the amount will be due again. Click **Cancel payment**.

</steps>

After canceling:

- The payment stays in the list, crossed out, with the **Canceled** badge — it is never deleted, so the history stays complete.
- Its receipt (if any) becomes **Void**.
- The balance reappears and invoices move back from **Paid** to their earlier status.

<warning>

**Only manual payments can be canceled**, and only **before the order ships**. Once the order is Partially Shipped, Shipped, at the carrier's branch, Received or Returned, the **Cancel payment** option disappears — to give money back after shipping, mark the order **Returned** (see [Refunds](#refunds)). Online payments can never be canceled here; they are reversed with a refund through the provider.

</warning>

## Refunds

STOCKA **never sends money back automatically**. Returning money is always something you do yourself — in the provider's dashboard for online payments, or in cash / by bank transfer for manual ones. STOCKA keeps track of what is owed.

### When an order is canceled or returned

When an order that has received money is moved to **Canceled** or **Returned**, every paid payment on it is flagged **Refund owed** (an orange badge on the payment row). The order shows the **Refund owed** pill in lists, and the amount is added to the **Refunds to return** card in [Finances](https://content.stocka.cloud/en/finances/finance-hub).

To complete the refund:

1. Return the money to the customer (provider dashboard, cash or bank transfer).
2. For **Monobank, LiqPay and Fondy**, the provider tells STOCKA about the refund and the payment switches to **Refunded** automatically. Its receipt is voided and the order shows the **Refunded** pill.

<caution>

At the moment the **Refund owed** flag is cleared automatically only when Monobank, LiqPay or Fondy report the refund. Refunds made through **Stripe**, and money returned for **manual** payments on shipped or returned orders, are not reported back — the payment keeps showing **Refund owed**. There is no "mark as refunded" button yet.

</caution>

### Overpayment

If the customer paid more than the order total (for example, a manual entry plus an online payment), the order shows as <badge color="info">

Overpaid

</badge>

 with **Refund to customer** and the extra amount in the payment strip. STOCKA does not record the refund for you — return the difference to the customer yourself. If the overpayment came from a mistaken manual entry, simply [cancel that payment](#cancel-a-mistaken-manual-payment) instead.

<note>

A late confirmation from a provider can also cause an overpayment: if a customer completes an old checkout after the order was already paid another way, the money still arrived, so STOCKA records it and shows a refund due.

</note>

## Editing an order after payment

You can still change an order's items, customer or delivery after money has come in — up to and including **Ready to Ship**. Once the order is on the road, its contents are locked. See [Edit and cancel orders](https://content.stocka.cloud/en/orders/edit-and-cancel).

When an edit changes the **total** or the **customer**:

- The payment state is recalculated — for example, adding an item to a paid order moves it back to **Partially paid** with a new balance due.
- Issued invoices no longer match, so they are voided and a fresh full invoice is issued automatically. The new invoice is **not** emailed — send it yourself when you're ready (see [Invoices](https://content.stocka.cloud/en/finances/invoices)).
- The customer's existing [payment link](https://content.stocka.cloud/en/finances/pay-links) keeps working and now asks for the new balance.

## Set up payment methods

Payment methods are configured by the company owner in **Company → Modules → Payments** (turn the **Payments** module on in **Additional Modules**, then open its settings).

Under **Payment Providers** each method has an **Install** button. After installing, open **Configure**, fill in the fields, click **Save configuration** and switch the provider on with the toggle (badge **Active**).

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      What you enter
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Stripe
      </strong>
    </td>
    
    <td>
      Stripe Secret Key, Stripe Public Key, Webhook Secret
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Monobank
      </strong>
    </td>
    
    <td>
      Merchant Token
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        LiqPay
      </strong>
    </td>
    
    <td>
      Public Key, Private Key
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Fondy
      </strong>
    </td>
    
    <td>
      Merchant ID, Secret Key
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Bank transfer
      </strong>
    </td>
    
    <td>
      Recipient, IBAN, Bank, SWIFT / BIC (international transfers only), Account number (only where IBAN is not used)
    </td>
  </tr>
</tbody>
</table>

- **Stripe** shows a **Webhook URL** — paste it into the Stripe dashboard's webhook settings. Other online providers need no webhook setup.
- **Bank transfer** counts as set up only when it has an **IBAN** or an **Account number**. These details are shown on the [pay page](https://content.stocka.cloud/en/finances/pay-links) with copy buttons and printed on [invoices](https://content.stocka.cloud/en/finances/invoices).
- Saved secret keys are never shown again: the field shows **Configured**. To change a key, type the new value and save; leaving the field empty keeps the old one.

<note>

Online checkouts count towards the monthly **Payment transactions / month** limit of your plan: **100** on Pro, unlimited on Business. **Every** checkout a customer starts counts, even one they don't finish. Manual payments don't count. When the limit is reached, new online checkouts are refused until your next billing month (or until you upgrade); the customer can still pay by bank transfer. See [Subscription and billing](https://content.stocka.cloud/en/account/subscription-and-billing).

</note>

## Who can do what

<table>
<thead>
  <tr>
    <th>
      Action
    </th>
    
    <th align="center">
      Owner
    </th>
    
    <th align="center">
      Accountant
    </th>
    
    <th align="center">
      Manager
    </th>
    
    <th align="center">
      Other roles
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      See payments on orders
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      Delivery: ✓ · Warehouse: —
    </td>
  </tr>
  
  <tr>
    <td>
      Record a manual payment
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      —
    </td>
  </tr>
  
  <tr>
    <td>
      Cancel a manual payment
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      —
    </td>
  </tr>
  
  <tr>
    <td>
      Copy a payment link
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      —
    </td>
  </tr>
  
  <tr>
    <td>
      Configure payment methods
    </td>
    
    <td align="center">
      ✓
    </td>
    
    <td align="center">
      —
    </td>
    
    <td align="center">
      —
    </td>
    
    <td align="center">
      —
    </td>
  </tr>
</tbody>
</table>

## Common questions

<accordion>
<accordion-item label="The customer paid online but the order still shows Unpaid.">

The provider hasn't confirmed the payment yet, or STOCKA isn't receiving confirmations. Check that the provider is **Active**; for Stripe, also that its **Webhook URL** is entered in the Stripe dashboard. For other providers STOCKA re-checks the status within about 10 minutes.

</accordion-item>

<accordion-item label="I don't see the Cancel payment option.">

It is only available for manual payments with status Paid, on orders that haven't shipped yet, and for Owner, Accountant or Manager.

</accordion-item>

<accordion-item label="Can I record a payment for more than the balance?">

Yes. The order becomes Overpaid and shows the amount to refund to the customer.

</accordion-item>

<accordion-item label="Can I import my bank statement?">

Not yet. Record incoming bank transfers with **Record payment → Bank transfer**.

</accordion-item>
</accordion>


## Sitemap

See the full [sitemap](https://content.stocka.cloud/sitemap.md) for all pages.
