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 automatic discounts and AI product descriptions
- Discounts with no code: min items or spend, all or chosen products, dates
- One discount per order: the better of code and automatic discount
- Cart nudge, product page note, name on order, Stripe and email
- Chat commands can create automatic discounts and write product descriptions
- Bundles of other products at one price, stock taken from the items inside
- "What's inside" on the product page
- Paying lowers each item's stock; checkout checks shared stock
- Order page shows what to pack
- Up to 2 options per product, each combination with its own price and stock
- Option buttons on the product page; sold-out choices crossed out
- Variant shown in cart, checkout, Stripe, orders and email
- Paying lowers the stock of the chosen variant
- Discounts tab: percent or fixed off, min spend, dates, usage limit
- Code box in cart; discount on products only, not shipping
- Orders save code and amount; Stripe shows it as a coupon
- Use counted only when the order is paid
Add shipping fees, mark as shipped and WhatsApp links
Step 7 part 1:
- Store Settings tab with WhatsApp number and flat shipping fees for
Peninsular and East Malaysia, plus optional free shipping.
- Shipping fee behind a ShippingProvider interface; added at checkout,
sent to Stripe as its own line, shown on the thank-you page and email.
- Mark as shipped with courier and tracking number; the shopper is
emailed once, in the store language.
- WhatsApp chat button on the store and wa.me links on order pages.
- Checkout and cart messages in Bahasa Malaysia; Malaysian-only phone
numbers for WhatsApp.
- Fix live-store menu links on pages other than home.
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>