Stripe Integration
Implementation Overview
Follow these steps to configure licensing for the products you sell using Stripe:Create a product in Lukittu
Create the same product in Stripe
Add custom metadata attributes
Set up a webhook endpoint
Add API credentials to Lukittu
Creating a Product in Lukittu
Navigate to Products
Add product details
Get the product ID
Creating a Stripe Product for Lukittu
Follow these steps to create and configure a Stripe product for use with Lukittu:Access the Stripe Dashboard
Add a Product
Locate Metadata Options
Required Metadata for Lukittu
Add the following metadata key-value pairs to your product:Key | Description |
---|---|
product_id | Your Lukittu product ID (required for identification). |
Optional Metadata for Lukittu
The following metadata keys are optional and can be added as needed:Key | Type | Description |
---|---|---|
ip_limit | Number | Maximum number of IPs allowed. |
hwid_limit | Number | Number of concurrent users allowed. |
expiration_days | Number | Number of days until the license expires. |
expiration_start | ACTIVATION or CREATION | Determines when expiration starts (default: CREATION ). Applicable if expiration_days is used. |
Notes on Expiration and Subscriptions
Subscription-Based Products
Subscription-Based Products
expiration_days
, expiration_start
).Lukittu automatically handles license expiration for subscription-based products. If a payment is not received, the license will expire automatically at the end of the billing period.One-Time Payment Products
One-Time Payment Products
Adding a Stripe Webhook
Search for Webhooks
Create a New Event Destination
https://app.lukittu.com/api/v1/integrations/stripe?teamId=YOUR_TEAM_ID
Replace YOUR_TEAM_ID
with your Lukittu team’s ID.Configure Webhook Events
invoice.paid
- customer.subscription.deleted
-
customer.subscription.created
- customer.subscription.updated
-
checkout.session.completed
Save the Webhook
Retrieve the Webhook Signing Secret
whsec_
. You will need this signing
secret to complete the Stripe integration in Lukittu.Adding a Restricted API Key to Lukittu
Navigate to API Keys in Stripe
Create a New Restricted Key
Lukittu
). - URL: Set the URL to:
https://app.lukittu.com
Create and Copy the Key
Add the Key to Lukittu
Finishing the Integration
Navigate to the Integrations Section
Enter API Key and Webhook Signing Secret
whsec_
) from the Stripe
webhook configuration.Verify the Integration
Testing Your Integration
Optional Testing Procedure (Recommended)
Optional Testing Procedure (Recommended)
-
Switch to Test Mode in Stripe
- Enable Test Mode on your Stripe dashboard.
- Repeat the steps to set up API keys, webhooks, and products in this isolated environment.
-
Test Transactions
- Use Stripe’s test credit cards to simulate payments and validate your integration.
-
Transition to Production
- Once testing is complete and successful, replicate the setup in Live Mode to start selling.