9.5 - Test Cards & Failed Payments

Preview unavailable

You must log in or sign up to view this lesson.

LoginSign up

Modern SaaS Apps with SvelteKit, Stripe, & Supabase

Buy nowLearn more

Introduction

  • Introduction
  • What We're Building
  • Course Discord Access
  • Resources

Module 1: Project Setup

  • 1.1 - SvelteKit Project Setup
  • 1.2 - Supabase Local Development
  • 1.3 - Protected Auth Schema
  • 1.4 - Profiles Table & RLS

Module 2: Integrate SvelteKit & Supabase

  • 2.1 - Server-Side Environment
  • 2.2 - Install Supabase SDKs & Generate Types
  • 2.3 - Server-Side Supabase
  • 2.4 - Client Side Supabase

Module 3: User Auth

  • 3.1 - User Registration
  • 3.2 - User Login
  • 3.3 - Protecting Auth Routes
  • 3.4 - User Logout & Navigation
  • 3.5 - Account Page
  • 3.6 - Account Actions

Module 4: CRUD (Create, Read, Update & Delete)

  • 4.1 - Contacts Table & RLS Policies
  • 4.2 - Seeding Supabase
  • 4.3 - Creating Contacts
  • 4.4 - Supabase Admin Client
  • 4.5 - Reading Contacts
  • 4.6 - Updating Contacts
  • 4.7 - Deleting Contacts
  • 4.7.1 - Close Modal on Cancel
  • 4.8 - Seeding Contacts

Module 5: Stripe Introduction

  • 5.1 - Stripe Dashboard Overview
  • 5.2 - Stripe API & Docs
  • 5.3 - Setup Stripe CLI
  • 5.3.1 - Stripe CLI WSL Note
  • 5.4 - Products & Prices Overview
  • 5.5 - Creating Products & Prices
  • 5.6 - Lookup Keys
  • 5.7 - Cleanup

Module 6: Stripe & SvelteKit Integration

  • 6.1 - Setup Stripe Node Client
  • 6.2 - Stripe Webhooks & Events
  • 6.3 - Create Webhook Endpoint
  • 6.3.1 - Webhook Script
  • 6.4 - What Data to Store

Module 7: Billing Services

  • 7.1 - Define Billing Tables
  • 7.2 - Products Service
  • 7.3 - Customers Service
  • 7.4 - Subscriptions Service

Module 8: Products, Pricing, & Pricing Page

  • 8.1 - Create Products & Prices
  • 8.2 - Seeding Stripe Data
  • 8.3 - Pricing Page Config
  • 8.4 - Pricing Page

Module 9: Pricing, Checkout, & Billing

  • 9.1 - Checkout Sessions
  • 9.2 - Free Trial Options
  • 9.3 - Stripe Test Clocks
  • 9.4 - Preventing Multiple Trials
  • 9.5 - Test Cards & Failed Payments
  • 9.6 - Subscription & Email Settings
  • 9.7 - Configure Customer Portal
  • 9.8 - Deliver Customer Portal

Module 10: Tier-Based Access Control

  • 10.1 - Validate Tier Helpers
  • 10.2 - Restricting Actions
  • 10.3 - Limiting UI Interactions
  • 10.4 - Prevent Multiple Plans

Module 11: Testing

  • 11.1 - Setup Playwright
  • 11.2 - Auth Flow Tests
  • 11.3 - CRUD Tests

Module 12: CI/CD Pipeline & Production

  • 12.1 - CI/CD Pipeline Overview
  • 12.2 - Supabase to Production
  • 12.3 - Creating Vercel Project
  • 12.4 - GitHub Actions Workflow
  • 12.5 - Stripe & Supabase in Production
  • 12.6 - Production URL Updates

Module 13: UX Extras

  • 13.1 - Toast Notifications
  • 13.2 - Better Redirects
  • 13.3 - Stripe Branding

Thank you

  • Thank you