Product Thumbnail

Flowglad

Open source, webhook-free payments that AI can one-shot

Open Source
Payments
Developer Tools
GitHub

Flowglad is an open source payment provider you can integrate into your app without any webhooks. Instead of writing a bunch of glue code to keep your DB in sync with your payment provider, our API tells you what customers

Top comment

Hey Product Hunt,

After months of quiet work, we're finally ready to share Flowglad: an open source payment provider that you can integrate without any webhooks.

The Problem

A typical SaaS checkout flow requires at least 16 server-client hops.

It requires maintaining mappings across up to 5 tables in your database and your payment processor.

It requires dealing with race conditions.

Here's what a very vanilla payments flow looks like today:

The code that choreographs this is brittle and often some of the hardest code in your app to test. And whenever you update what features you offer for each plan or how much each plan costs, you have to make a slew of changes across your DB, your code, and your payment processor's code (in both livemode and testmode).

Flowglad's Solution

Instead of writing glue code, you just read from Flowglad as your source of truth. We give you a React hook for your frontend to create checkouts and check customers' feature access in real time based on their billing state:

const {
  createCheckoutSession, 
  checkFeatureAccess,
  checkUsageCredits
} = useBilling()

And we give you a server SDK on the backend that lets you do the same and more, where you can reference your customers using your customer id rather than ours:

const flowgladServer = flowglad(user.id) // use your customer ids, not ours
await flowgladServer.createUsageEvent({...})

The result is a payments integration which doesn't require you to think about payments or billing at all.

It's in an early state, and we have a lot of features planned. But as always, better to launch early so we can get your feedback to perfect the product.

Comment highlights

Wow, Flowglad is super interesting! The webhook-free approach is genius and seems much simpler. Does the AI handle edge cases like disputed payments or subscription downgrades automatically?

So pumped for the Flowglad team!! Question — what pricing model or setup do you think Flowglad handles best right now, and why (subscriptions, usage-based billing, or something else)?

LOVE the launch video! Excited for move developers to experience the magic of open source, webhook-free payments

@agreeahmed Webhook free payments that AI can handle autonomously is clever. Most payment systems require manual webhook setup and monitoring, which breaks AI automation.

How does Flowglad ensure payment security without webhooks? What's the fallback if the AI agent loses context mid transaction?

I'm a happy customer of flowglad! Been a dream to set up payments on our app

Interesting. So let's say I have a payment provider and they already gave me webhooks; how does your solution help in this case?

The video is awesome!

Overall, Stripe integration is still a pain, it requires a week or two to integrate a "seats" infrastructure to be a B2B-ready solution.

Hope you guys really solve this problem.