Skip to content

Instantly share code, notes, and snippets.

@alokmishra
Created January 23, 2018 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alokmishra/1ba07f8b3ce7ed4d68dec9aaa1a62ce0 to your computer and use it in GitHub Desktop.
Save alokmishra/1ba07f8b3ce7ed4d68dec9aaa1a62ce0 to your computer and use it in GitHub Desktop.
Mermaid flowchart
graph LR
A(Appointment) --> B(Charge card)
B --> C{Success}
C -->|Yes| D[Gen invoice no]
C -->|No| E[Log failed payment]
D--> F(Create record in table, status=paid)
M(Chat) --> N(Chat complete)
N--> O(Charge Card)
O --> P{Success}
P-->|Yes| Q(Gen inv number)
P-->|No| S(Create record in table, status=pending)
Q-->R(Create record in table, status=paid)
S-->T(Retry charge 7 times)
T-->U{Success}
U-->|Yes| V(Update status=paid)
U-->|No| X(Update status=bad_debt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment