Skip to content

Instantly share code, notes, and snippets.

@mark-stephenson-
Created April 30, 2019 18:42
Show Gist options
  • Save mark-stephenson-/051a3aef5533e1f13d28d499e8103a5c to your computer and use it in GitHub Desktop.
Save mark-stephenson-/051a3aef5533e1f13d28d499e8103a5c to your computer and use it in GitHub Desktop.
Demo Card State
Demo Card State
main*
lets do it -> doitmain
ill do it -> diymain
doitmain
do it for me -> jomain
ill do it -> diymain
jomain
pay now -> joprep
start over -> done
diymain
start over -> main
done -> done
stripe
payment approved -> joprep
payment declined -> jomain
joprep
goready -> ready
ready
approve -> done
done
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment