Stripe Example Use Cases
If you want your customers to be able to buy two different licenses types (and with different custom fields) from the same product here is how you would approach this use case:
To do so, go to your LicenseSpring platform, click on the Products tab, once in the products tab, click on the product you want to use, and then click on the Custom fields section of your product. Inside the Custom fields section click on the "Add custom fields"
A small pop-up window will show up. Fill out the necessary details, and click on the "Confirm" button. Do so for each custom field that you need.
Now you will need to create a license policy for each license type you want to sell. To do so, on the product where you created the custom fields, go to the License policies section and click on the "Add license policy".
A pop-up will show up with all the necessary options that you need for your licenses. Be sure to choose all the correct options that you need (for example, if you want a subscription type license, choose the subscription type from the dropdown)
License Policies override some settings from the product itself, but they wont change the actual settings on the product.
So if you need to change the value of some custom field or product feature you can do so in this current pop-up window.
By selecting that custom field section of the pop-up, and choosing which custom fields you want to use on this license policy, you will get the option to change their default values.
Create a price for each License type you want to sell inside Stripe and add the License policy code in their metadata
Now we need to go back to Stripe, and for the LicenseSpring product that we created the custom fields and license policies, we need to find the corresponding Stripe product (if you do not have the same product created in Stripe and connected with the same product in LicenseSpring, you can do so by following the initial Stripe integration setup documentation https://docs.licensespring.com/integrations/stripe/integration)
Once we are inside the corresponding product page if we do not already have 2 different prices inside that product, we need to create them and add the License Policies codes in their metadata. To create a new price click on the "Add another price" and inside the new window fill out all the necessary information regarding that price and licenses.
Next step is to add the metadata. We need to click on the price for which we want to associate the newly created license policie, this will open the Price page. Inside the price page click on the "Edit metadata" button to add all the necessary "Custom attributes" that you have, together with the license policy code.
More information on how to do so, you can find in the Stripe integration setup documentation https://docs.licensespring.com/integrations/stripe/integration#FfhZJ.
But in simple terms, you need to add the attributelicense_policy and its code that you can get back in LicenseSpring where we initialy created the two new license policies
Example custom attibute for a license policy:
At the end, make sure you have inside LicenseSpring setup 2 different license policies on the product that you want to sell (together with any custom fields or features), and that inside Stripe you have 2 different prices with 2 different price metadatas setup, each with its own correct License Policy and correct custom attributes that you want to use.