Files
social-media/docs/archive/Stripe.md
Jonathan Bourdon df3e602015
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled
feat: pivot to social media workflow app
2026-04-24 12:58:35 -04:00

891 B

Stripe

Legacy Hutopy-era notes. These flows describe the old creator membership and tipping model and do not match the current workflow product.

Events Workflow

Membership

  1. checkout.session.completed
  • Store StripeSubscriptionId, UserId, CreatorId, TierId
  • Save a new Subscription entity with the status "Pending"
  1. invoice.payment_succeeded
  • Grant access (set Subscription.Active = true or similar)
  • Record transaction or set StartDate
  • Notify Creator (e.g., new member)
  1. customer.subscription.updated
  • Update EndDate = CancelAt ?? CanceledAt
  1. customer.subscription.deleted
  • Revoke access
  • Mark Subscription as inactive/ended

Tips

  1. checkout.session.completed
  • Store TipId, StripeSessionId, TipperId, CreatorId
  • PaymentIntentStatus == "paid"
  • Status = "Paid"
  • Notify creator
  • Record transaction