Create your own Lemon Squeezy store to start selling Subscriptions.
To be able to process Subscriptions, you will need to setup your Lemon Squeezy store. Follow the steps below to set up your complete Lemon Squeezy store, ready for testing!
If you want to learn more about Lemon Squeezy, please visit their Homepage.
Before we can setup the variables and retrieve the important information, we will first need to sign up: Register. Fill in the required information to create an account.
After you have confirmed your emailadress, it is time to setup your store. Fill out the required information:
- Store name: The name of your company, or the store you want to use
- Store url: Your personalized store url. This can be used for customers to directly access your Lemon Squeezy store.
- Country: Select your companies country. This is important, as Tax compliance will be done based on your location!
- Click on create store
Navigate to the settings page of your personal project and fill out the required information. After all information has been added, make sure to Save changes.
Contact email is mandatory
After the store settings have been saved, you can then Create your first product. Go to the Products page and click on Create Product.
Within the product, we have to setup some additional information:
- Name: The name of your product. This will also be visible from your storefront! i.e. 'Subscription for Supaboost'
- Description: Give the product a short and clear description. I.e. 'Monthly subscription which gives the user full access to Supaboost services'
- Pricing: Here you should select Subscription. As the template is built around Subscription based SaaS.
- Price: Add your price per period. For example $19 per month
- Free trial: Optional. Can set this to true if you want to add a trial period for new users.
- Tax category: Software as a Service (SaaS)
- Media: Add images of your application/logo/etc. You can add multiple images and select the one you want to display
- Files: If you are using Files which can be downloaded upon purchase, you can add those here.
- Variants: Select different variants for the same product.
- Redirect customer after purchase: Add a redirect to your /success page. Can also be done when you are finished with the template.
- Display product on storefront: You have the possibility to show/hide the product on the main page of your store. If you want to only allow custom sign-up, disable this.
When you are done, select Publish product!
Next we are going to create an API key. This key will be used to fetch your Products, Variants and later Invoices from Lemon Squeezy.
- On the left panel, select Settings > API
- Then select the + icon to create a new API Key
- Enter the name of your API Key - Example: Computer Supaboost
- Select Create API Key
- Copy the code and store it somewhere you can access it later!
The webhook is used to create and receive information from Lemon Squeezy. After a subscription is created, the webhook will write information to the webhook. This information will be used to populate our Supabase database.
It's important to note that this needs to be updated later, when we have setup a local server.
- On the left panel, select Settings > Webhooks
- Then select the + icon to create a new Webhook
- Add a callback URL. Enter a dummy webhook
- Add a signing secret. (generate a UUID with UUID Generator)
- Store the webhook secret
- Select the following webhooks:
- Click on Save Webhook
To be able to connect to your store, save the following information:
- Webhook secret
- API Key
- Product ID (Copy this from your product)
- Store ID (the name you entered in the URL)