Double-check unpaid orders and let shoppers complete their payment
- Every 5 minutes, ask Stripe or HitPay about unpaid orders whose payment news may have been missed, and mark them paid
- After 25 hours with no payment, the order becomes "Not paid" and is left alone
- Both payment pages now close 23 hours after the order, and that deadline is shown to shoppers
- Order page: "Complete payment" button with the deadline; "Payment time is over" after it
- Cart page: banner for the shopper's own unpaid order (same browser only)
- One "Complete your payment" email about 30 minutes after an unpaid order, in English or Malay; not sent if they paid, ordered again, the provider could not be checked, or under an hour is left
- Every "Complete payment" link asks the provider first, so a paid or expired order goes to the order page
- Merchant order page: notes for orders waiting for payment and for "Not paid" orders
- New columns on orders: payment_checked_at, payment_url, payment_expires_at, payment_reminded_at (run php artisan migrate)
Add cart, Stripe checkout, orders and order confirmation email
Step 4 part 2:
- Session cart per store with stock limits and self-correction.
- Checkout: shopper details, order snapshot, Stripe hosted payment page
behind a PaymentGateway interface, return-page and webhook confirmation.
- Orders tab for the merchant and a confirmation email in the store language.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Add multi-page store plans, products and storefront shop pages
Step 4 part 1:
- Store plan version 2: shared header and footer plus a list of pages,
with an upgrader and a data migration for existing stores.
- Products with photos, prices in sen, stock and draft/active status.
- Storefront Shop page and product page; the home page product section
shows real products with a View all link.
- AI prompts and chat edits updated for the new format.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Add AI store generation, chat edits and plan limits
Step 3: swappable AI layer (Claude via the official SDK, DeepSeek via an
OpenAI-compatible driver, and a fake provider), full store generation,
chat edits, background job with a progress screen, usage counting and
limits per plan. Removes the temporary sample-design button.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>