trypost/tests/Unit/Support
Paulo Castellano 4590fc5fd1
Make Stripe Checkout configurable via billing env knobs (#252)
* Make Stripe Checkout configurable via billing env knobs

Replace the hard-required $1 first-month coupon with env-driven trial days,
optional coupon, and allow_promotion_codes so SaaS can switch checkout modes
without a code change.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix no-effect ReflectionClass import in checkout test

CI treats bare global use statements as ErrorException and aborts
loading the suite before any assertions run.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Document checkout env knobs in AGENTS.md instead of .ai/

Remove the Boost record-rule .ai/rules folder and keep durable billing
checkout guidance in AGENTS.md / CLAUDE.md project-specific rules.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Harden checkout env knobs from review findings

Default allow_promotion_codes to false, grant Stripe trial only to
first-time subscribers, clarify the coupon/promo XOR error, and cover
negative XOR cases plus StartSubscriptionCheckout wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 21:25:32 -03:00
..
Billing Make Stripe Checkout configurable via billing env knobs (#252) 2026-08-07 21:25:32 -03:00
HexColorNameTest.php feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00
MentionParserTest.php feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
PostMediaRulesTest.php fix(api): roll back hosted media when an inline url batch partially fails 2026-06-28 20:59:21 -03:00
PostStatusRulesTest.php fix: keep post drafts unscheduled by default (#209) 2026-08-01 17:39:18 -03:00
UrlDetectorTest.php feat(bluesky): add link preview cards for posts 2026-07-17 14:32:40 -03:00