Using Autumn, you can integrate Stripe with your AI application builder like Lovable, v0 or Bolt.new in just a couple prompts—no webhooks or server management required.

Create your free Autumn account at useautumn.com. Then navigate to the Connect Stripe page and paste in your Test and Live Secret API keys.

If you just want to integrate in Test mode to start, enter your test key sk_test_.... in both the live and test fields. You can disconnect and reconnect to update your keys later.

Your Test and Live keys can be found in the Stripe Dashboard, under Developers > API keys.

Step 2: Define your features

Under the features tab in Autumn, define the features that your users have access to. For simplicity, we’ll just create a single boolean feature called pro-features, which we’ll use as a flag which represents the ability of a user to use the paid features in your app.

Press the ‘Create feature’ button to name the feature:

In this case, we have just created a single feature to flag whether users are on our paid plan. However you can define multiple features (which can then be used in different products), including metered (usage-based) features. See Quickstart for an example.

Step 3: Create your products

Under the Products tab, we’ll create our free and paid plans.

  1. Free”: This product should be set as the default product, so that it’s automatically attached to any new customers. We’ll have no pricing for this product, and it won’t have access to our pro-features. It’ll be an empty product.
  2. Pro”: This product will have a price of $20 per month, and will have access to our pro-features feature.

When you’re done, you should have something like this:

Step 4: Integrate Autumn using your AI builder

Now you’re ready to integrate Autumn into your AI builder. There are two places this needs to happen:

  1. On purchase: When a user purchases a plan, you need to call our attach to generate a Stripe Checkout URL. Once a user pays, Autumn will attach the product to their account and they will have access to our pro-features
  2. When trying to use a feature: When a user tries to use a paid feature, you need to call our entitled endpoint to check if they have access to pro-features.

Below are the API schemas for the attach and entitled endpoints, which you should use in your prompt. Here are some example prompts you can use:

Congrats!

You’ve now integrated Autumn using your AI builder. Let us know how it goes!