Created
February 6, 2019 00:55
-
-
Save nathan-muir/bb857ea7a710f6c28ce55b01e57f51d7 to your computer and use it in GitHub Desktop.
ChargifyAccount
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
ChargifyAccount | |
start | |
signup -> trial | |
trial | |
cancel -> cancelled | |
expire -> trial_ended | |
activate -> active | |
trial_ended | |
retry -> trial | |
activate -> active | |
active | |
cancel -> cancelled | |
payment_missed -> past_due | |
past_due | |
payment_failed -> cancelled | |
payment_success -> active | |
cancelled | |
retry -> trial | |
activate -> active |
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