891 B
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
- checkout.session.completed
- Store StripeSubscriptionId, UserId, CreatorId, TierId
- Save a new Subscription entity with the status "Pending"
- invoice.payment_succeeded
- Grant access (set Subscription.Active = true or similar)
- Record transaction or set StartDate
- Notify Creator (e.g., new member)
- customer.subscription.updated
- Update
EndDate = CancelAt ?? CanceledAt
- customer.subscription.deleted
- Revoke access
- Mark Subscription as inactive/ended
Tips
- checkout.session.completed
- Store TipId, StripeSessionId, TipperId, CreatorId
- PaymentIntentStatus == "paid"
- Status = "Paid"
- Notify creator
- Record transaction