← Files Go: FintechARCHIVED FILE
skills/go-payment-lifecycles/references/payment-machine.md
802 Bytes · Oct 5, 2026 · 18:32 UTC
# Payment machine For every command record: - local operation ID and provider idempotency key; - requested amount/currency and canonical fingerprint; - provider request ID and returned object/version; - known, failed, or ambiguous outcome; - events that can resolve ambiguity; - next legal actions and amount limits. Late success after local timeout must advance from persisted evidence, not be rejected because a synchronous request already returned. Cancellation and reversal are not interchangeable; follow the rail's actual semantics. Classify evidence as duplicate, stale, future/missing-predecessor, conflicting, or contract-invalid. Persist future evidence and reevaluate it when prerequisites arrive. Provider-local semantics do not generalize to another rail without its current contract.
SHA-256: b58956dbceee88d4a7534922dfed91a1fb1286612aebcf8bb8d5164792f4b226