Skip to content

Instantly share code, notes, and snippets.

@bodhi
Created March 23, 2020 05:35
Show Gist options
  • Save bodhi/c199dfe1f6b1a3f35c1a8abca38d0b61 to your computer and use it in GitHub Desktop.
Save bodhi/c199dfe1f6b1a3f35c1a8abca38d0b61 to your computer and use it in GitHub Desktop.
Ordering&
Ordering&
Browser
PDP
add to cart -> PDP
buy -> Fulfilment
checkout -> Fulfilment
Fulfilment
confirm -> Check-in
Check-in
check in -> Confirmation
Confirmation
Payment
Not Started
add to cart -> Started Intent
buy -> Started Intent
checkout -> Started Intent
Started Intent
confirm -> Authorised
Authorised
check in -> Captured
Captured
refund -> Payment Refunded
Payment Refunded
FOE
Empty
check in -> Order Received
Order Received
ROM
No
check in -> Refundable
Refundable
refund -> Refunded
Refunded
function render(model){
let current_state = model.root.children[0].children[0].children.find(s => s.is_active);
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state.name} ${Object.keys(current_state)}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment