Payment Link

Map 3

How payment status and token state move

Two state machines sit under the flow. The payment statuses on the left already exist in EOPTIONAL_ORDER_PAYMENT; the token on the right is new, and the shape drawn here is a recommendation: One live token per order, killed and replaced on every resend. A declined first attempt deactivates the token, and the guest keeps the open session.

Payment status · EOPTIONAL_ORDER_PAYMENT.STATUS

order created at Check Out NEWQ6 approved FINISHED declined ERROR retry approved refund REFUND onboard credit refund ONBOARDCREDITREFUND
The five values already in the database. Q6 asks whether a sixth is needed for “link sent”.

Token · new, one live token per order (recommendation)

generated on Send Payment Link ActiveQ2 first payment attempt Deactivated expiry reached ExpiredQ1 Replaced TD/CrD resends resend resend new token issued
Resend kills the old token from any state and issues a replacement.

Numbered markers on the diagram (Q1, Q2, Q6) match the question table on the overview.

Facts

Open questions