PaymentGatewayService defines abstract methods for generating payment links, managing subscriptions, and retrieving payment history.
// Source: https://github.com/keyshade-xyz/keyshade | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
import { ConflictException, Inject, Injectable, Logger } from '@nestjs/common'
import { PurchaseDto } from './dto/purchase.dto'
import { AuthenticatedUser } from '@/user/user.types'
import {
Authority,
Subscription,
SubscriptionPlanType,
Workspace
} from '@prisma/client'
import { PrismaService } from '@/prisma/prisma.service'
import { AuthorizationService } from '@/auth/service/authorization.service'
import dayjs from 'dayjs'
import { constructErrorBody } from '@/common/u
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key