Idempotency keys on every operation that moves money
A caller-supplied key with a unique index turns every retry, refresh and double-click into a no-op. The single most valuable column in a payments schema.
3 entries
A caller-supplied key with a unique index turns every retry, refresh and double-click into a no-op. The single most valuable column in a payments schema.
A unique index on your own reference turns duplicate callbacks, browser refreshes and manual replays into no-ops instead of free balance.
Signature check, unique constraint, credit inside a transaction. Networks retry postbacks, so the same completion will arrive more than once.