This update expands PteroAutoStock with real-time stock validation for configurable products, improved checkout protection, better Paymenter compatibility, and safer resource handling for Pterodactyl-based offers.
What’s new
- Dynamic config option stock limits — configurable product options such as RAM or disk sliders are now filtered based on currently available Pterodactyl resources.
- Unavailable option removal — options that exceed available node or location resources are automatically removed from the configurator, preventing customers from selecting configurations that cannot be delivered.
- Checkout stock validation — stock is refreshed and validated again before checkout, invoice generation, and payment processing to reduce the risk of overselling.
- Reduced Pterodactyl API load — runtime inventory caching and optimized resource calculations minimize repeated API requests and help avoid panel rate limits.
- Improved Paymenter compatibility — updated extension method signatures, route registration, admin page handling, and sidebar integration for newer Paymenter versions.
- Safer stock limits — added stronger stock caps and validation logic to prevent unrealistic or unsafe stock values.
- Bug fixes — fixed extension installer compatibility issues.
Notes
- Fully compatible with existing product configurations and settings.
- Pterodactyl stock is always revalidated during checkout, even if a customer bypasses the frontend configurator.
- The dynamic configurator currently operates by safely filtering Paymenter-generated checkout HTML and Livewire responses.
Important
This update is strongly recommended for all Paymenter installations using PteroAutoStock with configurable products, sliders, or custom resource-based offers. It improves stock accuracy, prevents unavailable configurations from being selected, and reduces unnecessary Pterodactyl API traffic.
This update integrates the PteroAutoStock add-on with the latest version of paymenter (1.4.2)
IMPORTANT INFORMATION
- If you used the first versions of PteroAutoStock or see the error "There are no commands defined in the "stock" namespace." enter crontab via crontab -e and delete the job associated with the PteroAutoStock command
This update introduces a complete structural rewrite of PteroAutoStock, transforming it from a single-file extension into a fully modular Paymenter add-on with an integrated management interface and extended functionality.
What’s new
- Modular extension structure — transitioned to a full directory-based extension for improved maintainability and scalability.
- Dedicated management panel — new admin tab for direct management of the add-on, including manual stock synchronization and configuration options.
- Product exclusion support — allows selective disabling of automatic stock synchronization for specific products.
- Customizable update interval — administrators can now define the frequency of automated stock updates.
- Update history tracking — displays logs of the last 30 synchronization operations for monitoring and troubleshooting.
- Estimated stock preview — provides a real-time overview of current and projected stock levels for each product.
Notes
- Fully compatible with both Pterodactyl SSO and Better Pterodactyl add-ons.
- No configuration changes are required; all existing product settings remain valid.
Important
This update is recommended for all Paymenter installations using Pterodactyl integration. It ensures accurate synchronization, improved reliability, and full compatibility with recent Paymenter and Pterodactyl releases.
This release rewrite PteroAutoStock into a clean, single-file Paymenter extension and adds full compatibility with the Better Pterodactyl addon.
What’s new
- Runs as a pure extension (no Artisan command). The scheduler calls
run()every minute.- Automatic client selection: prefers Pterodactyl SSO → falls back to Better Pterodactyl → then the default Pterodactyl client.
- Zero configuration changes — your existing product settings (
node,memory,disk,location_ids) continue to work.- Safer scheduling with
withoutOverlapping()andonOneServer()for multi-instance setups.- Better logging & error handling; same stock math, fewer surprises.
Notes
- Works out of the box with or without the SSO addon installed.
- Backwards-compatible with prior setup (no UI changes required).
Important
If you use Paymenter with Pterodactyl SSO or the Better Pterodactyl addon, this update is required to keep stock synchronization working reliably.
- Full integration with the Pterodactyl SSO addon.
- No configuration changes required — works out of the box.
- Ensures compatibility for all Paymenter setups (both with and without SSO).
- Minor internal improvements and code cleanups.
If you use Paymenter with the PteroCore SSO addon, this update is required for proper stock synchronization!
- Products with only a location (without a specific node) are now supported!
- Stock is now correctly summed across all nodes in assigned locations.
- All stock calculations are accurate for both node and location-based products.
- Greatly improved output – node and location names are now shown in console messages.
- Minor code cleanups for production use.
If you use Paymenter with Pterodactyl and assign products only by location, this update is essential!
