Skip to content

Instantly share code, notes, and snippets.

@brenoferreira
Last active July 11, 2018 18:21
Show Gist options
  • Save brenoferreira/ae16858ebcdb61ddec7d04ca5edfd944 to your computer and use it in GitHub Desktop.
Save brenoferreira/ae16858ebcdb61ddec7d04ca5edfd944 to your computer and use it in GitHub Desktop.
PayLater
PayLater
Purchase Process*
already purchased -> Enjoy
buy now pay later -> Enjoy
user wants to login -> Login
terms not agreed -> Terms Required
cookie hacker? -> Cookie Hacker
invoice Over Threshold -> Settle Invoice
Terms Required
agreed to terms -> Purchase Process
Cookie Hacker
asks to login -> Login
Settle Invoice
Purchase Complete
Enjoy
Registration
Signup*
user wants to login -> Login
signed up not settled -> Purchase Process
Login
user wants to signup -> Signup
logged in not settled -> Purchase Process
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