Payment processors
Pull payments, refunds, voids, fees and payouts from Stripe, PayPal or a UAE gateway onto the processor clearing account, match the payout to your bank as a transfer, retry failed imports in bulk, and catch the same payment arriving by feed and by sync.
A payment processor (Stripe, PayPal, Tap, Telr, Network International) holds your card takings until it pays them out. Alya Books books that activity on a clearing bank account linked to the ledger account 1130 Payment gateway and card settlements in transit, one bank line per event, so the processor reconciles like a bank and the payout to your real bank is just a transfer (F-BANK-013).
Connect
Settings → Payments → Payment processors → Connect processor. Pick the provider (providers are data: the fields each needs are listed), name the connection and paste the credentials. Secrets are stored server-side only; the settings form never shows them again. The clearing bank account is created on demand (<Provider> clearing, in the base currency) or you pick an existing one. Owners and admins connect; accountants work the lines.
On the local stack the Simulated processor answers a deterministic week: three card payments with their fees, a refund and the payout.
Sync
Sync now (or the daily job, for providers with a pull) records:
| Event | Bank line on the clearing account |
|---|---|
| Payment | money in, the gross amount; its fee is a separate money-out line (…:fee) |
| Refund | money out |
| Void | money out, only when the voided payment was recorded; else skipped |
| Fee | money out |
| Payout | money out: the money left the processor for your bank |
Every line carries provider:connection:event as its external id, so a second pull never duplicates a line. Stripe (balance transactions) and PayPal (the transactions report) pull; Tap, Telr and Network International have no statement pull that fits, so their events are pushed with the sync call from a webhook relay or an export: POST /bank/processors/{id}/sync {events: [{id, type, amount, fee, currency, date, description, reference, counterpartyName}]}.
The new lines go through the categorisation queue like any bank line: a rule (for example "Processor fee on … → 6340 Payment gateway fees", quick entry) or the provider proposes the booking, the card payment is matched to its invoice (the TS matcher and the candidates read the reference), and you post from the triage view.
The payout
When the payout lands on your bank statement, Match… the bank line to the payout leg, or categorise it as a transfer from the clearing account: both legs clear through 1150 and the clearing account nets to the fees, refunds and the payments not yet paid out (its balance is the money the processor still holds).
Failed imports and bulk retry
An event that cannot be recorded (a malformed date, an unknown type, an amount of zero) is kept with its payload under Failed imports with the reason and the attempt count. Retry selected or Retry all runs the stored payloads again; a resolved failure disappears. Temporary failures (the clearing account missing, a locked period) resolve on retry; a malformed payload needs the provider's fix.
Duplicates
The same payment can reach you twice: the processor's payment line and the settlement on the bank feed, or a feed and a statement upload. Bank → Duplicates flags the pair (same amount, within two days, same reference or description, on one account or the clearing account); keep one and exclude the other, or dismiss the pair. See Rules, quick entries and duplicates.
In the API and the MCP server
GET /bank/processors(providers, connections, failed imports);POST /bank/processors,PATCH/DELETE …/{id}.POST /bank/processors/{id}/sync {events?}(sync_payment_processor);POST /bank/processors/{id}/retry {ids?}(retry_processor_imports).
Related: