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 store logos: upload, ready designs or drawn by Claude
- Logo box in the Design tab; the logo belongs to the store and shows on the live store right away
- Upload PNG, JPG or WebP (up to 2 MB), resized and saved as WebP with transparency kept; SVG uploads refused
- 8 ready designs drawn from the store's name, fonts and colours, following the store's look
- Claude draws 3 logos per try, 3 lifetime tries per store (AI_LOGO_LIFETIME_TRIES); failed tries are not counted
- Claude's SVG is rebuilt by LogoSvg: simple shapes and text only, no scripts, links or outside files
- Logo shown in the store header; uploaded logos also top the order emails
- New stores.logo, stores.logo_drafts and stores.ai_logo_tries (run php artisan migrate)
- "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