- "Get paid" card in Settings: connect Stripe, finish setup, Stripe checking, connected with payouts status
- Payment pages and discount coupons are made in the merchant's own Stripe account; we take no cut
- Checkout is closed ("not taking orders yet") until Stripe approves the store
- FPX is requested and switched on for shoppers once the merchant finishes Stripe's form
- Second webhook for payments on merchants' accounts (STRIPE_CONNECT_WEBHOOK_SECRET)
- Overview: "Connect Stripe" step and a warning for live stores that cannot take payments
- Terms and privacy pages say how merchants are paid
- New stripe_accounts table and orders.payment_account (run php artisan migrate)
EOF
- Store "Email for shoppers" in Settings: order emails come under the store's name, replies go to the store
Add subscription billing with free trial and plan limits
Step 6:
- Plans in a database table (prices in sen); 14-day free trial for
every new account.
- Stripe subscriptions behind a SubscriptionGateway interface:
subscribe, switch plan, cancel at period end, undo.
- Billing page with usage meters and plan cards; sidebar link; trial
notice on the dashboard.
- Limits enforced for stores, regenerations and AI edits. With no plan,
AI, new stores and publishing are refused and live stores go offline.
- The Stripe webhook also keeps subscriptions in step.
Tests: 164 pass (14 new). Verified with a real Stripe test
subscription: subscribe, cancel, undo.