vincanger 78a9189e32
refactor Stripe webhook (#200)
* rename TierIds to PaymentPlanIds

* refactor webhook and util functions

* pass userDelegate to function

* Update dbSeeds.ts

* update app diff

* Update template/app/src/server/stripe/stripeClient.ts

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* extract event handlers and more

* Update AccountPage.tsx

* address filips pro effective typescripting and stuff

* Martin's attempt at consolidating types.

* fix

* fix webhook events and validation

* small changes

* put stripe event handlers back for marty merge

* merge consilidated types from martin

* move some types around

* add docs for stripe api version

* Update AccountPage.tsx

* Update stripe.ts

* update SubscriptionStatus type

* Update actions.ts

* add assertUnreachable util

* more small changes

* Update deploying.md

* update accountPage and docs

* update app_diff

---------

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
Co-authored-by: Martin Sosic <sosic.martin@gmail.com>
2024-07-10 16:08:20 +02:00
..
2024-06-04 13:24:32 +02:00
2024-07-10 16:08:20 +02:00
2024-06-04 13:24:32 +02:00
2024-06-04 13:24:32 +02:00
2024-06-04 13:24:32 +02:00
2024-07-10 16:08:20 +02:00
2024-06-04 13:24:32 +02:00
2024-06-04 13:24:32 +02:00
2024-06-04 13:24:32 +02:00
2024-06-04 13:24:32 +02:00
2024-06-04 13:24:32 +02:00

<YOUR_APP_NAME>

Built with Wasp, based on the Open Saas template.

Development

Running locally

  • Make sure you have the .env.client and .env.server files with correct dev values in the root of the project.
  • Run the database with wasp start db and leave it running.
  • Run wasp start and leave it running.
  • [OPTIONAL]: If this is the first time starting the app, or you've just made changes to your entities/prisma schema, also run wasp db migrate-dev.