Defines TypeScript interfaces for a unified payment system across providers.
// Source: https://github.com/revokslab/ShipFree | License: MIT | Copyright 2026 Revoks
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Payment System Types
*
* Unified types for the payment system following Supastarter's architecture.
* All payment providers implement the same interface for consistency.
*/
import type { PaymentProvider, PlanName } from '@/config/payments'
// Re-export for convenience
export type { PaymentProvider, PlanName } from '@/config/payments'
/**
* Customer data structure
*/
export interface CustomerData {
id: string
providerCustomerId: string
email?: string
userId: string
provider: PaymentProvider
}
/**
* Subscription data structure
*/
export interface SubscriptionData {
id: string
providerSubscriptionId: string
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key