kevin-meyers / data-scout

A webapp that helps you manage and explore your data
https://datascout.io/
2 stars 0 forks source link

Add customer when starting a business #195

Open kevin-meyers opened 3 years ago

kevin-meyers commented 3 years ago

When an admin fills out the business info, "create a customer" on stripe using the createCustomer endpoint.

Then add them to the free plan using createSubscription endpoint. Might be different because the free plan is not a reoccurring plan.

kevin-meyers commented 3 years ago

Okay this one is gonna be a problem...

Basically, the Plans API changed to Products on the stripe side, so every stripe-haskell interaction is now out of date.

Cloning and updating the Web stripe AND using it in my own code looks like a TON of work... Like way more than I can handle right now for this.

Instead I think I will only remake what I have to, including createSubscription (but I can use the others), all the products stuff, and anything else down the line I might need.

Recreating it will look like making a new file with the general functions that mimic the other files, and use as much of their code as possible to keep it as consistent as possible.

Then make persistent types for anything I need, I honestly think I will just hit up the API every time I need anything instead of making a table for them locally.