r/web3 • u/minhduc20613 • 21d ago
Should Web3 payment infrastructure separate transaction detection from payment reconciliation?
One challenge in building blockchain payment systems is that detecting a transaction and deciding whether an invoice is actually paid are two different problems.
A transaction may be detected but still be pending confirmation. It may also arrive in multiple partial transfers, exceed the expected amount, or appear before a chain reorganization changes its status.
I'm exploring an architecture that separates these responsibilities:
- Transaction detection: Observe and record on-chain activity.
- Confirmation tracking: Handle confirmations and chain reorganizations.
- Payment reconciliation: Match transactions against invoices using exact amounts and explicit state transitions.
- Event delivery: Notify applications only when payment states change reliably.
I'm curious how other Web3 developers approach this separation.
Would you keep reconciliation inside the payment service, or make it an independent component consuming normalized transaction events?
What trade-offs have you encountered with either approach?
1
u/[deleted] 14d ago
[removed] — view removed comment