Skip to content

feat(payment-gated-subs): Cover activation of incomplete subscriptions coming from upgrades#5580

Closed
osmarluz wants to merge 3 commits into
mainfrom
feat/payment-gated-subs-3/activate-incomplete-subscriptions-from-upgrade
Closed

feat(payment-gated-subs): Cover activation of incomplete subscriptions coming from upgrades#5580
osmarluz wants to merge 3 commits into
mainfrom
feat/payment-gated-subs-3/activate-incomplete-subscriptions-from-upgrade

Conversation

@osmarluz
Copy link
Copy Markdown
Contributor

@osmarluz osmarluz commented May 26, 2026

Context

Builds on #5533, which gated subscription upgrades only from the from-pending path. A gated upgrade actually completes from the incomplete state, once payment resolves — this PR covers that path.

Description

  • Subscriptions::ActivateService#activate_from_incomplete now routes through activate_for_upgrade when the subscription has a previous_subscription, mirroring the pending path.
  • activate_for_upgrade distinguishes from-incomplete: skips re-emitting fixed-charge events (already done at gating) and bills only the previous subscription with :upgrading (the new subscription was billed with skip_charges when gated).
  • The billing list now flows as an explicit argument into bill_upgrade_subscriptions instead of through an instance variable.

@osmarluz osmarluz requested a review from ancorcruz May 26, 2026 18:11
@osmarluz osmarluz marked this pull request as draft May 27, 2026 08:25
@osmarluz
Copy link
Copy Markdown
Contributor Author

Replaced by #5586

@osmarluz osmarluz closed this May 27, 2026
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