Support payment lifecycle events for gobank-products integration #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
gobank-products models customer-initiated events (deposits, withdrawals) as synchronous book transfers — the simulation records a ledger movement immediately and returns success or error. There is no concept of payment failure, timeout, or asynchronous settlement.
In production, deposits arrive as inbound FPS credits and withdrawals are outbound FPS debits. The full payment lifecycle has states beyond "requested" and "completed".
What mock-fps should provide
A payment scheme simulation that models:
Integration boundary
What gobank-products would need to change
To integrate with mock-fps, gobank-products would need to:
DepositAcceptance/WithdrawalProcessingPendingPaymentstate between initiation and settlementThis is not urgent — the current synchronous model is correct for simulation and testing. This issue tracks the eventual integration point.
Migrated from Codeberg: originally #1, opened 2026-03-17.