Open atherdon opened 6 years ago
I had already extended the base user model but I want to insert the complex stuff now related to stripe. I don't know how to manage it properly. We will need to store the current plan/subscribed plan, valid up to, transactionId of the last charge, date of the transaction, status of the transaction(so we know if we entered a failed transaction in the database or not), also might be previous transactions the user has made till now, should we allow a different email for stripe than the one registered with us, if user can ask for a refund then we will need to store that also so user doesn't ask for multiple refunds for an order
i think you should create a visual for your db schema. https://sqldbm.com/en/Home/ use it
you told me that you want to know how we need to extend the user profile. this was a working version 1 year ago. https://github.com/ChickenKyiv/stripe-recurring-membership/blob/master/server/models/user.js