Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Payment Flow #53

Open
bcongdon opened this issue Sep 5, 2017 · 0 comments
Open

User Payment Flow #53

bcongdon opened this issue Sep 5, 2017 · 0 comments

Comments

@bcongdon
Copy link
Member

bcongdon commented Sep 5, 2017

We're going to change the current way I was thinking of doing the user payment flow so it's a bit cleaner.

New Flow (Usability Perspective):

  1. User submits the join form on desktop frontend
  2. User gets an email with a welcome message, and a link to pay via stripe.
  3. User clicks link, gets redirected back to ACM website, and can submit the stripe form to pay.
  4. Upon payment, we play a 10 sec animation to allow for the AD script to run in the background.

New Flow (Service Perspective):

  1. On join form submission, users service generates and stores a unique payment token for the user.
  2. The user service triggers an email to be sent, and the link in the email is formatted with this unique payment token (i.e. acm.illinois.edu/credist/purchasemembership?token=ABC123)
  3. Upon the user going to this URL, the desktop frontend verifies this is a valid token. Then, we display the stripe payment form.
  4. Upon submission of the stripe payment form, desktop frontend tells user service to mark the user as paid.
  5. User service triggers the AD service when it marks the user as paid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant