Ovidiu U 2ff3aeba4d fix: admin tier assignment when stripe price env vars are empty
env() returns an empty string (not null) when a STRIPE_PRICE_*
var is set but blank, so the ?? fallback never fired and the
synthetic subscription was created with stripe_price = '' —
which then resolved back to free in Plan::resolveForUser.

Switch to ?: so empty strings also fall back to the synthetic
price_admin_{tier}_{cadence} id, and backfill the matching Plan
row's stripe_price_id_{cadence} when empty so resolution succeeds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 09:29:21 +01:00
2026-04-03 16:47:05 +01:00
2026-04-03 16:47:05 +01:00
2026-04-03 16:47:05 +01:00
2026-04-03 16:47:05 +01:00
2026-04-29 09:29:07 +01:00
2026-04-04 08:23:04 +01:00
2026-04-03 16:47:05 +01:00
2026-04-03 16:47:05 +01:00
2026-04-03 16:47:05 +01:00
2026-04-03 16:47:05 +01:00
2026-04-03 16:45:47 +01:00

The file is empty.
Description
No description provided
Readme 2.7 MiB
Languages
PHP 60.5%
Vue 14.8%
Blade 14%
HTML 9.2%
JavaScript 1%
Other 0.5%