Repository navigation
Switch between monthly and yearly from the workspace page - #94
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…enewals Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ch checkout Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…aid day Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Owners and admins can switch a workspace between monthly and yearly billing themselves, without manual work from us.
subscription_createdwebhook cancels the superseded monthly subscription. An abandoned checkout changes nothing.app:process-yearly-subscriptionsruns daily:app:report-yearly-subscriptionsis read-only and lists yearly subscriptions whose Lemon Squeezy quantity drifted from usage.Configuration
New env vars, documented in
config/settings.php:CLOUD_HOSTED_PRO_SWITCH_PRODUCT_IDCLOUD_HOSTED_PRO_SWITCH_MONTHLY_VARIANT_IDCLOUD_HOSTED_PRO_SWITCH_YEARLY_VARIANT_IDCLOUD_HOSTED_PRO_YEARLY_VARIANT_IDSThe switch controls stay hidden until the three switch ids are set.
Verified in Lemon Squeezy test mode
invoice_immediatelybills immediately.disable_prorations. That is why the swap runs only on the last day of the paid year, after the quantity is set.Tests
Full suite passes (468 tests).
🤖 Generated with Claude Code