mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 13:29:39 +02:00
- Add StripeService for PaymentIntent creation and webhook verification - Add credit purchase flow (POST /credits/purchase) - Add stripe_customers table for Stripe customer mapping - Add subscriptions schema (plans, subscriptions, invoices) - Add SubscriptionsService with Checkout, Portal, Cancel, Reactivate - Add subscription plans (Free: 150 Mana, Pro: €9.99, Enterprise: €49.99) - Handle subscription and invoice webhooks - Update roadmap with completed tasks Credit pricing: 1 Mana = 1 Cent (no volume discounts)
12 lines
400 B
TypeScript
12 lines
400 B
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { CreditsController } from './credits.controller';
|
|
import { CreditsService } from './credits.service';
|
|
import { StripeModule } from '../stripe/stripe.module';
|
|
|
|
@Module({
|
|
imports: [forwardRef(() => StripeModule)],
|
|
controllers: [CreditsController],
|
|
providers: [CreditsService],
|
|
exports: [CreditsService],
|
|
})
|
|
export class CreditsModule {}
|