Flow
- Worker authenticates.
- Worker triggers payment sync.
- Backend queries Horizon for incoming payments.
- Backend normalizes operations.
- Backend checks supported asset configuration.
- Backend encrypts payment amounts with AES-256-GCM.
- Backend upserts payments by operation ID.
Sync Endpoint
Normalized Fields
Exact payment amounts are stored as authenticated ciphertext using
PAYMENT_ENCRYPTION_KEY. Legacy redacted: values can still be decoded for compatibility, but new synced payments use the enc:v1: format.
Classification
Workers can classify payments as:- income,
- reimbursement,
- personal transfer,
- unknown,
- excluded.