The transaction itself is only the beginning. The real backend complexity starts when your system needs to decide what happens next. Your backend may see funds before they are final. The customer may close the tab. Support may get a message saying “I paid,” while finance still needs a clean record. Product access might depend on a status that is not simply paid or not paid. This guide focuses on one backend problem: modeling payment states after an invoice is created. Whether you use a crypto pa