Cryptlex Documentation
  • Welcome to Cryptlex!
  • Getting Started
    • Overview
    • Licensing Models
  • License Management
    • License Templates
    • Implementing License Models
    • Creating Licenses
    • License Subscriptions
    • Custom License Fields
    • Meter Attributes
    • Suspending Licenses
    • Revoking Licenses
    • Maintenance Policies
  • Feature Management
    • Overview
    • Features and Entitlement Sets
    • License Feature Entitlements
    • Accessing Feature Entitlements
    • Use Cases
  • User Management
    • Roles
    • Creating Users
    • Authenticating Users
    • Organizations
    • Resellers
    • Customer Portal
    • Reseller Portal
    • Google SSO
    • SAML SSO
  • Release Management
    • Overview
    • Creating Releases
    • Distributing Releases
  • Node Locked Licenses
    • Overview
    • Using LexActivator
      • Using LexActivator with C, C++ and Objective C
      • Using LexActivator with C#
      • Using LexActivator with VB.NET
      • Using LexActivator with Java
      • Using LexActivator with Delphi
      • Using LexActivator with Python
      • Using LexActivator with Go
      • Using LexActivator with Node.js
      • Using LexActivator with Ruby
      • Using LexActivator with Android
      • Using LexActivator with iOS
      • Using LexActivator with Flutter
    • Using Web API
    • Offline Activations
    • Proxies and Firewall
  • Floating Licenses
    • Overview
    • Hosted Floating License Server
    • On-Premise Floating Licenses
      • LexFloatServer
      • Using LexFloatClient
        • Using LexFloatClient with C, C++ & Objective C
        • Using LexFloatClient with C#
        • Using LexFloatClient with VB.NET
        • Using LexFloatClient with Java
        • Using LexFloatClient with Delphi
        • Using LexFloatClient with Python
        • Using LexFloatClient with Node.js
        • Using LexFloatClient with Go
        • Using LexFloatClient with Android
        • Using LexFloatClient with iOS
      • Offline Floating License
  • Named User Licenses
  • Timed Trials
    • Verified Trials
    • Unverified Trials
  • Licensing Docker Apps
  • Webhooks
  • Automated Emails
  • Web Integrations
    • Using Zapier
    • Using FastSpring
    • Using Stripe
    • Using Web API
    • Custom Development
  • Changelog
    • Web API
    • LexActivator
    • LexFloatClient
    • LexFloatServer
  • Legal
    • Terms of Service
    • Privacy Policy
    • Subprocessors
    • Data Processing Addendum
    • Service Level Agreement
    • Security, Privacy, and Compliance
    • Open Source Licenses
  • Cryptlex On-Premise
    • Overview
    • System Requirements
    • Server Layout
    • Installation Guide
      • Docker Compose
      • Kubernetes
    • Configuring Client Libraries
    • Monitoring and Error Reporting
Powered by GitBook
On this page
  • Step 1. Configuring the notification API
  • Step 2. Generate a license key using the notification script
  • Step 3. Email the license key to your customer
  • Need more help?
  1. Web Integrations

Using Web API

PreviousUsing StripeNextCustom Development

Last updated 1 day ago

You can easily automate the order process of your product using Cryptlex Web API. The API can be used with any payment processor. We have examples available on GitHub in Node.js and PHP which you can tailor as per your requirements:

The following are the steps to automate the process:

Step 1. Configuring the notification API

Each payment processor (like PayPal, 2Checkout, Authorize.net, etc.) has its own notification API. You can configure any server script (PHP, Node.js, etc.) URL endpoint, which the notification API invokes on successful payment, and passes along other user data.

So, depending on your payment processor, you need to set the path for the same. Let's call the script generate-license.php. So the sample path would look like:

https://yourserver.com/generate-license.php

Step 2. Generate a license key using the notification script

When your generate-license.php is invoked by your payment processor, you get access to all the payment and customer-related data that your payment processor passes after the successful payment.

The generate-license.php generates a license key for your customer and returns it to your payment processor. It also creates a user in Cryptlex using the customer details present in the request.

Step 3. Email the license key to your customer

After the license key is generated, either your payment processor will send an email, or you can set up an in Cryptlex to send the license key to your customer.

Alternatively, you can also use to send the email by writing a simple mail script or by using any third-party mailing service like SendGrid, MailGun, etc.

Need more help?

In case you need more help with automating your order process, we'll be glad to help you. You can either post your questions on our or contact us through .

Node.js License Generator
PHP License Generator
automated email
webhooks
support forum
email