mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 12:26:43 +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)
13 lines
534 B
TypeScript
13 lines
534 B
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { StripeService } from './stripe.service';
|
|
import { StripeWebhookController } from './stripe-webhook.controller';
|
|
import { CreditsModule } from '../credits/credits.module';
|
|
import { SubscriptionsModule } from '../subscriptions/subscriptions.module';
|
|
|
|
@Module({
|
|
imports: [forwardRef(() => CreditsModule), forwardRef(() => SubscriptionsModule)],
|
|
controllers: [StripeWebhookController],
|
|
providers: [StripeService],
|
|
exports: [StripeService],
|
|
})
|
|
export class StripeModule {}
|