I tend to lots of small SaaS apps. They need self-service payments, but they're too small to use Paddle or Chargebee. A "merchant of record" like that is overkill.
I love working with both Firebase and Stripe, so I've written Fireline to mash them up into an easy-to-use set of Cloud Functions and React hooks.
Stripe integrations require server calls, so I've wrapped those up as callable Cloud Functions.
Stripe also supports webhooks for its objects, so Fireline exports a Cloud Function that listens to those webhooks and syncs the data down to Firestore.
The end result is that your Firestore collections stay in sync effortlessly, and you can make server calls from the client via callable functions. The only thing left is to implement your client code!
Fireline also exports a series of React hooks to make client-side integration even easier. Of course, you don't need to use React with Fireline, because the core functionality is all Cloud Functions and webhooks.
Check out my Fireline doc site with a live demo!
Let me know what you think!
Great work Chris. Eager to start using this now. Will eventually get to it. I'll let you know how I get on.
Thanks! I've made some fixes and it appears to be useable now :)