Using Stripe Checkout For Your SaaS Subscription

Using Stripe.com Checkout For Your SaaS Subscription handling. I'm going through this right now as part of (2020-10-12) Building user management in WikiFlux, and am irritated enough to want to reset my brain....

Stripe handles only the actual repeating-payment process itself. The rest of the "shopping" experience is up to you. But if you only have 1-2 offers, at 1-2 price-points each, and the buyer is picking just 1, you probably don't need a "shopping cart" experience, you just need a button that passes the product+price (and the buyer's email address) to Stripe.

Note that your site will need SSL to work with Stripe, even though their server is doing the work.

If you want to use a "Wizard of Oz"/concierge approach to delay some coding, could you just let the user wait for you to see their payment, and then manually activate them in your system? Does Stripe have some sort of notification system, whether email, text, app-notification, or whatever?

  • you can set up email notifications
  • you can get Slack notifications
  • there are other partner apps, too

But it doesn't sound like this is a good plan.

To visualize how the code flow should work....

The previous page-link includes the diagram below, but even that doesn't get all the way to the webhook: flow

For Flask, this is a good tutorial. But it's worth adding some late steps

  • first you build/test in your development environment, using the Stripe CLI to test the flow of data back to your webhook (the tutorial covers this part deeply)
  • then, when you deploy to cloud-staging, you have to register a new test webhook at Stripe and set your various keys/etc, then test
  • then, to turn on production, you have to set up prod/live products/prices and webhook, and update those keys plus your various authentication keys/secrets.

Edited:    |       |    Search Twitter for discussion