Skip to content
Jien Weng
Menu
Blog

A Web3 Payment Needs More Than a Transaction Hash

A transaction hash identifies a submitted transaction. It does not tell the backend whether it can credit a ledger or release an order.

On a multi-chain gateway, I kept returning to one question: when can each person act on a payment state?

What each state needs to tell us

  • Customer: wait or retry?
  • Merchant: release the order or not?
  • Backend: is there verified evidence to update the ledger?
  • QA: what are the acceptance criteria for each transition?

Submission, confirmation, failure, and settlement need distinct meanings in the interface, webhook handler, and support process.

Detection and settlement

Client-side detection gives quick feedback when funds appear. Settlement needs a verified server-side signal that checks network, token, recipient, amount, transaction status, and duplicate processing.

Acceptance criteria I would write

  • Give each payment request a unique reference and expiry.
  • Check the selected token and network before signing.
  • Record the transaction hash without marking it settled.
  • Define separate responses for delays, failures, and duplicates.
  • Verify a webhook before it updates the ledger.
  • Prevent retries from crediting the same payment twice.

The CryptoRails lifecycle note covers the documented deposit and consolidation flow. These requirements are generalised; internal details and performance results remain confidential.