π§ How DevPayr Works
Before you dive deeper into SDKs, licenses, domains, or advanced workflows, itβs important to understand how DevPayr actually works under the hood.
DevPayr is more than a license validator. Itβs a full licensing, payment enforcement, and deployment control system designed to protect your work β whether you're a developer, designer, agency, freelancer, or SaaS builder.
This page gives you a complete, big-picture understanding of DevPayrβs core mechanics: licenses, validation, environments, domains, usage limits, injectables, SDKs, webhooks, and API keys.
By the end, everything will βclick.β
π The Core Philosophy Behind DevPayr
DevPayr exists for a simple but powerful reason:
To protect your digital work and ensure you get paid β without complicating your development workflow.
Whether you build:
SaaS platforms
Templates/themes
Websites for clients
Mobile apps
Plugins
Internal enterprise systems
Digital tools
DevPayr helps you:
Enforce licensing
Limit unauthorized usage
Validate environments/domains
Lock features behind payments
Deliver dynamic scripts/files
Suspend unpaid deployments
Automate renewals/trials
And it integrates into your codebase with minimal friction.
π§© The DevPayr System β High-Level Overview
DevPayr operates through five core components, all working together:
Projects
Licenses
Validation Engine
Injectables
SDKs & API Keys
Letβs break them down properly.
1οΈβ£ Projects β Your Product Container
A Project is the digital βworkspaceβ for one of your apps, tools, or client systems.
Each project holds:
Its licenses
Allowed domains
API keys
Webhooks
Metadata
Injectables
Environment rules
Usage limits
Payment state (has_paid or not)
Projects keep everything clean and separated so multiple products donβt mix signals.
2οΈβ£ Licenses β The Gatekeepers
A License determines whether a specific installation or deployment of your software is allowed to run.
Licenses have:
Expiration dates
Domain limits
Subdomain limits
Usage-per-day limits
Environment controls
Paid/unpaid state
Restrictions
Test or production mode
Every time your app boots (or periodically), it sends a validation request that says:
βIs this copy allowed to run?β
DevPayr answers that question with structured, predictable data.
3οΈβ£ Validation Engine β The Brain
This is where DevPayr shines.
Every time your app validates a license (via SDK or API), the DevPayr validation pipeline runs:
β Checks the license
Is it valid?
Is it expired?
Is it active or suspended?
Is it marked as test/dev-only?
β Checks the project
Is the project marked as paid?
Are injectables available?
Are environment rules satisfied?
β Checks domain/IP restrictions
Is the host allowed?
Does it exceed max domains?
Is the subdomain allowed?
Is the IP/country blocked (if enabled)?
β Checks usage limits
Has the license exceeded daily validation limits?
Is throttling needed?
β Checks environment
Local? Staging? Production?
β Logs usage
For your dashboard analytics.
β Returns a structured response
Such as:
Your app reads the result and either:
Allows full access
Shows a licensing modal
Redirects the user
Logs warnings silently
Blocks access
Or handles it however you choose
4οΈβ£ Injectables β DevPayrβs Secret Weapon β‘
Injectables are one of the most powerful features in DevPayr.
They allow you to remotely deliver code, scripts, files, or content into your application dynamically β only if the license or project is paid.
Injectables can be:
JS files
PHP snippets
Python modules
HTML fragments
JSON config
CSS
Blade snippets
Text/markdown
Whatever your app can consume
Injectables have properties like:
target_pathβ where you want the content writtentypeβ script, file, inline, modulemodeβ append, overwrite, createonly_if_paidβ strict gatingis_activeβ enable/disable
Why injectables matter:
β Remote feature control
Flip features on/off without redeploying.
β Deliver code to paid users only
Protect premium features with zero distribution risk.
β Update logic on the fly
Shipping updates without updating the app itself.
β Security and obfuscation
Code doesnβt live inside the customerβs environment permanently.
β Multi-language support
Injectables work in Node, PHP, Python, Frontend, and more.
Injectables are fetched automatically during validation if enabled.
5οΈβ£ SDKs & API Keys β How You Integrate
DevPayr provides official SDKs for:
Node.js
PHP
Python
Browser / Frontend JS
The SDK handles:
Validation
Injectable fetching
Writing files locally (Node, PHP, Python)
Calling API endpoints
Logging
Error handling
Config orchestration
Signature verification
API Keys: When You Need More Power
A License Key alone can validate your app.
An API Key unlocks:
License creation
License suspension/reactivation
Project management
Domain management
Injectable upload/edit
Payment validation
Real-time administrative workflows
Never use API keys in frontend code.
π How a Typical DevPayr Validation Flow Works
Hereβs a simple example of what happens when your app boots:
Your App β sends license + optional metadata
DevPayr β validates everything
DevPayr β responds:
If valid, your app:
Runs normally
Loads injectables
Stores updates locally
Unlocks premium features
If invalid, your app:
Shows a licensing modal
Redirects the user
Disables premium features
Or denies access entirely
You decide the behavior.
π₯ Why DevPayr Works So Well
β Works across any tech stack
Anywhere you can send HTTP, DevPayr works.
β Lightweight SDKs
Minimal footprint, simple setup.
β Real-time license management
Suspend a license β customer loses access instantly.
β Strong abuse prevention
Domains, subdomains, usage limits, environment checks.
β Injectables for dynamic deployments
No other licensing system does this as elegantly.
β Designed for developers and designers
Simple defaults, powerful extensions.
β Built for SaaS, agencies, and software creators
Whether you're shipping one app or 200 client dashboards.
π Example Use Cases
For Agencies
Lock client dashboards until final payment
Prevent multi-domain abuse
Remotely disable unpaid projects
For SaaS Founders
Control access to premium features
Enforce subscription payments
Deliver experiments via injectables
For Template/Theme Creators
Prevent resale
Enforce single-site licensing
Send premium scripts only to buyers
For Developers selling tools
Validate CLI or desktop apps
Limit installations
Auto-update configs dynamically
π In Short: The DevPayr Engine Ensures You Always Stay in Control
DevPayr automates:
License enforcement
Payment enforcement
Deployment control
Remote updates
Code injection
Validation logic
Abuse prevention
Integration workflows
All while keeping your apps fast, flexible, and maintainable.
Last updated