# Take client payments through Stripe

Put an amount on a shared Truetask task and let the client pay it from their page into your own Stripe account, with deposits, balances and receipts.

URL: https://docs.truetask.io/clients/payments

A client payment in Truetask is an amount you put on a task shared with a client, which they pay from their own page.
They see it in the group of things you need from them, and pay it there.
The money goes from your client to your own Stripe account: nothing passes through Truetask, and Truetask holds no key or account of its own.

A payment is not an invoice and not a ledger.
It is one amount, what it is for and when it is wanted, with a record of everything that happened to it.

## Putting an amount on a task

Open the task and use the plus chip under its title, **Add**, then **Payment**.
Once a task has a payment, a money chip sits under the title instead, and clicking it opens the same **Payments** panel.

![The Payments panel on a task with a deposit and a held balance, and the capture row with Amount, Due date, What for and Payment link, while no Stripe account is connected](https://docs.truetask.io/screenshots/client-payments-panel.webp)

1. Type the amount under **Amount**, like `1200` or `1200.50`, and the three-letter currency code beside it, such as `EUR`.
2. Pick **Due date** if you want to say when it is wanted. Leave it empty and the row reads **Due**.
3. Write **What for** in the client's words, such as "Deposit" or "Final invoice". This is the line the client reads.
4. Press **Add**, or <kbd>Enter</kbd> in **What for**.

Adding the payment is the decision to show it.
There is nothing to switch on afterwards: the client sees it at once on a task already shared with them, and on a task you share later the moment it is shared.

The currency starts as your Stripe account's own currency, else the one the task was last billed in, else USD.
Amounts in two currencies are never added up: they stay separate rows.

Only people who can edit the board can add or change a payment.
A Viewer reads the panel and cannot change it.

### What the chip says

| Chip | Means |
| --- | --- |
| An amount | What the task is still owed, when it is all in one currency. |
| **2 due** | Payments are due in more than one currency, so there is no single total. |
| **Paid** | Nothing on the task is still owed. |

## How the client pays

On the client's page, each payment is one row: what it is for, its date and your reference, a state chip, and the button.

![Payments on a client's page: a deposit with a Pay button that opens the firm's own payment link, and the balance held as Later](https://docs.truetask.io/screenshots/client-payments.webp)

| Your setup | What the client presses |
| --- | --- |
| Stripe connected | **Pay** with the amount on the button. It opens Stripe's own payment page, and they come back to their page when they are done. |
| No Stripe, but a payment link on the row | **Pay** with the amount, opening your link. The page shows **You will pay at** and the link's host under the button. |
| Neither | No button. The row shows the amount, for a client who pays you by transfer. |

The client types their card on Stripe's page, never on Truetask's.
Stripe offers whatever payment methods you turned on in your own Stripe account, and its page follows the client's browser language.

Back on their page after paying, the client reads **Thank you, that is paid.**
The page only says so once Stripe confirms it: coming back from Stripe is never taken as proof on its own.
A client who pays and closes the tab is still recorded, through Stripe's own notification to your workspace.

A late payment never turns red on the client's page, and Truetask does not send reminders about payments.

### A payment link without Stripe

With no Stripe account connected, the capture row has a fourth box, **Payment link**: an `https://` address on your own payment provider or bank.
On a payment you already added, open the row's menu and choose **Payment link** to set, change or clear it.

Truetask cannot see money paid through a link.
When it arrives, mark the payment paid yourself.

## Connecting Stripe

An owner or admin connects the workspace's own Stripe account once.
Open the **App menu**, choose **Integrations**, and open the **Stripe** card.
While no account is connected, the **Connect a payment account** link at the foot of a task's **Payments** panel opens the same card.

1. **Credentials**: paste a **Restricted API key** from the Stripe Dashboard, under Developers, API keys.
   A restricted key needs write access on Checkout Sessions and Webhook Endpoints, and read access on Account.
   A full secret key works too.
   Live or test mode follows the key you paste.
   The key is the only thing you paste.
2. **Check**: Truetask asks Stripe for the account and shows its name.
   It reads **Clients can pay from their page now, and the money goes straight to this account.**, or, when Stripe has not finished checking your account, warns that a payment would be refused at the last step.

Connecting also registers a webhook on your Stripe account, so a payment is recorded even when the client never comes back to their page.
A publishable `pk_` key is refused: it cannot take a payment.
If Stripe will not register the webhook, the connection still stands; see [When Stripe refuses the webhook](https://docs.truetask.io/clients/payments#when-stripe-refuses-the-webhook).

While Stripe is connected and working, the **Payment link** box is hidden, because the Stripe button always wins over a link.
A connection that stopped working is not offered to clients: their page shows the amount with no button until it is fixed.

Open the Stripe card again to see where it stands.

| Row | What it shows |
| --- | --- |
| **Account** | The Stripe account's name |
| **Payments** | **Clients can pay**, or **Stripe is still checking the account** |
| **Currency** | Your Stripe account's own currency, the one a new amount starts in |
| **API key** | The key's kind and its last four characters, so live and test mode read at a glance |
| **Webhook** | **Records each payment**, or **Not set up** |
| **Last checked** | When the key was last verified |

**Check connection** verifies the key again and, while the webhook is not set up, tries to register it.
**Update credentials** takes a new key once Stripe no longer accepts the old.
Without the webhook, a payment is recorded when the client comes back to their page, not the moment they pay.

To stop taking payments, open the Stripe card and choose **Disconnect**.
Clients can no longer pay from their page until it is connected again, and payments already on tasks stay.
Truetask also removes the webhook it added to your Stripe account.

### When Stripe refuses the webhook

The connection stands even when Stripe will not register the webhook.
The **Check** step then says **Stripe could not be pointed back at this instance**, followed by Stripe's own reason, and shows the **Webhook URL** Stripe would send each payment to.

The two usual reasons:

- The key cannot write Webhook Endpoints: give the restricted key that permission in the Stripe Dashboard.
- Stripe does not accept the address: it has to be public and on HTTPS.

Fix what Stripe named, then open the Stripe card and press **Check connection**.
It sets the webhook up with the key Truetask already holds, so you do not paste anything again.
Until it works, the card's **Webhook** row reads **Not set up**, the note under it repeats Stripe's reason after **Stripe said:**, and a payment is recorded when the client comes back to their page.

## A deposit and a balance

To ask for part of the price now and the rest later, open a due payment's menu and choose **Split into a deposit and a balance**.

1. Type the **Deposit**. It starts at half, and has to be more than nothing and less than the whole.
2. Optionally pick **Ask for the balance from**, a day from which the balance is asked whether or not the deposit has been paid.
3. Press **Split**.

The payment becomes the deposit, and a second row is raised for the balance.
Both rows say what the whole comes to: **Deposit on a total of** and **Balance on a total of**.

While the deposit is still due, the balance is held: the client sees it with a **Later** chip and **After the deposit is paid** (or **From** the day you picked), and there is no button to press.
Paying the deposit, refunding it, withdrawing it or reaching the day you picked lifts the hold, and the balance becomes an ordinary due payment.

A payment that is already a deposit or a balance cannot be split again.

## Receipts

Every payment where money arrived has a receipt, as a PDF.

- The client downloads it from **Receipt** under the paid row on their page, in their browser's language.
- On the task, open the paid row's menu and choose **Receipt**, in your app language.

The receipt names your firm, the payer, the amount actually received, when, what it was for, the title the client reads for the task, your reference, and Stripe's payment reference or the fact that you recorded the payment yourself.
A deposit or a balance says which half it was.
A refunded payment's receipt is headed **Receipt (refunded)** and says when and how much was refunded.
Nothing internal appears on it: no colleague's name, no task key.

## Correcting a payment

Each row's menu holds the corrections, and every one asks you to confirm first because none can be undone.

| Action | When | What happens |
| --- | --- | --- |
| **Mark paid** | The payment is due | Records it as paid for the amount asked, for money that arrived somewhere Truetask cannot see: a transfer, a cheque, a card machine. |
| **Withdraw** | The payment is due | It stops being owed and leaves the client's page. The record stays on the task, reading **Withdrawn**. |
| **Remove** | Nothing has happened to it yet | Deletes it completely. Once a client has pressed **Pay**, use **Withdraw** instead. |
| **Record a refund** | The payment is paid | Records a refund made in your own Stripe account or bank. It moves no money. |

A paid payment is never edited: the honest correction is a refund and, if needed, a new payment.
A settled row's menu says **Nothing left to do** once there is no correction left.

### Refunds made outside Truetask

Refunds happen in your Stripe Dashboard or your bank, never in Truetask.
A refund you make in Stripe reaches the task by itself through Stripe's notification, and the row reads **Refunded**.
For a refund Truetask cannot see, use **Record a refund**.

Either way the payment keeps what was paid, and the refund is one more line in its history.

## What the task records

Each payment keeps an append-only history that nobody can edit, not even an administrator: when it was raised and by whom, every change to its amount or date and what it was before, the split, each time a client opened Stripe's page, the payment itself, a refund, and a withdrawal with its reason.
A paid row stores the amount Stripe actually charged, when, who paid, and Stripe's own references, so you can find the payment in your Stripe Dashboard.

Paying twice for one payment, or a notification arriving twice, never records two payments: the second is kept as an event, so you can see it happened, and the state does not move.

The full history is in the API and MCP (`payments_get`).

## What each client owes

**Settings > Members & Teams > Clients** has an **Owed** column: what each client still owes across every task shared with them, one line per currency.
A task shared with a company counts for every contact in it.
A task in the trash is not counted.

The column, like the rest of the register, is for owners and admins.
See [Managing clients](https://docs.truetask.io/clients/managing).

## Automations

The **Client paid** trigger runs when a payment on a task is paid, through Stripe or by a teammate marking it.
Use it to start the work once the deposit lands.
See [Triggers](https://docs.truetask.io/automations/triggers).

> **Truetask Cloud only**
>
> Adding a payment needs a paid plan on Truetask Cloud, or a running trial, the same as sharing a task with a client.
> Reading, settling, refunding and withdrawing payments that already exist is never refused, whatever the plan.
> See [Plans and billing](https://docs.truetask.io/cloud/plans).

> **Self-hosted only**
>
> Stripe sends a client back to your instance's public address, so `PUBLIC_URL` has to be the address people really reach, or the payment page cannot open.
> Stripe also has to reach your instance on a public HTTPS address to deliver its webhook.
> When it cannot, follow [When Stripe refuses the webhook](https://docs.truetask.io/clients/payments#when-stripe-refuses-the-webhook).
> Payments are still recorded when the client comes back to their page; only a client who closes the tab before returning goes unrecorded until you mark it paid.
> See [Network](https://docs.truetask.io/self-hosted/network).

## For agents and the API

The routes are under `/v1/payments`, and the MCP tools are `payments_list`, `payments_get`, `payments_create`, `payments_update`, `payments_split`, `payments_mark_paid`, `payments_mark_refunded`, `payments_void`, `payments_delete` and `payments_owed`.
Amounts are in the currency's smallest unit: `120000` is 1,200.00 EUR, and `1200` is 1,200 JPY.
The API's word for a task is `card`.

## Frequently asked questions

### Does the money pass through Truetask?

No.
The client pays on Stripe's page into your own Stripe account.
Truetask never holds funds, and it holds no Stripe account of its own.

### Can a client pay in Truetask without Stripe?

Yes, through a payment link of your own, or by transfer.
Either way, mark the payment paid when the money arrives, because Truetask cannot see it.

### What if a client pays and closes the tab before returning to Truetask?

The payment is still recorded, through Stripe's notification to your workspace.
On a self-hosted instance Stripe cannot reach, mark it paid yourself.

### How do I refund a client who paid through Truetask?

Refund them in your Stripe Dashboard.
The task records the refund by itself, and you can download a receipt that says it was refunded.

## Related

- [Client portal](https://docs.truetask.io/clients/)
- [The client page](https://docs.truetask.io/clients/client-page)
- [Client requests](https://docs.truetask.io/clients/requests)
- [Managing clients](https://docs.truetask.io/clients/managing)
- [Integrations](https://docs.truetask.io/integrations/)
