Stripe Example Use Cases

If you want customers to be able to buy two different license types (with different custom fields) for the same product, follow these steps:

1

Create the necessary custom fields inside your product in LicenseSpring

  • In LicenseSpring, open the Products tab and select the product you want to use.

  • Open the Custom fields section of the product and click "Add custom fields".

  • In the pop-up window, fill out the necessary details and click "Confirm". Repeat for each custom field you need.

Add custom fields
2

Create the necessary license policies for each license type

  • On the same product, go to the License policies section and click "Add license policy".

  • In the pop-up, choose the appropriate options for the license (for example, select subscription if needed).

  • License policies can override some product settings without changing the product itself.

  • In the pop-up, select the custom fields to use for this license policy and update their default values if needed.

Add license policy
License policy options
3

Create a price for each license type in Stripe and add the license policy code to price metadata

  • In Stripe, open the corresponding Stripe product linked to the LicenseSpring product. (If you haven't created/connected it, follow the Stripe Integration setup.)

  • If the Stripe product doesn't already have separate prices for each license type, click "Add another price" and create the prices with the required details.

  • Open the Price page for a price, click "Edit metadata", and add the custom attributes and the license policy code.

    • Add the attribute name license_policy with the license policy code you created in LicenseSpring.

Edit price metadata

More details: Stripe Integration

Example: add attribute license_policy with the policy code shown in LicenseSpring.

License policy code example
Custom attribute example
4

Double check everything

  • Ensure the product in LicenseSpring has the two different license policies (and any required custom fields/features).

  • Ensure the corresponding Stripe product has two different prices, each with correct metadata including its license_policy and any other custom attributes you want to use.

Last updated

Was this helpful?