Skip to content

Instantly share code, notes, and snippets.

@nathan-muir
Created February 6, 2019 00:55
Show Gist options
  • Save nathan-muir/bb857ea7a710f6c28ce55b01e57f51d7 to your computer and use it in GitHub Desktop.
Save nathan-muir/bb857ea7a710f6c28ce55b01e57f51d7 to your computer and use it in GitHub Desktop.
ChargifyAccount
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
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