SaasCore Docs
  • Get Started
  • Configuration
    • Database
    • Stripe
      • Product ID and Price ID
      • API keys
      • Stripe Webhook
    • Emails
      • Cron Jobs
    • Claudinary
    • Chat plugin
    • Upstash Redis
    • OAuth with Google and GitHub
    • Subscription types and plans
    • Affiliate program
    • Google Analytics Api
  • Landing page
    • Header
    • Hero
      • Discount
      • AvatarCircles
    • Other components
  • Authentication Flow
    • For Admins
    • For Clients
      • OAuth
      • Credentials
    • For Affiliates
  • Payments
    • Payment Flow Scenarios
      • Scenario 1: Registered Client
      • Scenario 2: Direct Subscription from Home Page
      • Upgrading/Downgrading/Canceling Subscriptions
    • Pricing Table
  • Component Protection
  • Pending ...
Powered by GitBook
On this page
  1. Configuration

Affiliate program

you can easily enable/disable the affiliate-program related sections from the config file (/lib/config/main.ts)

   [...,
   affiliateProgram: {
        enabled: true,
        paymentMethods: [
            {
                name: "PAYPAL",
                label: "Paypal",
                icon: Icons.paypal,
            },
            {
                name: "PAYONEER",
                label: "Payoneer",
                icon: Icons.payoneer,
            },
            {
                name: "WISE",
                label: "Wise",
                icon: Icons.wise,
            },
        ],
    },
    ...etc]

PS: Your affiliate program payment methods should be determined at both the config object level (/lib/config/main.ts) and the Prisma schema level.

enum SelectedPaymentMethod {
  PAYONEER
  PAYPAL
  WISE
}
PreviousSubscription types and plansNextGoogle Analytics Api

Last updated 9 months ago