Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Build a SAAS App with Flask: Part 3


Learn about the Build a SAAS App with Flask project, this is part 3 of a 5 part series.

Quick Jump: Looking for the Other Parts of This Series? | The New Addition Is the Billing Component | On the Horizon

This Article Is Outdated

Build a SAAS App with Flask has been completely re-recorded from scratch as version 2.

Read About v2

The source code can be found here: https://github.com/nickjj/build-a-saas-app-with-flask

Looking for the Other Parts of This Series?

The New Addition Is the Billing Component

Here’s some of the features:



  • Easily add, delete or sync your custom plans with a payment gateway
  • Users can pick a plan from a pricing table
  • Users can upgrade, downgrade or cancel their subscription


  • Users can update their billing information
  • Users can view their billing details and upcoming payments


  • Users can apply coupons to their subscription

Credit Card

  • Track when credit cards are about to expire
  • Notify users when their card is about to expire



  • Coupons can be percent based or a fixed amount
  • Coupons can expire after a certain time
  • Coupons can have a max redemption attribute attached to them
  • Coupons can be randomly generated with human friendly codes
  • Coupons can be applied to new or existing subscriptions
  • Keep track of how often a coupon was used


Admin Dashboard

  • Coupons can be managed through the dashboard
  • View any user’s subscription details
  • Cancel any user’s subscription
  • Dashboard stats related to billing


On the Horizon

A better test strategy and lots more tests for all of the billing components. We will be mocking out the payment gateway APIs but do end to end tests on our SAAS app.

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.