#itsqwerty-subscription-paymentelement

1 messages · Page 1 of 1 (latest)

hardy loomBOT
open haven
#

@sullen hawk yes you can!

#

itsqwerty-subscription-paymentelement

sullen hawk
#

Appreciate it, does this flow look correct to you on how the payments should work?

#
  1. The customer enters their username, selects plan details
  2. Enters their email (we have their name from their Instagram username)
  3. We check the database to see if they are already a customer and have a stripe customer ID
  4. If they do, we return that otherwise we make them one and save it to their user
  5. At this point we have their customerId in the FE
  6. The frontend sends a request to the BE with the plan information, customerId, name, email,
  7. The backend returns a subscriptionId and a clientSecret
  8. The front end now displays stripe comps with the clientSecret
  9. User completes the payment in the frontend and redirects
  10. Backend receives a web hook and complete an action