Last active
July 11, 2018 18:21
-
-
Save brenoferreira/ae16858ebcdb61ddec7d04ca5edfd944 to your computer and use it in GitHub Desktop.
PayLater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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