This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Description
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):
- User submits the join form on desktop frontend
- User gets an email with a welcome message, and a link to pay via stripe.
- User clicks link, gets redirected back to ACM website, and can submit the stripe form to pay.
- Upon payment, we play a 10 sec animation to allow for the AD script to run in the background.
New Flow (Service Perspective):
- On join form submission, users service generates and stores a unique payment token for the user.
- 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)
- Upon the user going to this URL, the desktop frontend verifies this is a valid token. Then, we display the stripe payment form.
- Upon submission of the stripe payment form, desktop frontend tells user service to mark the user as paid.
- User service triggers the AD service when it marks the user as paid.