Creating user record after successful Stripe payment
Having some trouble figuring out how to implement the following user sign-up flow:
1. User provides email and password on platform
2. User is redirected to Stripe checkout page (with email passed as a parameter to ensure it matches the account email)
3. Upon successful payment, a record is added to the User table
I have steps 1 and 2 figured out, but I'm not sure how to go about step 3. I had toyed with the idea of passing the user password to Stripe as metadata and then passing that back in a webhook to create the account, but from what I've read that appears to be a no-no.
Any help would be greatly appreciated!
Cheers
edit: clarified this is for a sign-up flow
Other
4 replies