Skip to content

Stop creating Anystack licenses on subscription events#322

Merged
simonhamp merged 4 commits intomainfrom
fix-ultra-license-creation
Mar 31, 2026
Merged

Stop creating Anystack licenses on subscription events#322
simonhamp merged 4 commits intomainfrom
fix-ultra-license-creation

Conversation

@simonhamp
Copy link
Copy Markdown
Member

@simonhamp simonhamp commented Mar 31, 2026

Summary

  • Removed the createLicense() method from HandleInvoicePaidJob — no Anystack licenses are created for any subscription plan (mini, pro, or max)
  • Removed fallback license creation in legacy renewal and subscription cycle handlers
  • Cleaned up unused imports (InvalidStateException, Sleep)

Test plan

  • Added HandleInvoicePaidJobTest with data provider covering mini, pro, and max plans
  • All 3 test cases assert CreateAnystackLicenseJob is never dispatched
  • Verify existing subscription renewals with licenses still get expiry updates (unchanged flow)

🤖 Generated with Claude Code

simonhamp and others added 4 commits March 31, 2026 09:24
License creation via Anystack is no longer needed for any subscription
plan. Remove the createLicense() method and all call sites in
HandleInvoicePaidJob, including fallbacks in legacy renewal and
subscription cycle handlers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review March 31, 2026 10:56
@simonhamp simonhamp merged commit b2987da into main Mar 31, 2026
2 checks passed
@simonhamp simonhamp deleted the fix-ultra-license-creation branch March 31, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant