streameth-platform icon indicating copy to clipboard operation
streameth-platform copied to clipboard

[TASK] Stripe backend tasks

Open Mario-SO opened this issue 5 months ago • 0 comments

Description

Use the Stripe API to create and manage subscriptions from users

Related User Story

Related User Story #968

Objectives

  • [ ] Create a webhook to listen for successful payments
  • [ ] Update Org model with subscriptionTier and consumedHours fields
  • [ ] Update Org model with channelPageAddon
  • [ ] On org creation, set consumedHours to 0
  • [ ] On successful payment, set subscriptionTier to the corresponding one
  • [ ] On successful channelPageAddon payment, set the corresponding field to true

Acceptance Criteria

  • [ ] Guarantee that NO user gets charged and not properly provided with account benefits
  • [ ] Properly handle ALL possible errors stated in the stripe API docs

Additional Information

Stripe docs: Link

Subscription docs

Image

Image

Image

Mario-SO avatar Sep 25 '24 11:09 Mario-SO