Using Stripe
This guide walks you through integrating Stripe with Cryptlex to automate license creation and license subscription renewals.
Prerequisites
Complete the Cryptlex Quick Start Guide to set up your product and license templates.
Deploy the Stripe-Cryptlex integration script using one of the following options:
Self-hosted: Follow our deployment guide to run the integration on your infrastructure.
Cryptlex-hosted: Let Cryptlex host the integration for a nominal fee. Contact support to request managed hosting.
Step 1: Set Up Products in Stripe
In your Stripe Dashboard:
Navigate to Products and create your desired product(s).
Pass the Cryptlex
productId
to the integration script to enable license creation and subscription renewal for the selected product.
Step 2: Configure Webhooks
In your Stripe Dashboard, go to Developers > Webhooks.
Click Add Endpoint, and enter the URL where your integration script is hosted.
Select one of the following events to listen for:
checkout.session.completed
– Triggers license creation after successful checkout.invoice.paid
– Triggers license creation and also handles subscription renewals.
Retrieve the signing secret and provide it to your integration script for webhook verification.
What Happens Next
Once the integration is active:
New licenses are automatically created after successful Stripe payments.
New users are created in Cryptlex using the customer’s name and email from Stripe, and are automatically linked to the corresponding license.
Licenses are automatically renewed in Cryptlex when the corresponding Stripe subscription renews.
Need more help?
In case you need more help with using Stripe, we'll be glad to help you make the integration. You can either post your questions on our support forum or contact us through email.
Last updated