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. Payments
  2. Payment Flow Scenarios

Upgrading/Downgrading/Canceling Subscriptions

This process pertains to recurring subscriptions. Subscribed clients have access to a prebuilt billing portal where they can manage their subscription (upgrade, downgrade, or cancel).

Triggered Events: customer.subscription.updated or customer.subscription.deleted Process:

  • Update the ClientPlan data to reflect the new subscription details.

  • Call handleAfterSubscriptionTasks() to handle post-subscription actions.

For further queries or assistance, refer to the code comments or contact our support team.

PreviousScenario 2: Direct Subscription from Home PageNextPricing Table

Last updated 10 months ago