With famous.ai it is easy to sell products and subscriptions by integrating with Stripe. Follow these steps to get started.
Step 1 - Create your project
Start by creating your project on famous.ai. Tell it you want to create an app that takes payments with Stripe.
Step 2 - Connect with your Supabase account
The AI will likely ask you to connect with Supabase. Any apps that require dynamic data such as payment processing will require a backend-service. We recommend using Supabase for this. For more help on integrating with Supabase, check out our article Integrating with Supabase.
Step 3 - Login to Stripe
In a separate tab, login to your Stripe account. We recommend creating a Stripe Sandbox initially to test. However, if you have an active Production account you can use this. We need to copy the Publishable Key
and Secret Key
.
Step 4 - Connect with famous.ai
If you haven't been prompted already, tell the AI chat that you would like to connect with Stripe to take payments. It will ask you to enter your Publishable Key
and Secret Key
. This allows your app to process transactions directly into your stripe account.
Step 5 - Selling specific products
You may wish to sell a specific product (ie a one-time offering) or a subscription (ie a recurring monthly or annual subscription). If this is the case you will need to create Products inside Stripe.
Log into your Stripe Dashboard
Select Product Catalogue in the left-hand menu
Click Create Product
Enter a name for your Product
Select whether this is a One-time or recurring Payment product and set the price
You should now see your product in the Product Catalogue.
Click on your product, and on the right you should have a Product ID. Copy this.
On famous.ai, tell the AI you have set up a new product, say whether it is a one-time or recurring product, and give it the Price ID.
You should now be able to use this product in your app.