A lightweight server application designed to handle invoice.paid
and checkout.session.completed
events from Stripe. Upon receiving these webhooks, the server will automatically create or renew licenses in Cryptlex, ensuring a seamless integration between Stripe payments and Cryptlex licenses.
To run this application, you must set the following environment variables in your hosting environment:
- STRIPE_WEBHOOK_SECRET: Your Stripe webhook secret, used to verify the authenticity of incoming Stripe events.
- CRYPTLEX_PRODUCT_ID: The Cryptlex Product ID corresponding to the license you want to create or renew.
- CRYPTLEX_ACCESS_TOKEN: A valid Cryptlex API access token with the
license:read
,license:write
,user:read
,user:write
permissions; used to authenticate requests to the Cryptlex API.
This project provides two preconfigured deployment targets based on your runtime environment:
- AWS: For running the server on AWS Lambda using GitHub Actions.
- Node: For running the server in a Node.js environment, including containerized deployments.
To set up deployments on AWS Lambda, review the provided aws.yml GitHub Actions workflow. This file contains instructions for building, and deploying your application using GitHub Actions.
To run the application in a Node.js environment, including Docker-based workflows, refer to the Dockerfile.
If you have questions, need assistance, or experience any issues, please feel free to reach out to our support team at support@cryptlex.com. We’re here to help!