English
php
stripe
billing
saas
webhooks
idempotency
shinobi-apps-framework
Stripe billing in PHP SaaS: 4 edge cases that bit us in production
Sonar billing: PlanService::PLANS canonical catalog (free/solo $9.99/pro $29/agency $79 + limits enforcement), 4 production fixes — M1 dual-sub guard (redirect to portal), M2 Price ID env rotation fallback (historical DB lookup), M3 event ordering guard (GREATEST last_stripe_event_at), M4 unknown Stripe status preserves access. Trial → Solo limits. invoice.payment_failed = log only, let Stripe dun.